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. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   MeasurementProtocolSecretName name =
+   *       MeasurementProtocolSecretName.of(
+   *           "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
+   * }
+   * }
+ * + * @param name Required. The name of the measurement protocol secret to lookup. 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 MeasurementProtocolSecret getMeasurementProtocolSecret( + MeasurementProtocolSecretName name) { + GetMeasurementProtocolSecretRequest request = + GetMeasurementProtocolSecretRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       MeasurementProtocolSecretName.of(
+   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *           .toString();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
+   * }
+   * }
+ * + * @param name Required. The name of the measurement protocol secret to lookup. 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 MeasurementProtocolSecret getMeasurementProtocolSecret(String name) { + GetMeasurementProtocolSecretRequest request = + GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); + return getMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetMeasurementProtocolSecretRequest request =
+   *       GetMeasurementProtocolSecretRequest.newBuilder()
+   *           .setName(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(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 getMeasurementProtocolSecret( + GetMeasurementProtocolSecretRequest request) { + return getMeasurementProtocolSecretCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetMeasurementProtocolSecretRequest request =
+   *       GetMeasurementProtocolSecretRequest.newBuilder()
+   *           .setName(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request);
+   *   // Do something.
+   *   MeasurementProtocolSecret response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + 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.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomMetricsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomMetricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomMetricsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -752,11 +1039,57 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listGoogleAdsLinksPagedCallable; private final UnaryCallable getDataSharingSettingsCallable; + private final UnaryCallable + getMeasurementProtocolSecretCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable; + private final UnaryCallable + createMeasurementProtocolSecretCallable; + private final UnaryCallable + deleteMeasurementProtocolSecretCallable; + private final UnaryCallable + updateMeasurementProtocolSecretCallable; private final UnaryCallable searchChangeHistoryEventsCallable; private final UnaryCallable< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> searchChangeHistoryEventsPagedCallable; + private final UnaryCallable + getGoogleSignalsSettingsCallable; + private final UnaryCallable + updateGoogleSignalsSettingsCallable; + private final UnaryCallable + createConversionEventCallable; + private final UnaryCallable + getConversionEventCallable; + private final UnaryCallable deleteConversionEventCallable; + private final UnaryCallable + listConversionEventsCallable; + private final UnaryCallable + listConversionEventsPagedCallable; + private final UnaryCallable + createCustomDimensionCallable; + private final UnaryCallable + updateCustomDimensionCallable; + private final UnaryCallable + listCustomDimensionsCallable; + private final UnaryCallable + listCustomDimensionsPagedCallable; + private final UnaryCallable archiveCustomDimensionCallable; + private final UnaryCallable + getCustomDimensionCallable; + private final UnaryCallable createCustomMetricCallable; + private final UnaryCallable updateCustomMetricCallable; + private final UnaryCallable + listCustomMetricsCallable; + private final UnaryCallable + listCustomMetricsPagedCallable; + private final UnaryCallable archiveCustomMetricCallable; + private final UnaryCallable getCustomMetricCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1399,6 +1732,88 @@ public Map extract(GetDataSharingSettingsRequest request) { } }) .build(); + GrpcCallSettings + getMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + GetMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listMeasurementProtocolSecretsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + ListMeasurementProtocolSecretsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + CreateMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + deleteMeasurementProtocolSecretTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + DeleteMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "measurement_protocol_secret.name", + String.valueOf(request.getMeasurementProtocolSecret().getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings searchChangeHistoryEventsTransportSettings = GrpcCallSettings @@ -1414,6 +1829,230 @@ public Map extract(SearchChangeHistoryEventsRequest request) { } }) .build(); + GrpcCallSettings + getGoogleSignalsSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGoogleSignalsSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetGoogleSignalsSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateGoogleSignalsSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGoogleSignalsSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateGoogleSignalsSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "google_signals_settings.name", + String.valueOf(request.getGoogleSignalsSettings().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConversionEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateConversionEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversionEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetConversionEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversionEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteConversionEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listConversionEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConversionEventsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListConversionEventsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "custom_dimension.name", + String.valueOf(request.getCustomDimension().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listCustomDimensionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomDimensionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListCustomDimensionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings archiveCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ArchiveCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings createCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listCustomMetricsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomMetricsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListCustomMetricsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings archiveCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ArchiveCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -1653,6 +2292,36 @@ public Map extract(SearchChangeHistoryEventsRequest request) { getDataSharingSettingsTransportSettings, settings.getDataSharingSettingsSettings(), clientContext); + this.getMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + getMeasurementProtocolSecretTransportSettings, + settings.getMeasurementProtocolSecretSettings(), + clientContext); + this.listMeasurementProtocolSecretsCallable = + callableFactory.createUnaryCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.listMeasurementProtocolSecretsPagedCallable = + callableFactory.createPagedCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.createMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + createMeasurementProtocolSecretTransportSettings, + settings.createMeasurementProtocolSecretSettings(), + clientContext); + this.deleteMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + deleteMeasurementProtocolSecretTransportSettings, + settings.deleteMeasurementProtocolSecretSettings(), + clientContext); + this.updateMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + updateMeasurementProtocolSecretTransportSettings, + settings.updateMeasurementProtocolSecretSettings(), + clientContext); this.searchChangeHistoryEventsCallable = callableFactory.createUnaryCallable( searchChangeHistoryEventsTransportSettings, @@ -1663,6 +2332,99 @@ public Map extract(SearchChangeHistoryEventsRequest request) { searchChangeHistoryEventsTransportSettings, settings.searchChangeHistoryEventsSettings(), clientContext); + this.getGoogleSignalsSettingsCallable = + callableFactory.createUnaryCallable( + getGoogleSignalsSettingsTransportSettings, + settings.getGoogleSignalsSettingsSettings(), + clientContext); + this.updateGoogleSignalsSettingsCallable = + callableFactory.createUnaryCallable( + updateGoogleSignalsSettingsTransportSettings, + settings.updateGoogleSignalsSettingsSettings(), + clientContext); + this.createConversionEventCallable = + callableFactory.createUnaryCallable( + createConversionEventTransportSettings, + settings.createConversionEventSettings(), + clientContext); + this.getConversionEventCallable = + callableFactory.createUnaryCallable( + getConversionEventTransportSettings, + settings.getConversionEventSettings(), + clientContext); + this.deleteConversionEventCallable = + callableFactory.createUnaryCallable( + deleteConversionEventTransportSettings, + settings.deleteConversionEventSettings(), + clientContext); + this.listConversionEventsCallable = + callableFactory.createUnaryCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.listConversionEventsPagedCallable = + callableFactory.createPagedCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.createCustomDimensionCallable = + callableFactory.createUnaryCallable( + createCustomDimensionTransportSettings, + settings.createCustomDimensionSettings(), + clientContext); + this.updateCustomDimensionCallable = + callableFactory.createUnaryCallable( + updateCustomDimensionTransportSettings, + settings.updateCustomDimensionSettings(), + clientContext); + this.listCustomDimensionsCallable = + callableFactory.createUnaryCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.listCustomDimensionsPagedCallable = + callableFactory.createPagedCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.archiveCustomDimensionCallable = + callableFactory.createUnaryCallable( + archiveCustomDimensionTransportSettings, + settings.archiveCustomDimensionSettings(), + clientContext); + this.getCustomDimensionCallable = + callableFactory.createUnaryCallable( + getCustomDimensionTransportSettings, + settings.getCustomDimensionSettings(), + clientContext); + this.createCustomMetricCallable = + callableFactory.createUnaryCallable( + createCustomMetricTransportSettings, + settings.createCustomMetricSettings(), + clientContext); + this.updateCustomMetricCallable = + callableFactory.createUnaryCallable( + updateCustomMetricTransportSettings, + settings.updateCustomMetricSettings(), + clientContext); + this.listCustomMetricsCallable = + callableFactory.createUnaryCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.listCustomMetricsPagedCallable = + callableFactory.createPagedCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.archiveCustomMetricCallable = + callableFactory.createUnaryCallable( + archiveCustomMetricTransportSettings, + settings.archiveCustomMetricSettings(), + clientContext); + this.getCustomMetricCallable = + callableFactory.createUnaryCallable( + getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1978,6 +2740,44 @@ public UnaryCallable deleteGoogleAdsLinkCalla return getDataSharingSettingsCallable; } + @Override + public UnaryCallable + getMeasurementProtocolSecretCallable() { + return getMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable() { + return listMeasurementProtocolSecretsCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + return listMeasurementProtocolSecretsPagedCallable; + } + + @Override + public UnaryCallable + createMeasurementProtocolSecretCallable() { + return createMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + deleteMeasurementProtocolSecretCallable() { + return deleteMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + updateMeasurementProtocolSecretCallable() { + return updateMeasurementProtocolSecretCallable; + } + @Override public UnaryCallable searchChangeHistoryEventsCallable() { @@ -1990,6 +2790,112 @@ public UnaryCallable deleteGoogleAdsLinkCalla return searchChangeHistoryEventsPagedCallable; } + @Override + public UnaryCallable + getGoogleSignalsSettingsCallable() { + return getGoogleSignalsSettingsCallable; + } + + @Override + public UnaryCallable + updateGoogleSignalsSettingsCallable() { + return updateGoogleSignalsSettingsCallable; + } + + @Override + public UnaryCallable + createConversionEventCallable() { + return createConversionEventCallable; + } + + @Override + public UnaryCallable getConversionEventCallable() { + return getConversionEventCallable; + } + + @Override + public UnaryCallable deleteConversionEventCallable() { + return deleteConversionEventCallable; + } + + @Override + public UnaryCallable + listConversionEventsCallable() { + return listConversionEventsCallable; + } + + @Override + public UnaryCallable + listConversionEventsPagedCallable() { + return listConversionEventsPagedCallable; + } + + @Override + public UnaryCallable + createCustomDimensionCallable() { + return createCustomDimensionCallable; + } + + @Override + public UnaryCallable + updateCustomDimensionCallable() { + return updateCustomDimensionCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsCallable() { + return listCustomDimensionsCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsPagedCallable() { + return listCustomDimensionsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomDimensionCallable() { + return archiveCustomDimensionCallable; + } + + @Override + public UnaryCallable getCustomDimensionCallable() { + return getCustomDimensionCallable; + } + + @Override + public UnaryCallable createCustomMetricCallable() { + return createCustomMetricCallable; + } + + @Override + public UnaryCallable updateCustomMetricCallable() { + return updateCustomMetricCallable; + } + + @Override + public UnaryCallable + listCustomMetricsCallable() { + return listCustomMetricsCallable; + } + + @Override + public UnaryCallable + listCustomMetricsPagedCallable() { + return listCustomMetricsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomMetricCallable() { + return archiveCustomMetricCallable; + } + + @Override + public UnaryCallable getCustomMetricCallable() { + return getCustomMetricCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 0fb73c80..83b3cc3e 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.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; @@ -3385,51 +3389,1533 @@ public void getDataSharingSettingsExceptionTest2() throws Exception { } } + @Test + public void getMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMeasurementProtocolSecretRequest actualRequest = + ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.getMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMeasurementProtocolSecretRequest actualRequest = + ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMeasurementProtocolSecretExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMeasurementProtocolSecretsTest() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() + .setNextPageToken("") + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMeasurementProtocolSecretsRequest actualRequest = + ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMeasurementProtocolSecretsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + client.listMeasurementProtocolSecrets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMeasurementProtocolSecretsTest2() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() + .setNextPageToken("") + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMeasurementProtocolSecretsRequest actualRequest = + ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMeasurementProtocolSecrets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMeasurementProtocolSecretRequest actualRequest = + ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMeasurementProtocolSecretRequest actualRequest = + ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMeasurementProtocolSecretExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMeasurementProtocolSecretTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + + client.deleteMeasurementProtocolSecret(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMeasurementProtocolSecretRequest actualRequest = + ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.deleteMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMeasurementProtocolSecretTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteMeasurementProtocolSecret(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMeasurementProtocolSecretRequest actualRequest = + ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MeasurementProtocolSecret actualResponse = + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMeasurementProtocolSecretRequest actualRequest = + ((UpdateMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void searchChangeHistoryEventsTest() throws Exception { ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); SearchChangeHistoryEventsResponse expectedResponse = SearchChangeHistoryEventsResponse.newBuilder() .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + 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(); + + SearchChangeHistoryEventsPagedResponse pagedListResponse = + client.searchChangeHistoryEvents(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchChangeHistoryEventsRequest actualRequest = + ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); + Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); + Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); + Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); + Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchChangeHistoryEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + 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(); + client.searchChangeHistoryEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGoogleSignalsSettingsTest() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGoogleSignalsSettingsRequest actualRequest = + ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGoogleSignalsSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + client.getGoogleSignalsSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGoogleSignalsSettingsTest2() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGoogleSignalsSettingsRequest actualRequest = + ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGoogleSignalsSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getGoogleSignalsSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateGoogleSignalsSettingsTest() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + GoogleSignalsSettings actualResponse = + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGoogleSignalsSettingsRequest actualRequest = + ((UpdateGoogleSignalsSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(googleSignalsSettings, actualRequest.getGoogleSignalsSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGoogleSignalsSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversionEventRequest actualRequest = + ((CreateConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversionEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversionEventRequest actualRequest = + ((CreateConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversionEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + + ConversionEvent actualResponse = client.getConversionEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversionEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.getConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ConversionEvent actualResponse = client.getConversionEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversionEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversionEventTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + + client.deleteConversionEvent(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversionEventRequest actualRequest = + ((DeleteConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversionEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.deleteConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversionEventTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteConversionEvent(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversionEventRequest actualRequest = + ((DeleteConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversionEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversionEventsTest() throws Exception { + ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); + ListConversionEventsResponse expectedResponse = + ListConversionEventsResponse.newBuilder() + .setNextPageToken("") + .addAllConversionEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversionEventsRequest actualRequest = + ((ListConversionEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversionEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listConversionEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversionEventsTest2() throws Exception { + ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); + ListConversionEventsResponse expectedResponse = + ListConversionEventsResponse.newBuilder() + .setNextPageToken("") + .addAllConversionEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversionEventsRequest actualRequest = + ((ListConversionEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversionEventsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConversionEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomDimensionRequest actualRequest = + ((CreateCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); + + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomDimensionRequest actualRequest = + ((CreateCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomDimensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomDimension customDimension = CustomDimension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCustomDimensionRequest actualRequest = + ((UpdateCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomDimension customDimension = CustomDimension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomDimension(customDimension, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomDimensionsTest() throws Exception { + CustomDimension responsesElement = CustomDimension.newBuilder().build(); + ListCustomDimensionsResponse expectedResponse = + ListCustomDimensionsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomDimensions(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomDimensionsRequest actualRequest = + ((ListCustomDimensionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomDimensionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listCustomDimensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomDimensionsTest2() throws Exception { + CustomDimension responsesElement = CustomDimension.newBuilder().build(); + ListCustomDimensionsResponse expectedResponse = + ListCustomDimensionsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomDimensions(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomDimensionsRequest actualRequest = + ((ListCustomDimensionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomDimensionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCustomDimensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomDimensionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + + client.archiveCustomDimension(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomDimensionRequest actualRequest = + ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + client.archiveCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomDimensionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.archiveCustomDimension(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomDimensionRequest actualRequest = + ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomDimensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.archiveCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + + CustomDimension actualResponse = client.getCustomDimension(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + client.getCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + CustomDimension actualResponse = client.getCustomDimension(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomDimensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CustomMetric customMetric = CustomMetric.newBuilder().build(); + + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomMetric customMetric = CustomMetric.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCustomMetricRequest actualRequest = ((UpdateCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomMetric customMetric = CustomMetric.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomMetric(customMetric, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomMetricsTest() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - 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") + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomMetricsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listCustomMetrics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomMetricsTest2() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); - SearchChangeHistoryEventsPagedResponse pagedListResponse = - client.searchChangeHistoryEvents(request); + String parent = "parent-995424086"; - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SearchChangeHistoryEventsRequest actualRequest = - ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); - Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); - Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); - Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); - Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); - Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3437,24 +4923,163 @@ public void searchChangeHistoryEventsTest() throws Exception { } @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { + public void listCustomMetricsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - 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(); - client.searchChangeHistoryEvents(request); + String parent = "parent-995424086"; + client.listCustomMetrics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomMetricTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + + client.archiveCustomMetric(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + client.archiveCustomMetric(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomMetricTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.archiveCustomMetric(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.archiveCustomMetric(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + + CustomMetric actualResponse = client.getCustomMetric(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + client.getCustomMetric(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + CustomMetric actualResponse = client.getCustomMetric(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 8784c7e8..4e8e6f25 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -1035,6 +1035,115 @@ public void getDataSharingSettings( } } + @Override + public void getMeasurementProtocolSecret( + GetMeasurementProtocolSecretRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MeasurementProtocolSecret) { + requests.add(request); + responseObserver.onNext(((MeasurementProtocolSecret) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MeasurementProtocolSecret.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMeasurementProtocolSecrets( + ListMeasurementProtocolSecretsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMeasurementProtocolSecretsResponse) { + requests.add(request); + responseObserver.onNext(((ListMeasurementProtocolSecretsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListMeasurementProtocolSecrets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMeasurementProtocolSecretsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMeasurementProtocolSecret( + CreateMeasurementProtocolSecretRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MeasurementProtocolSecret) { + requests.add(request); + responseObserver.onNext(((MeasurementProtocolSecret) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MeasurementProtocolSecret.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMeasurementProtocolSecret( + DeleteMeasurementProtocolSecretRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMeasurementProtocolSecret( + UpdateMeasurementProtocolSecretRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MeasurementProtocolSecret) { + requests.add(request); + responseObserver.onNext(((MeasurementProtocolSecret) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MeasurementProtocolSecret.class.getName(), + Exception.class.getName()))); + } + } + @Override public void searchChangeHistoryEvents( SearchChangeHistoryEventsRequest request, @@ -1056,4 +1165,345 @@ public void searchChangeHistoryEvents( Exception.class.getName()))); } } + + @Override + public void getGoogleSignalsSettings( + GetGoogleSignalsSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GoogleSignalsSettings) { + requests.add(request); + responseObserver.onNext(((GoogleSignalsSettings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetGoogleSignalsSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GoogleSignalsSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateGoogleSignalsSettings( + UpdateGoogleSignalsSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GoogleSignalsSettings) { + requests.add(request); + responseObserver.onNext(((GoogleSignalsSettings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateGoogleSignalsSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GoogleSignalsSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConversionEvent( + CreateConversionEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversionEvent) { + requests.add(request); + responseObserver.onNext(((ConversionEvent) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateConversionEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConversionEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConversionEvent( + GetConversionEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversionEvent) { + requests.add(request); + responseObserver.onNext(((ConversionEvent) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetConversionEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConversionEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConversionEvent( + DeleteConversionEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteConversionEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConversionEvents( + ListConversionEventsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConversionEventsResponse) { + requests.add(request); + responseObserver.onNext(((ListConversionEventsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListConversionEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConversionEventsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCustomDimension( + CreateCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomDimension) { + requests.add(request); + responseObserver.onNext(((CustomDimension) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomDimension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCustomDimension( + UpdateCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomDimension) { + requests.add(request); + responseObserver.onNext(((CustomDimension) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomDimension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCustomDimensions( + ListCustomDimensionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCustomDimensionsResponse) { + requests.add(request); + responseObserver.onNext(((ListCustomDimensionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListCustomDimensions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCustomDimensionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void archiveCustomDimension( + ArchiveCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ArchiveCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCustomDimension( + GetCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomDimension) { + requests.add(request); + responseObserver.onNext(((CustomDimension) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomDimension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCustomMetric( + CreateCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomMetric) { + requests.add(request); + responseObserver.onNext(((CustomMetric) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCustomMetric( + UpdateCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomMetric) { + requests.add(request); + responseObserver.onNext(((CustomMetric) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCustomMetrics( + ListCustomMetricsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCustomMetricsResponse) { + requests.add(request); + responseObserver.onNext(((ListCustomMetricsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListCustomMetrics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCustomMetricsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void archiveCustomMetric( + ArchiveCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ArchiveCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCustomMetric( + GetCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomMetric) { + requests.add(request); + responseObserver.onNext(((CustomMetric) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomMetric.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index e56b578d..23a55f59 100644 --- a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -2281,6 +2281,271 @@ private AnalyticsAdminServiceGrpc() {} return getGetDataSharingSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod = + getGetMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetMeasurementProtocolSecret")) + .build(); + } + } + } + return getGetMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMeasurementProtocolSecrets", + requestType = com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + responseType = + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod = + getListMeasurementProtocolSecretsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMeasurementProtocolSecrets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListMeasurementProtocolSecrets")) + .build(); + } + } + } + return getListMeasurementProtocolSecretsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod = + getCreateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateMeasurementProtocolSecret")) + .build(); + } + } + } + return getCreateMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod = + getDeleteMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteMeasurementProtocolSecret")) + .build(); + } + } + } + return getDeleteMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod = + getUpdateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateMeasurementProtocolSecret")) + .build(); + } + } + } + return getUpdateMeasurementProtocolSecretMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> @@ -2334,999 +2599,2117 @@ private AnalyticsAdminServiceGrpc() {} return getSearchChangeHistoryEventsMethod; } - /** Creates a new async stub that supports all call types for the service */ - public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnalyticsAdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceBlockingStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod; - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AnalyticsAdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceFutureStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGoogleSignalsSettings", + requestType = com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod; + if ((getGetGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod = + getGetGoogleSignalsSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetGoogleSignalsSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetGoogleSignalsSettings")) + .build(); + } + } + } + return getGetGoogleSignalsSettingsMethod; } - /** - * - * - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod; - /** - * - * - *
-     * Lookup for a single Account.
-     * 
- */ - public void getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleSignalsSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod; + if ((getUpdateGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod = + getUpdateGoogleSignalsSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateGoogleSignalsSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateGoogleSignalsSettings")) + .build(); + } + } } + return getUpdateGoogleSignalsSettingsMethod; + } - /** - * - * - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public void listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAccountsMethod(), responseObserver); - } - - /** - * - * - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public void deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAccountMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod; - /** - * - * - *
-     * Updates an account.
-     * 
- */ - public void updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAccountMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversionEvent", + requestType = com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod; + if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateConversionEventMethod = + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod = + getCreateConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateConversionEvent")) + .build(); + } + } } + return getCreateConversionEventMethod; + } - /** - * - * - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public void provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getProvisionAccountTicketMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod; - /** - * - * - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public void listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAccountSummariesMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversionEvent", + requestType = com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod; + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetConversionEventMethod = + getGetConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetConversionEvent")) + .build(); + } + } } + return getGetConversionEventMethod; + } - /** - * - * - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public void getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPropertyMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; - /** - * - * - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public void listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPropertiesMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversionEvent", + requestType = com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; + if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteConversionEventMethod = + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod = + getDeleteConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteConversionEvent")) + .build(); + } + } } + return getDeleteConversionEventMethod; + } - /** - * - * - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public void createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePropertyMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod; - /** - * - * - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
-     * 
- */ - public void deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePropertyMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversionEvents", + requestType = com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod; + if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListConversionEventsMethod = + AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListConversionEventsMethod = + getListConversionEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConversionEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListConversionEvents")) + .build(); + } + } } + return getListConversionEventsMethod; + } - /** - * - * - *
-     * Updates a property.
-     * 
- */ - public void updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePropertyMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetUserLinkMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", + requestType = com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; + if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = + getCreateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateCustomDimension")) + .build(); + } + } } + return getCreateCustomDimensionMethod; + } - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchGetUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUserLinksMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", + requestType = com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; + if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = + getUpdateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateCustomDimension")) + .build(); + } + } } + return getUpdateCustomDimensionMethod; + } - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAuditUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateUserLinkMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", + requestType = com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomDimensionsMethod = + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = + getListCustomDimensionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) + .build(); + } + } } + return getListCustomDimensionsMethod; + } - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateUserLinkMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", + requestType = com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = + getArchiveCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ArchiveCustomDimension")) + .build(); + } + } } + return getArchiveCustomDimensionMethod; + } - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteUserLinkMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", + requestType = com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = + getGetCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) + .build(); + } + } } + return getGetCustomDimensionMethod; + } - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.CreateCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getCreateCustomMetricMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric",
+      requestType = com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class,
+      responseType = com.google.analytics.admin.v1alpha.CustomMetric.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.CreateCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getCreateCustomMetricMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.CreateCustomMetricRequest,
+            com.google.analytics.admin.v1alpha.CustomMetric>
+        getCreateCustomMetricMethod;
+    if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod)
+        == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod =
+              getCreateCustomMetricMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.CreateCustomMetricRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric"))
+                      .build();
+        }
+      }
+    }
+    return getCreateCustomMetricMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getUpdateCustomMetricMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric",
+      requestType = com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class,
+      responseType = com.google.analytics.admin.v1alpha.CustomMetric.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getUpdateCustomMetricMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest,
+            com.google.analytics.admin.v1alpha.CustomMetric>
+        getUpdateCustomMetricMethod;
+    if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod)
+        == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod =
+              getUpdateCustomMetricMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric"))
+                      .build();
+        }
+      }
+    }
+    return getUpdateCustomMetricMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.ListCustomMetricsRequest,
+          com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>
+      getListCustomMetricsMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics",
+      requestType = com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class,
+      responseType = com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.ListCustomMetricsRequest,
+          com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>
+      getListCustomMetricsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.ListCustomMetricsRequest,
+            com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>
+        getListCustomMetricsMethod;
+    if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod)
+        == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getListCustomMetricsMethod =
+              getListCustomMetricsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.ListCustomMetricsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.ListCustomMetricsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics"))
+                      .build();
+        }
+      }
+    }
+    return getListCustomMetricsMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty>
+      getArchiveCustomMetricMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomMetric",
+      requestType = com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class,
+      responseType = com.google.protobuf.Empty.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty>
+      getArchiveCustomMetricMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest,
+            com.google.protobuf.Empty>
+        getArchiveCustomMetricMethod;
+    if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod)
+        == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod =
+              getArchiveCustomMetricMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ArchiveCustomMetric"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomMetric"))
+                      .build();
+        }
+      }
+    }
+    return getArchiveCustomMetricMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.GetCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getGetCustomMetricMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetCustomMetric",
+      requestType = com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class,
+      responseType = com.google.analytics.admin.v1alpha.CustomMetric.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.GetCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getGetCustomMetricMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.GetCustomMetricRequest,
+            com.google.analytics.admin.v1alpha.CustomMetric>
+        getGetCustomMetricMethod;
+    if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getGetCustomMetricMethod =
+              getGetCustomMetricMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomMetric"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.GetCustomMetricRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomMetric"))
+                      .build();
+        }
+      }
+    }
+    return getGetCustomMetricMethod;
+  }
+
+  /** Creates a new async stub that supports all call types for the service */
+  public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) {
+    io.grpc.stub.AbstractStub.StubFactory factory =
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AnalyticsAdminServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AnalyticsAdminServiceStub(channel, callOptions);
+          }
+        };
+    return AnalyticsAdminServiceStub.newStub(factory, channel);
+  }
+
+  /**
+   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+   */
+  public static AnalyticsAdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+    io.grpc.stub.AbstractStub.StubFactory factory =
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AnalyticsAdminServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AnalyticsAdminServiceBlockingStub(channel, callOptions);
+          }
+        };
+    return AnalyticsAdminServiceBlockingStub.newStub(factory, channel);
+  }
+
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static AnalyticsAdminServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+    io.grpc.stub.AbstractStub.StubFactory factory =
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AnalyticsAdminServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AnalyticsAdminServiceFutureStub(channel, callOptions);
+          }
+        };
+    return AnalyticsAdminServiceFutureStub.newStub(factory, channel);
+  }
+
+  /**
+   *
+   *
+   * 
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lookup for a single Account.
      * 
*/ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteUserLinksMethod(), responseObserver); + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); } /** * * *
-     * Lookup for a single WebDataStream
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
      * 
*/ - public void getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, - io.grpc.stub.StreamObserver + public void listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWebDataStreamMethod(), responseObserver); + getListAccountsMethod(), responseObserver); } /** * * *
-     * Deletes a web stream on a property.
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
      * 
*/ - public void deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + public void deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWebDataStreamMethod(), responseObserver); + getDeleteAccountMethod(), responseObserver); } /** * * *
-     * Updates a web stream on a property.
+     * Updates an account.
      * 
*/ - public void updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWebDataStreamMethod(), responseObserver); + getUpdateAccountMethod(), responseObserver); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Requests a ticket for creating an account.
      * 
*/ - public void createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, - io.grpc.stub.StreamObserver + public void provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWebDataStreamMethod(), responseObserver); + getProvisionAccountTicketMethod(), responseObserver); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Returns summaries of all accounts accessible by the caller.
      * 
*/ - public void listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, - io.grpc.stub.StreamObserver + public void listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWebDataStreamsMethod(), responseObserver); + getListAccountSummariesMethod(), responseObserver); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Lookup for a single "GA4" Property.
      * 
*/ - public void getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIosAppDataStreamMethod(), responseObserver); + getGetPropertyMethod(), responseObserver); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
      * 
*/ - public void deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteIosAppDataStreamMethod(), responseObserver); + getListPropertiesMethod(), responseObserver); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ - public void updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateIosAppDataStreamMethod(), responseObserver); + getCreatePropertyMethod(), responseObserver); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
      * 
*/ - public void listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - responseObserver) { + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListIosAppDataStreamsMethod(), responseObserver); + getDeletePropertyMethod(), responseObserver); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Updates a property.
      * 
*/ - public void getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAndroidAppDataStreamMethod(), responseObserver); + getUpdatePropertyMethod(), responseObserver); } /** * * *
-     * Deletes an android app stream on a property.
+     * Gets information about a user's link to an account or property.
      * 
*/ - public void deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAndroidAppDataStreamMethod(), responseObserver); + getGetUserLinkMethod(), responseObserver); } /** * * *
-     * Updates an android app stream on a property.
+     * Gets information about multiple users' links to an account or property.
      * 
*/ - public void updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver + public void batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAndroidAppDataStreamMethod(), responseObserver); + getBatchGetUserLinksMethod(), responseObserver); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Lists all user links on an account or property.
      * 
*/ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + public void listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAndroidAppDataStreamsMethod(), responseObserver); + getListUserLinksMethod(), responseObserver); } /** * * *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
      * 
*/ - public void getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver + public void auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnhancedMeasurementSettingsMethod(), responseObserver); + getAuditUserLinksMethod(), responseObserver); } /** * * *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
      * 
*/ - public void updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); + getCreateUserLinkMethod(), responseObserver); } /** * * *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
      * 
*/ - public void createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver + public void batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFirebaseLinkMethod(), responseObserver); + getBatchCreateUserLinksMethod(), responseObserver); } /** * * *
-     * Updates a FirebaseLink on a property
+     * Updates a user link on an account or property.
      * 
*/ - public void updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFirebaseLinkMethod(), responseObserver); + getUpdateUserLinkMethod(), responseObserver); } /** * * *
-     * Deletes a FirebaseLink on a property
+     * Updates information about multiple users' links to an account or property.
      * 
*/ - public void deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFirebaseLinkMethod(), responseObserver); + getBatchUpdateUserLinksMethod(), responseObserver); } /** * * *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
+     * Deletes a user link on an account or property.
      * 
*/ - public void listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFirebaseLinksMethod(), responseObserver); + getDeleteUserLinkMethod(), responseObserver); } /** * * *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public void getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlobalSiteTagMethod(), responseObserver); + getBatchDeleteUserLinksMethod(), responseObserver); } /** * * *
-     * Creates a GoogleAdsLink.
+     * Lookup for a single WebDataStream
      * 
*/ - public void createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver + public void getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGoogleAdsLinkMethod(), responseObserver); + getGetWebDataStreamMethod(), responseObserver); } /** * * *
-     * Updates a GoogleAdsLink on a property
+     * Deletes a web stream on a property.
      * 
*/ - public void updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateGoogleAdsLinkMethod(), responseObserver); + getDeleteWebDataStreamMethod(), responseObserver); } /** * * *
-     * Deletes a GoogleAdsLink on a property
+     * Updates a web stream on a property.
      * 
*/ - public void deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGoogleAdsLinkMethod(), responseObserver); + getUpdateWebDataStreamMethod(), responseObserver); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Creates a web stream with the specified location and attributes.
      * 
*/ - public void listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver + public void createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGoogleAdsLinksMethod(), responseObserver); + getCreateWebDataStreamMethod(), responseObserver); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
      * 
*/ - public void getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver + public void listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataSharingSettingsMethod(), responseObserver); + getListWebDataStreamsMethod(), responseObserver); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Lookup for a single IosAppDataStream
      * 
*/ - public void searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + public void getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public void deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public void updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public void listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchChangeHistoryEventsMethod(), responseObserver); + getListIosAppDataStreamsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAccountRequest, - com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) - .addMethod( - getListAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountsRequest, - com.google.analytics.admin.v1alpha.ListAccountsResponse>( - this, METHODID_LIST_ACCOUNTS))) - .addMethod( - getDeleteAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAccountRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) - .addMethod( - getUpdateAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAccountRequest, - com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getProvisionAccountTicketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( - this, METHODID_PROVISION_ACCOUNT_TICKET))) - .addMethod( - getListAccountSummariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( - this, METHODID_LIST_ACCOUNT_SUMMARIES))) - .addMethod( - getGetPropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetPropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_GET_PROPERTY))) - .addMethod( - getListPropertiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListPropertiesRequest, - com.google.analytics.admin.v1alpha.ListPropertiesResponse>( - this, METHODID_LIST_PROPERTIES))) - .addMethod( - getCreatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) - .addMethod( - getDeletePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) - .addMethod( - getUpdatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) - .addMethod( - getGetUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) - .addMethod( - getBatchGetUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( - this, METHODID_BATCH_GET_USER_LINKS))) - .addMethod( - getListUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse>( - this, METHODID_LIST_USER_LINKS))) - .addMethod( - getAuditUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( - this, METHODID_AUDIT_USER_LINKS))) - .addMethod( - getCreateUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>( - this, METHODID_CREATE_USER_LINK))) - .addMethod( - getBatchCreateUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( - this, METHODID_BATCH_CREATE_USER_LINKS))) - .addMethod( - getUpdateUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>( - this, METHODID_UPDATE_USER_LINK))) - .addMethod( - getBatchUpdateUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( - this, METHODID_BATCH_UPDATE_USER_LINKS))) - .addMethod( - getDeleteUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) - .addMethod( - getBatchDeleteUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, - com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) - .addMethod( - getGetWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_GET_WEB_DATA_STREAM))) - .addMethod( - getDeleteWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) - .addMethod( - getUpdateWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_UPDATE_WEB_DATA_STREAM))) - .addMethod( - getCreateWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_CREATE_WEB_DATA_STREAM))) - .addMethod( - getListWebDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( - this, METHODID_LIST_WEB_DATA_STREAMS))) - .addMethod( - getGetIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_GET_IOS_APP_DATA_STREAM))) - .addMethod( - getDeleteIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) - .addMethod( - getUpdateIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) - .addMethod( - getListIosAppDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( - this, METHODID_LIST_IOS_APP_DATA_STREAMS))) - .addMethod( - getGetAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * 
+ */ + public void getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public void deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public void updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAndroidAppDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a FirebaseLink on a property
+     * 
+ */ + public void updateFirebaseLink( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirebaseLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public void getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlobalSiteTagMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGoogleAdsLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public void getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSharingSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public void getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMeasurementProtocolSecretsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public void createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public void getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGoogleSignalsSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public void updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleSignalsSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public void createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public void getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public void deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversionEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public void createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public void updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public void listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomDimensionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public void archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public void getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public void createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public void updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public void listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomMetricsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public void archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public void getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomMetricMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) + .addMethod( + getListAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse>( + this, METHODID_LIST_ACCOUNTS))) + .addMethod( + getDeleteAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) + .addMethod( + getUpdateAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) + .addMethod( + getProvisionAccountTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( + this, METHODID_PROVISION_ACCOUNT_TICKET))) + .addMethod( + getListAccountSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( + this, METHODID_LIST_ACCOUNT_SUMMARIES))) + .addMethod( + getGetPropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_GET_PROPERTY))) + .addMethod( + getListPropertiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse>( + this, METHODID_LIST_PROPERTIES))) + .addMethod( + getCreatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) + .addMethod( + getDeletePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) + .addMethod( + getUpdatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) + .addMethod( + getGetUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) + .addMethod( + getBatchGetUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( + this, METHODID_BATCH_GET_USER_LINKS))) + .addMethod( + getListUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListUserLinksRequest, + com.google.analytics.admin.v1alpha.ListUserLinksResponse>( + this, METHODID_LIST_USER_LINKS))) + .addMethod( + getAuditUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.AuditUserLinksRequest, + com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( + this, METHODID_AUDIT_USER_LINKS))) + .addMethod( + getCreateUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>( + this, METHODID_CREATE_USER_LINK))) + .addMethod( + getBatchCreateUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( + this, METHODID_BATCH_CREATE_USER_LINKS))) + .addMethod( + getUpdateUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>( + this, METHODID_UPDATE_USER_LINK))) + .addMethod( + getBatchUpdateUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( + this, METHODID_BATCH_UPDATE_USER_LINKS))) + .addMethod( + getDeleteUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) + .addMethod( + getBatchDeleteUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, + com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) + .addMethod( + getGetWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_GET_WEB_DATA_STREAM))) + .addMethod( + getDeleteWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) + .addMethod( + getUpdateWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_UPDATE_WEB_DATA_STREAM))) + .addMethod( + getCreateWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_CREATE_WEB_DATA_STREAM))) + .addMethod( + getListWebDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( + this, METHODID_LIST_WEB_DATA_STREAMS))) + .addMethod( + getGetIosAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_GET_IOS_APP_DATA_STREAM))) + .addMethod( + getDeleteIosAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) + .addMethod( + getUpdateIosAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) + .addMethod( + getListIosAppDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( + this, METHODID_LIST_IOS_APP_DATA_STREAMS))) + .addMethod( + getGetAndroidAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( @@ -3433,6 +4816,41 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, com.google.analytics.admin.v1alpha.DataSharingSettings>( this, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getGetMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + this, METHODID_GET_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getListMeasurementProtocolSecretsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>( + this, METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS))) + .addMethod( + getCreateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + this, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getDeleteMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getUpdateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + this, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) .addMethod( getSearchChangeHistoryEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3440,6 +4858,115 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( this, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) + .addMethod( + getGetGoogleSignalsSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( + this, METHODID_GET_GOOGLE_SIGNALS_SETTINGS))) + .addMethod( + getUpdateGoogleSignalsSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( + this, METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS))) + .addMethod( + getCreateConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + this, METHODID_CREATE_CONVERSION_EVENT))) + .addMethod( + getGetConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + this, METHODID_GET_CONVERSION_EVENT))) + .addMethod( + getDeleteConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CONVERSION_EVENT))) + .addMethod( + getListConversionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse>( + this, METHODID_LIST_CONVERSION_EVENTS))) + .addMethod( + getCreateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + this, METHODID_CREATE_CUSTOM_DIMENSION))) + .addMethod( + getUpdateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + this, METHODID_UPDATE_CUSTOM_DIMENSION))) + .addMethod( + getListCustomDimensionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>( + this, METHODID_LIST_CUSTOM_DIMENSIONS))) + .addMethod( + getArchiveCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty>(this, METHODID_ARCHIVE_CUSTOM_DIMENSION))) + .addMethod( + getGetCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + this, METHODID_GET_CUSTOM_DIMENSION))) + .addMethod( + getCreateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + this, METHODID_CREATE_CUSTOM_METRIC))) + .addMethod( + getUpdateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + this, METHODID_UPDATE_CUSTOM_METRIC))) + .addMethod( + getListCustomMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>( + this, METHODID_LIST_CUSTOM_METRICS))) + .addMethod( + getArchiveCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, + com.google.protobuf.Empty>(this, METHODID_ARCHIVE_CUSTOM_METRIC))) + .addMethod( + getGetCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + this, METHODID_GET_CUSTOM_METRIC))) .build(); } } @@ -3451,16 +4978,1225 @@ public final io.grpc.ServerServiceDefinition bindService() { * Service Interface for the Analytics Admin API (GA4). *
*/ - public static final class AnalyticsAdminServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AnalyticsAdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AnalyticsAdminServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AnalyticsAdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public void listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public void deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public void provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public void listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public void listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
+     * 
+ */ + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about a user's link to an account or property.
+     * 
+ */ + public void getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about multiple users' links to an account or property.
+     * 
+ */ + public void batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all user links on an account or property.
+     * 
+ */ + public void listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
+     * 
+ */ + public void auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
+     * 
+ */ + public void createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
+     * 
+ */ + public void batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a user link on an account or property.
+     * 
+ */ + public void updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates information about multiple users' links to an account or property.
+     * 
+ */ + public void batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a user link on an account or property.
+     * 
+ */ + public void deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public void batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single WebDataStream
+     * 
+ */ + public void getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a web stream on a property.
+     * 
+ */ + public void deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a web stream on a property.
+     * 
+ */ + public void updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a web stream with the specified location and attributes.
+     * 
+ */ + public void createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
+     * 
+ */ + public void listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single IosAppDataStream
+     * 
+ */ + public void getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public void deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public void updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public void listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * 
+ */ + public void getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public void deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public void updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a FirebaseLink on a property
+     * 
+ */ + public void updateFirebaseLink( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public void getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public void getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public void getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public void createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public void getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public void updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public void createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public void getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public void deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public void createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public void updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public void listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public void archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public void getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public void createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public void updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public void listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public void archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public void getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AnalyticsAdminServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AnalyticsAdminServiceStub build( + protected AnalyticsAdminServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); + return new AnalyticsAdminServiceBlockingStub(channel, callOptions); } /** @@ -3470,11 +6206,10 @@ protected AnalyticsAdminServiceStub build( * Lookup for a single Account. * */ - public void getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + public com.google.analytics.admin.v1alpha.Account getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccountMethod(), getCallOptions(), request); } /** @@ -3487,14 +6222,10 @@ public void getAccount( * Returns an empty list if no relevant accounts are found. * */ - public void listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountsMethod(), getCallOptions(), request); } /** @@ -3511,13 +6242,10 @@ public void listAccounts( * Returns an error if the target is not found. * */ - public void deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } /** @@ -3527,13 +6255,10 @@ public void deleteAccount( * Updates an account. * */ - public void updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Account updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } /** @@ -3543,15 +6268,10 @@ public void updateAccount( * Requests a ticket for creating an account. * */ - public void provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); } /** @@ -3561,14 +6281,10 @@ public void provisionAccountTicket( * Returns summaries of all accounts accessible by the caller. * */ - public void listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); } /** @@ -3578,13 +6294,10 @@ public void listAccountSummaries( * Lookup for a single "GA4" Property. * */ - public void getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPropertyMethod(), getCallOptions(), request); } /** @@ -3598,14 +6311,10 @@ public void getProperty( * Returns an empty list if no relevant properties are found. * */ - public void listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPropertiesMethod(), getCallOptions(), request); } /** @@ -3615,13 +6324,10 @@ public void listProperties( * Creates an "GA4" property with the specified location and attributes. * */ - public void createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } /** @@ -3638,13 +6344,10 @@ public void createProperty( * Returns an error if the target is not found, or is not an GA4 Property. * */ - public void deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } /** @@ -3654,13 +6357,10 @@ public void deleteProperty( * Updates a property. * */ - public void updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } /** @@ -3670,13 +6370,10 @@ public void updateProperty( * Gets information about a user's link to an account or property. * */ - public void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.UserLink getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserLinkMethod(), getCallOptions(), request); } /** @@ -3686,14 +6383,10 @@ public void getUserLink( * Gets information about multiple users' links to an account or property. * */ - public void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); } /** @@ -3703,14 +6396,10 @@ public void batchGetUserLinks( * Lists all user links on an account or property. * */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUserLinksMethod(), getCallOptions(), request); } /** @@ -3727,14 +6416,10 @@ public void listUserLinks( * UIs. * */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); } /** @@ -3747,13 +6432,10 @@ public void auditUserLinks( * with the permissions specified in the new UserLink. * */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.UserLink createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); } /** @@ -3765,14 +6447,10 @@ public void createUserLink( * the UserLinks will be created. * */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); } /** @@ -3782,13 +6460,10 @@ public void batchCreateUserLinks( * Updates a user link on an account or property. * */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.UserLink updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); } /** @@ -3798,14 +6473,10 @@ public void updateUserLink( * Updates information about multiple users' links to an account or property. * */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); } /** @@ -3815,13 +6486,10 @@ public void batchUpdateUserLinks( * Deletes a user link on an account or property. * */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); } /** @@ -3831,13 +6499,10 @@ public void deleteUserLink( * Deletes information about multiple users' links to an account or property. * */ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); } /** @@ -3847,14 +6512,10 @@ public void batchDeleteUserLinks( * Lookup for a single WebDataStream * */ - public void getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3864,13 +6525,10 @@ public void getWebDataStream( * Deletes a web stream on a property. * */ - public void deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3880,14 +6538,10 @@ public void deleteWebDataStream( * Updates a web stream on a property. * */ - public void updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3897,14 +6551,10 @@ public void updateWebDataStream( * Creates a web stream with the specified location and attributes. * */ - public void createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3916,14 +6566,10 @@ public void createWebDataStream( * Returns an empty list if no relevant web data streams are found. * */ - public void listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); } /** @@ -3933,14 +6579,10 @@ public void listWebDataStreams( * Lookup for a single IosAppDataStream * */ - public void getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); } /** @@ -3950,13 +6592,10 @@ public void getIosAppDataStream( * Deletes an iOS app stream on a property. * */ - public void deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); } /** @@ -3966,14 +6605,10 @@ public void deleteIosAppDataStream( * Updates an iOS app stream on a property. * */ - public void updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); } /** @@ -3985,15 +6620,10 @@ public void updateIosAppDataStream( * Returns an empty list if no relevant iOS app data streams are found. * */ - public void listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); } /** @@ -4003,14 +6633,10 @@ public void listIosAppDataStreams( * Lookup for a single AndroidAppDataStream * */ - public void getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); } /** @@ -4020,13 +6646,10 @@ public void getAndroidAppDataStream( * Deletes an android app stream on a property. * */ - public void deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); } /** @@ -4036,14 +6659,10 @@ public void deleteAndroidAppDataStream( * Updates an android app stream on a property. * */ - public void updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); } /** @@ -4055,15 +6674,11 @@ public void updateAndroidAppDataStream( * Returns an empty list if no relevant android app streams are found. * */ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); } /** @@ -4075,14 +6690,11 @@ public void listAndroidAppDataStreams( * take effect. * */ - public void getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } /** @@ -4094,14 +6706,11 @@ public void getEnhancedMeasurementSettings( * take effect. * */ - public void updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } /** @@ -4112,14 +6721,10 @@ public void updateEnhancedMeasurementSettings( * Properties can have at most one FirebaseLink. * */ - public void createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); } /** @@ -4129,1591 +6734,1458 @@ public void createFirebaseLink( * Updates a FirebaseLink on a property * */ - public void updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public void deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public void listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
-     * 
- */ - public void getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public void createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public void updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.FirebaseLink updateFirebaseLink( + com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFirebaseLinkMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public void deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), - request, - responseObserver); + * Deletes a FirebaseLink on a property + * + */ + public com.google.protobuf.Empty deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
      * 
*/ - public void listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
      * 
*/ - public void getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Creates a GoogleAdsLink.
      * 
*/ - public void searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnalyticsAdminServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); + public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single Account.
+     * Updates a GoogleAdsLink on a property
      * 
*/ - public com.google.analytics.admin.v1alpha.Account getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request) { + public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccountMethod(), getCallOptions(), request); + getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); } /** * * *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
+     * Deletes a GoogleAdsLink on a property
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + public com.google.protobuf.Empty deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountsMethod(), getCallOptions(), request); + getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); } /** * * *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
+     * Lists GoogleAdsLinks on a property.
      * 
*/ - public com.google.protobuf.Empty deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); } /** * * *
-     * Updates an account.
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
      * 
*/ - public com.google.analytics.admin.v1alpha.Account updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccountMethod(), getCallOptions(), request); + getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } /** * * *
-     * Requests a ticket for creating an account.
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
      * 
*/ - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); + getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Returns summaries of all accounts accessible by the caller.
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); + getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single "GA4" Property.
+     * Creates a measurement protocol secret.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPropertyMethod(), getCallOptions(), request); + getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
+     * Deletes target MeasurementProtocolSecret.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + public com.google.protobuf.Empty deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPropertiesMethod(), getCallOptions(), request); + getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Creates an "GA4" property with the specified location and attributes.
+     * Updates a measurement protocol secret.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePropertyMethod(), getCallOptions(), request); + getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePropertyMethod(), getCallOptions(), request); + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); } /** * * *
-     * Updates a property.
+     * Lookup for Google Signals settings for a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); + getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); } /** * * *
-     * Gets information about a user's link to an account or property.
+     * Updates Google Signals settings for a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.UserLink getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUserLinkMethod(), getCallOptions(), request); + getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); } /** * * *
-     * Gets information about multiple users' links to an account or property.
+     * Creates a conversion event with the specified attributes.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); + getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); } /** * * *
-     * Lists all user links on an account or property.
+     * Retrieve a single conversion event.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserLinksMethod(), getCallOptions(), request); + getChannel(), getGetConversionEventMethod(), getCallOptions(), request); } /** * * *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
+     * Deletes a conversion event in a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + public com.google.protobuf.Empty deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); + getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); } /** * * *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
      * 
*/ - public com.google.analytics.admin.v1alpha.UserLink createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); + getChannel(), getListConversionEventsMethod(), getCallOptions(), request); } /** * * *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
+     * Creates a CustomDimension.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.CustomDimension createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); + getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Updates a user link on an account or property.
+     * Updates a CustomDimension on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.UserLink updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.CustomDimension updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); + getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Updates information about multiple users' links to an account or property.
+     * Lists CustomDimensions on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); + getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * Archives a CustomDimension on a property.
      * 
*/ - public com.google.protobuf.Empty deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + public com.google.protobuf.Empty archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); + getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Lookup for a single CustomDimension.
      * 
*/ - public com.google.protobuf.Empty batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); + getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single WebDataStream
+     * Creates a CustomMetric.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.CustomMetric createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a web stream on a property.
+     * Updates a CustomMetric on a property.
      * 
*/ - public com.google.protobuf.Empty deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.CustomMetric updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); } /** * * *
-     * Updates a web stream on a property.
+     * Lists CustomMetrics on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Archives a CustomMetric on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + public com.google.protobuf.Empty archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Lookup for a single CustomMetric.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); + getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AnalyticsAdminServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceFutureStub(channel, callOptions); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Lookup for a single Account.
      * 
*/ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
      * 
*/ - public com.google.protobuf.Empty deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccountsResponse> + listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
      * 
*/ - public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Updates an account.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Requests a ticket for creating an account.
      * 
*/ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); } /** * * *
-     * Deletes an android app stream on a property.
+     * Returns summaries of all accounts accessible by the caller.
      * 
*/ - public com.google.protobuf.Empty deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> + listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); } /** * * *
-     * Updates an android app stream on a property.
+     * Lookup for a single "GA4" Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); } /** * * *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
+     * Updates a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Updates a FirebaseLink on a property
+     * Gets information about a user's link to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.FirebaseLink updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFirebaseLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserLink> + getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a FirebaseLink on a property
+     * Gets information about multiple users' links to an account or property.
      * 
*/ - public com.google.protobuf.Empty deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> + batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
+     * Lists all user links on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListUserLinksResponse> + listUserLinks(com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
      * 
*/ - public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AuditUserLinksResponse> + auditUserLinks(com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Creates a GoogleAdsLink.
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
      * 
*/ - public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserLink> + createUserLink(com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates a GoogleAdsLink on a property
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
      * 
*/ - public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> + batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a GoogleAdsLink on a property
+     * Updates a user link on an account or property.
      * 
*/ - public com.google.protobuf.Empty deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserLink> + updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Updates information about multiple users' links to an account or property.
      * 
- */ - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> + batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Deletes a user link on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteUserLink(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse - searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnalyticsAdminServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single Account.
+     * Lookup for a single WebDataStream
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Account> - getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { + com.google.analytics.admin.v1alpha.WebDataStream> + getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); + getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
+     * Deletes a web stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAccountsResponse> - listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
+     * Updates a web stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.WebDataStream> + updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Updates an account.
+     * Creates a web stream with the specified location and attributes.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Account> - updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + com.google.analytics.admin.v1alpha.WebDataStream> + createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); + getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Requests a ticket for creating an account.
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> - provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> + listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); + getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); } /** * * *
-     * Returns summaries of all accounts accessible by the caller.
+     * Lookup for a single IosAppDataStream
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> - listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + com.google.analytics.admin.v1alpha.IosAppDataStream> + getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); + getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single "GA4" Property.
+     * Deletes an iOS app stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
+     * Updates an iOS app stream on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListPropertiesResponse> - listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + com.google.analytics.admin.v1alpha.IosAppDataStream> + updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Creates an "GA4" property with the specified location and attributes.
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); } /** * * *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
+     * Lookup for a single AndroidAppDataStream
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Updates a property.
+     * Deletes an android app stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Gets information about a user's link to an account or property.
+     * Updates an android app stream on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Gets information about multiple users' links to an account or property.
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); } /** * * *
-     * Lists all user links on an account or property.
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - listUserLinks(com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); } /** * * *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - auditUserLinks(com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); } /** * * *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - createUserLink(com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + com.google.analytics.admin.v1alpha.FirebaseLink> + createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); } /** * * *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
+     * Updates a FirebaseLink on a property
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + com.google.analytics.admin.v1alpha.FirebaseLink> + updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates a user link on an account or property.
+     * Deletes a FirebaseLink on a property
      * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates information about multiple users' links to an account or property.
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> + listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteUserLink(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GlobalSiteTag> + getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Creates a GoogleAdsLink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleAdsLink> + createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single WebDataStream
+     * Updates a GoogleAdsLink on a property
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + com.google.analytics.admin.v1alpha.GoogleAdsLink> + updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a web stream on a property.
+     * Deletes a GoogleAdsLink on a property
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates a web stream on a property.
+     * Lists GoogleAdsLinks on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> + listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + com.google.analytics.admin.v1alpha.DataSharingSettings> + getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> - listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Creates a measurement protocol secret.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Deletes target MeasurementProtocolSecret.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Updates a measurement protocol secret.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); } /** * * *
-     * Deletes an android app stream on a property.
+     * Lookup for Google Signals settings for a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), request); } /** * * *
-     * Updates an android app stream on a property.
+     * Updates Google Signals settings for a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), request); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Creates a conversion event with the specified attributes.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + com.google.analytics.admin.v1alpha.ConversionEvent> + createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request); } /** * * *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Retrieve a single conversion event.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + com.google.analytics.admin.v1alpha.ConversionEvent> + getConversionEvent(com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), - request); + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request); } /** * * *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Deletes a conversion event in a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), - request); + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request); } /** * * *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.FirebaseLink> - createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); } /** * * *
-     * Updates a FirebaseLink on a property
+     * Creates a CustomDimension.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.FirebaseLink> - updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { + com.google.analytics.admin.v1alpha.CustomDimension> + createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a FirebaseLink on a property
+     * Updates a CustomDimension on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomDimension> + updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
+     * Lists CustomDimensions on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> - listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request); } /** * * *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
+     * Archives a CustomDimension on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.GlobalSiteTag> - getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { + public com.google.common.util.concurrent.ListenableFuture + archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Creates a GoogleAdsLink.
+     * Lookup for a single CustomDimension.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.GoogleAdsLink> - createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + com.google.analytics.admin.v1alpha.CustomDimension> + getCustomDimension(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Updates a GoogleAdsLink on a property
+     * Creates a CustomMetric.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.GoogleAdsLink> - updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { + com.google.analytics.admin.v1alpha.CustomMetric> + createCustomMetric(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a GoogleAdsLink on a property
+     * Updates a CustomMetric on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomMetric> + updateCustomMetric(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Lists CustomMetrics on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> - listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + listCustomMetrics(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Archives a CustomMetric on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.DataSharingSettings> - getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + archiveCustomMetric(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Lookup for a single CustomMetric.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> - searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + com.google.analytics.admin.v1alpha.CustomMetric> + getCustomMetric(com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); } } @@ -5763,7 +8235,28 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 43; private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 44; private static final int METHODID_GET_DATA_SHARING_SETTINGS = 45; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 46; + private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 46; + private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 47; + private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 48; + private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 49; + private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 50; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 51; + private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 52; + private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 53; + private static final int METHODID_CREATE_CONVERSION_EVENT = 54; + private static final int METHODID_GET_CONVERSION_EVENT = 55; + private static final int METHODID_DELETE_CONVERSION_EVENT = 56; + private static final int METHODID_LIST_CONVERSION_EVENTS = 57; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 58; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 59; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 60; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 61; + private static final int METHODID_GET_CUSTOM_DIMENSION = 62; + private static final int METHODID_CREATE_CUSTOM_METRIC = 63; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 64; + private static final int METHODID_LIST_CUSTOM_METRICS = 65; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 66; + private static final int METHODID_GET_CUSTOM_METRIC = 67; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6065,6 +8558,39 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.getMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS: + serviceImpl.listMeasurementProtocolSecrets( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>) + responseObserver); + break; + case METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.createMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.deleteMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.updateMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: serviceImpl.searchChangeHistoryEvents( (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, @@ -6072,6 +8598,104 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>) responseObserver); break; + case METHODID_GET_GOOGLE_SIGNALS_SETTINGS: + serviceImpl.getGoogleSignalsSettings( + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>) + responseObserver); + break; + case METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS: + serviceImpl.updateGoogleSignalsSettings( + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>) + responseObserver); + break; + case METHODID_CREATE_CONVERSION_EVENT: + serviceImpl.createConversionEvent( + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONVERSION_EVENT: + serviceImpl.getConversionEvent( + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONVERSION_EVENT: + serviceImpl.deleteConversionEvent( + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSION_EVENTS: + serviceImpl.listConversionEvents( + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListConversionEventsResponse>) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_DIMENSION: + serviceImpl.createCustomDimension( + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_DIMENSION: + serviceImpl.updateCustomDimension( + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_DIMENSIONS: + serviceImpl.listCustomDimensions( + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_DIMENSION: + serviceImpl.archiveCustomDimension( + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_DIMENSION: + serviceImpl.getCustomDimension( + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_METRIC: + serviceImpl.createCustomMetric( + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_METRIC: + serviceImpl.updateCustomMetric( + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_METRICS: + serviceImpl.listCustomMetrics( + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_METRIC: + serviceImpl.archiveCustomMetric( + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_METRIC: + serviceImpl.getCustomMetric( + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -6182,7 +8806,28 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteGoogleAdsLinkMethod()) .addMethod(getListGoogleAdsLinksMethod()) .addMethod(getGetDataSharingSettingsMethod()) + .addMethod(getGetMeasurementProtocolSecretMethod()) + .addMethod(getListMeasurementProtocolSecretsMethod()) + .addMethod(getCreateMeasurementProtocolSecretMethod()) + .addMethod(getDeleteMeasurementProtocolSecretMethod()) + .addMethod(getUpdateMeasurementProtocolSecretMethod()) .addMethod(getSearchChangeHistoryEventsMethod()) + .addMethod(getGetGoogleSignalsSettingsMethod()) + .addMethod(getUpdateGoogleSignalsSettingsMethod()) + .addMethod(getCreateConversionEventMethod()) + .addMethod(getGetConversionEventMethod()) + .addMethod(getDeleteConversionEventMethod()) + .addMethod(getListConversionEventsMethod()) + .addMethod(getCreateCustomDimensionMethod()) + .addMethod(getUpdateCustomDimensionMethod()) + .addMethod(getListCustomDimensionsMethod()) + .addMethod(getArchiveCustomDimensionMethod()) + .addMethod(getGetCustomDimensionMethod()) + .addMethod(getCreateCustomMetricMethod()) + .addMethod(getUpdateCustomMetricMethod()) + .addMethod(getListCustomMetricsMethod()) + .addMethod(getArchiveCustomMetricMethod()) + .addMethod(getGetCustomMetricMethod()) .build(); } } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 8ec45438..ce52aa51 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -275,6 +275,106 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -496,269 +596,504 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!SearchChangeHistoryEventsResponse\022Q\n\025ch" + "ange_history_events\030\001 \003(\01322.google.analy" + "tics.admin.v1alpha.ChangeHistoryEvent\022\027\n" - + "\017next_page_token\030\002 \001(\t2\334P\n\025AnalyticsAdmi" - + "nService\022\223\001\n\nGetAccount\0221.google.analyti" - + "cs.admin.v1alpha.GetAccountRequest\032\'.goo" - + "gle.analytics.admin.v1alpha.Account\")\202\323\344" - + "\223\002\034\022\032/v1alpha/{name=accounts/*}\332A\004name\022\224" - + "\001\n\014ListAccounts\0223.google.analytics.admin" - + ".v1alpha.ListAccountsRequest\0324.google.an" - + "alytics.admin.v1alpha.ListAccountsRespon" - + "se\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDelete" - + "Account\0224.google.analytics.admin.v1alpha" - + ".DeleteAccountRequest\032\026.google.protobuf." - + "Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*" - + "}\332A\004name\022\271\001\n\rUpdateAccount\0224.google.anal" - + "ytics.admin.v1alpha.UpdateAccountRequest" - + "\032\'.google.analytics.admin.v1alpha.Accoun" - + "t\"I\202\323\344\223\002-2\"/v1alpha/{account.name=accoun" - + "ts/*}:\007account\332A\023account,update_mask\022\314\001\n" - + "\026ProvisionAccountTicket\022=.google.analyti" - + "cs.admin.v1alpha.ProvisionAccountTicketR" - + "equest\032>.google.analytics.admin.v1alpha." - + "ProvisionAccountTicketResponse\"3\202\323\344\223\002-\"(" - + "/v1alpha/accounts:provisionAccountTicket" - + ":\001*\022\264\001\n\024ListAccountSummaries\022;.google.an" - + "alytics.admin.v1alpha.ListAccountSummari" - + "esRequest\032<.google.analytics.admin.v1alp" - + "ha.ListAccountSummariesResponse\"!\202\323\344\223\002\033\022" - + "\031/v1alpha/accountSummaries\022\230\001\n\013GetProper" - + "ty\0222.google.analytics.admin.v1alpha.GetP" - + "ropertyRequest\032(.google.analytics.admin." - + "v1alpha.Property\"+\202\323\344\223\002\036\022\034/v1alpha/{name" - + "=properties/*}\332A\004name\022\234\001\n\016ListProperties" - + "\0225.google.analytics.admin.v1alpha.ListPr" - + "opertiesRequest\0326.google.analytics.admin" - + ".v1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022" - + "\023/v1alpha/properties\022\243\001\n\016CreateProperty\022" - + "5.google.analytics.admin.v1alpha.CreateP" - + "ropertyRequest\032(.google.analytics.admin." - + "v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1alpha/prope" - + "rties:\010property\332A\010property\022\236\001\n\016DeletePro" - + "perty\0225.google.analytics.admin.v1alpha.D" - + "eletePropertyRequest\032(.google.analytics." - + "admin.v1alpha.Property\"+\202\323\344\223\002\036*\034/v1alpha" - + "/{name=properties/*}\332A\004name\022\301\001\n\016UpdatePr" - + "operty\0225.google.analytics.admin.v1alpha." - + "UpdatePropertyRequest\032(.google.analytics" - + ".admin.v1alpha.Property\"N\202\323\344\223\00212%/v1alph" - + "a/{property.name=properties/*}:\010property" - + "\332A\024property,update_mask\022\316\001\n\013GetUserLink\022" - + "2.google.analytics.admin.v1alpha.GetUser" - + "LinkRequest\032(.google.analytics.admin.v1a" - + "lpha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{name=ac" - + "counts/*/userLinks/*}Z*\022(/v1alpha/{name=" - + "properties/*/userLinks/*}\332A\004name\022\366\001\n\021Bat" - + "chGetUserLinks\0228.google.analytics.admin." - + "v1alpha.BatchGetUserLinksRequest\0329.googl" - + "e.analytics.admin.v1alpha.BatchGetUserLi" - + "nksResponse\"l\202\323\344\223\002f\022//v1alpha/{parent=ac" - + "counts/*}/userLinks:batchGetZ3\0221/v1alpha" - + "/{parent=properties/*}/userLinks:batchGe" - + "t\022\341\001\n\rListUserLinks\0224.google.analytics.a" - + "dmin.v1alpha.ListUserLinksRequest\0325.goog" + + "\017next_page_token\030\002 \001(\t\"t\n#GetMeasurement" + + "ProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340A\002" + + "\372A9\n7analyticsadmin.googleapis.com/Measu" + + "rementProtocolSecret\"\336\001\n&CreateMeasureme" + + "ntProtocolSecretRequest\022O\n\006parent\030\001 \001(\tB" + + "?\340A\002\372A9\0227analyticsadmin.googleapis.com/M" + + "easurementProtocolSecret\022c\n\033measurement_" + + "protocol_secret\030\002 \001(\01329.google.analytics" + + ".admin.v1alpha.MeasurementProtocolSecret" + + "B\003\340A\002\"w\n&DeleteMeasurementProtocolSecret" + + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" + + "admin.googleapis.com/MeasurementProtocol" + + "Secret\"\276\001\n&UpdateMeasurementProtocolSecr" + + "etRequest\022c\n\033measurement_protocol_secret" + + "\030\001 \001(\01329.google.analytics.admin.v1alpha." + + "MeasurementProtocolSecretB\003\340A\002\022/\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" + + "\237\001\n%ListMeasurementProtocolSecretsReques" + + "t\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmi" + + "n.googleapis.com/MeasurementProtocolSecr" + + "et\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\242\001\n&ListMeasurementProtocolSecretsResp" + + "onse\022_\n\034measurement_protocol_secrets\030\001 \003" + + "(\01329.google.analytics.admin.v1alpha.Meas" + + "urementProtocolSecret\022\027\n\017next_page_token" + + "\030\002 \001(\t\"l\n\037GetGoogleSignalsSettingsReques" + + "t\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin." + + "googleapis.com/GoogleSignalsSettings\"\267\001\n" + + "\"UpdateGoogleSignalsSettingsRequest\022[\n\027g" + + "oogle_signals_settings\030\001 \001(\01325.google.an" + + "alytics.admin.v1alpha.GoogleSignalsSetti" + + "ngsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\"\265\001\n\034CreateConvers" + + "ionEventRequest\022N\n\020conversion_event\030\001 \001(" + + "\0132/.google.analytics.admin.v1alpha.Conve" + + "rsionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/\022" + + "-analyticsadmin.googleapis.com/Conversio" + + "nEvent\"`\n\031GetConversionEventRequest\022C\n\004n" + + "ame\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.google" + + "apis.com/ConversionEvent\"c\n\034DeleteConver" + + "sionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + + "analyticsadmin.googleapis.com/Conversion" + + "Event\"\213\001\n\033ListConversionEventsRequest\022E\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.go" + + "ogleapis.com/ConversionEvent\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListConv" + + "ersionEventsResponse\022J\n\021conversion_event" + + "s\030\001 \003(\0132/.google.analytics.admin.v1alpha" + + ".ConversionEvent\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\265\001\n\034CreateCustomDimensionRequest\022E\n\006pa" + + "rent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.googl" + + "eapis.com/CustomDimension\022N\n\020custom_dime" + + "nsion\030\002 \001(\0132/.google.analytics.admin.v1a" + + "lpha.CustomDimensionB\003\340A\002\"\237\001\n\034UpdateCust" + + "omDimensionRequest\022I\n\020custom_dimension\030\001" + + " \001(\0132/.google.analytics.admin.v1alpha.Cu" + + "stomDimension\0224\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033ListCust" + + "omDimensionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002" + + "\372A/\022-analyticsadmin.googleapis.com/Custo" + + "mDimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"\203\001\n\034ListCustomDimensionsRespon" + + "se\022J\n\021custom_dimensions\030\001 \003(\0132/.google.a" + + "nalytics.admin.v1alpha.CustomDimension\022\027" + + "\n\017next_page_token\030\002 \001(\t\"d\n\035ArchiveCustom" + + "DimensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + + "analyticsadmin.googleapis.com/CustomDime" + + "nsion\"`\n\031GetCustomDimensionRequest\022C\n\004na" + + "me\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googlea" + + "pis.com/CustomDimension\"\251\001\n\031CreateCustom" + + "MetricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*a" + + "nalyticsadmin.googleapis.com/CustomMetri" + + "c\022H\n\rcustom_metric\030\002 \001(\0132,.google.analyt" + + "ics.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n\031" + + "UpdateCustomMetricRequest\022C\n\rcustom_metr" + + "ic\030\001 \001(\0132,.google.analytics.admin.v1alph" + + "a.CustomMetric\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030ListCus" + + "tomMetricsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A" + + ",\022*analyticsadmin.googleapis.com/CustomM" + + "etric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"z\n\031ListCustomMetricsResponse\022D\n\016cus" + + "tom_metrics\030\001 \003(\0132,.google.analytics.adm" + + "in.v1alpha.CustomMetric\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"^\n\032ArchiveCustomMetricRequest\022@" + + "\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goo" + + "gleapis.com/CustomMetric\"Z\n\026GetCustomMet" + + "ricRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyt" + + "icsadmin.googleapis.com/CustomMetric2\335~\n" + + "\025AnalyticsAdminService\022\223\001\n\nGetAccount\0221." + + "google.analytics.admin.v1alpha.GetAccoun" + + "tRequest\032\'.google.analytics.admin.v1alph" + + "a.Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=accoun" + + "ts/*}\332A\004name\022\224\001\n\014ListAccounts\0223.google.a" + + "nalytics.admin.v1alpha.ListAccountsReque" + + "st\0324.google.analytics.admin.v1alpha.List" + + "AccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accou" + + "nts\022\210\001\n\rDeleteAccount\0224.google.analytics" + + ".admin.v1alpha.DeleteAccountRequest\032\026.go" + + "ogle.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{n" + + "ame=accounts/*}\332A\004name\022\271\001\n\rUpdateAccount" + + "\0224.google.analytics.admin.v1alpha.Update" + + "AccountRequest\032\'.google.analytics.admin." + + "v1alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{accou" + + "nt.name=accounts/*}:\007account\332A\023account,u" + + "pdate_mask\022\314\001\n\026ProvisionAccountTicket\022=." + + "google.analytics.admin.v1alpha.Provision" + + "AccountTicketRequest\032>.google.analytics." + + "admin.v1alpha.ProvisionAccountTicketResp" + + "onse\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisio" + + "nAccountTicket:\001*\022\264\001\n\024ListAccountSummari" + + "es\022;.google.analytics.admin.v1alpha.List" + + "AccountSummariesRequest\032<.google.analyti" + + "cs.admin.v1alpha.ListAccountSummariesRes" + + "ponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries" + + "\022\230\001\n\013GetProperty\0222.google.analytics.admi" + + "n.v1alpha.GetPropertyRequest\032(.google.an" + + "alytics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034" + + "/v1alpha/{name=properties/*}\332A\004name\022\234\001\n\016" + + "ListProperties\0225.google.analytics.admin." + + "v1alpha.ListPropertiesRequest\0326.google.a" + + "nalytics.admin.v1alpha.ListPropertiesRes" + + "ponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016C" + + "reateProperty\0225.google.analytics.admin.v" + + "1alpha.CreatePropertyRequest\032(.google.an" + + "alytics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023" + + "/v1alpha/properties:\010property\332A\010property" + + "\022\236\001\n\016DeleteProperty\0225.google.analytics.a" + + "dmin.v1alpha.DeletePropertyRequest\032(.goo" + + "gle.analytics.admin.v1alpha.Property\"+\202\323" + + "\344\223\002\036*\034/v1alpha/{name=properties/*}\332A\004nam" + + "e\022\301\001\n\016UpdateProperty\0225.google.analytics." + + "admin.v1alpha.UpdatePropertyRequest\032(.go" + + "ogle.analytics.admin.v1alpha.Property\"N\202" + + "\323\344\223\00212%/v1alpha/{property.name=propertie" + + "s/*}:\010property\332A\024property,update_mask\022\316\001" + + "\n\013GetUserLink\0222.google.analytics.admin.v" + + "1alpha.GetUserLinkRequest\032(.google.analy" + + "tics.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1" + + "alpha/{name=accounts/*/userLinks/*}Z*\022(/" + + "v1alpha/{name=properties/*/userLinks/*}\332" + + "A\004name\022\366\001\n\021BatchGetUserLinks\0228.google.an" + + "alytics.admin.v1alpha.BatchGetUserLinksR" + + "equest\0329.google.analytics.admin.v1alpha." + + "BatchGetUserLinksResponse\"l\202\323\344\223\002f\022//v1al" + + "pha/{parent=accounts/*}/userLinks:batchG" + + "etZ3\0221/v1alpha/{parent=properties/*}/use" + + "rLinks:batchGet\022\341\001\n\rListUserLinks\0224.goog" + "le.analytics.admin.v1alpha.ListUserLinks" - + "Response\"c\202\323\344\223\002T\022&/v1alpha/{parent=accou" - + "nts/*}/userLinksZ*\022(/v1alpha/{parent=pro" - + "perties/*}/userLinks\332A\006parent\022\355\001\n\016AuditU" - + "serLinks\0225.google.analytics.admin.v1alph" - + "a.AuditUserLinksRequest\0326.google.analyti" - + "cs.admin.v1alpha.AuditUserLinksResponse\"" - + "l\202\323\344\223\002f\",/v1alpha/{parent=accounts/*}/us" - + "erLinks:audit:\001*Z3\"./v1alpha/{parent=pro" - + "perties/*}/userLinks:audit:\001*\022\367\001\n\016Create" - + "UserLink\0225.google.analytics.admin.v1alph" - + "a.CreateUserLinkRequest\032(.google.analyti" - + "cs.admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1a" - + "lpha/{parent=accounts/*}/userLinks:\tuser" - + "_linkZ5\"(/v1alpha/{parent=properties/*}/" - + "userLinks:\tuser_link\332A\020parent,user_link\022" - + "\213\002\n\024BatchCreateUserLinks\022;.google.analyt" - + "ics.admin.v1alpha.BatchCreateUserLinksRe" - + "quest\032<.google.analytics.admin.v1alpha.B" - + "atchCreateUserLinksResponse\"x\202\323\344\223\002r\"2/v1" - + "alpha/{parent=accounts/*}/userLinks:batc" - + "hCreate:\001*Z9\"4/v1alpha/{parent=propertie" - + "s/*}/userLinks:batchCreate:\001*\022\204\002\n\016Update" - + "UserLink\0225.google.analytics.admin.v1alph" - + "a.UpdateUserLinkRequest\032(.google.analyti" - + "cs.admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1a" - + "lpha/{user_link.name=accounts/*/userLink" - + "s/*}:\tuser_linkZ?22/v1alpha/{user_link.n" - + "ame=properties/*/userLinks/*}:\tuser_link" - + "\332A\tuser_link\022\213\002\n\024BatchUpdateUserLinks\022;." - + "google.analytics.admin.v1alpha.BatchUpda" - + "teUserLinksRequest\032<.google.analytics.ad" - + "min.v1alpha.BatchUpdateUserLinksResponse" - + "\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/u" - + "serLinks:batchUpdate:\001*Z9\"4/v1alpha/{par" - + "ent=properties/*}/userLinks:batchUpdate:" - + "\001*\022\302\001\n\016DeleteUserLink\0225.google.analytics" - + ".admin.v1alpha.DeleteUserLinkRequest\032\026.g" - + "oogle.protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{" - + "name=accounts/*/userLinks/*}Z**(/v1alpha" - + "/{name=properties/*/userLinks/*}\332A\004name\022" - + "\345\001\n\024BatchDeleteUserLinks\022;.google.analyt" - + "ics.admin.v1alpha.BatchDeleteUserLinksRe" - + "quest\032\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/" - + "v1alpha/{parent=accounts/*}/userLinks:ba" - + "tchDelete:\001*Z9\"4/v1alpha/{parent=propert" - + "ies/*}/userLinks:batchDelete:\001*\022\270\001\n\020GetW" - + "ebDataStream\0227.google.analytics.admin.v1" - + "alpha.GetWebDataStreamRequest\032-.google.a" - + "nalytics.admin.v1alpha.WebDataStream\"<\202\323" - + "\344\223\002/\022-/v1alpha/{name=properties/*/webDat" - + "aStreams/*}\332A\004name\022\247\001\n\023DeleteWebDataStre" - + "am\022:.google.analytics.admin.v1alpha.Dele" - + "teWebDataStreamRequest\032\026.google.protobuf" - + ".Empty\"<\202\323\344\223\002/*-/v1alpha/{name=propertie" - + "s/*/webDataStreams/*}\332A\004name\022\366\001\n\023UpdateW" - + "ebDataStream\022:.google.analytics.admin.v1" - + "alpha.UpdateWebDataStreamRequest\032-.googl" - + "e.analytics.admin.v1alpha.WebDataStream\"" - + "t\202\323\344\223\002P2=/v1alpha/{web_data_stream.name=" - + "properties/*/webDataStreams/*}:\017web_data" - + "_stream\332A\033web_data_stream,update_mask\022\341\001" - + "\n\023CreateWebDataStream\022:.google.analytics" - + ".admin.v1alpha.CreateWebDataStreamReques" - + "t\032-.google.analytics.admin.v1alpha.WebDa" - + "taStream\"_\202\323\344\223\002@\"-/v1alpha/{parent=prope" - + "rties/*}/webDataStreams:\017web_data_stream" - + "\332A\026parent,web_data_stream\022\313\001\n\022ListWebDat" - + "aStreams\0229.google.analytics.admin.v1alph" - + "a.ListWebDataStreamsRequest\032:.google.ana" - + "lytics.admin.v1alpha.ListWebDataStreamsR" - + "esponse\">\202\323\344\223\002/\022-/v1alpha/{parent=proper" - + "ties/*}/webDataStreams\332A\006parent\022\304\001\n\023GetI" - + "osAppDataStream\022:.google.analytics.admin" - + ".v1alpha.GetIosAppDataStreamRequest\0320.go" - + "ogle.analytics.admin.v1alpha.IosAppDataS" - + "tream\"?\202\323\344\223\0022\0220/v1alpha/{name=properties" - + "/*/iosAppDataStreams/*}\332A\004name\022\260\001\n\026Delet" - + "eIosAppDataStream\022=.google.analytics.adm" - + "in.v1alpha.DeleteIosAppDataStreamRequest" - + "\032\026.google.protobuf.Empty\"?\202\323\344\223\0022*0/v1alp" - + "ha/{name=properties/*/iosAppDataStreams/" - + "*}\332A\004name\022\217\002\n\026UpdateIosAppDataStream\022=.g" - + "oogle.analytics.admin.v1alpha.UpdateIosA" - + "ppDataStreamRequest\0320.google.analytics.a" - + "dmin.v1alpha.IosAppDataStream\"\203\001\202\323\344\223\002[2D" - + "/v1alpha/{ios_app_data_stream.name=prope" - + "rties/*/iosAppDataStreams/*}:\023ios_app_da" - + "ta_stream\332A\037ios_app_data_stream,update_m" - + "ask\022\327\001\n\025ListIosAppDataStreams\022<.google.a" - + "nalytics.admin.v1alpha.ListIosAppDataStr" - + "eamsRequest\032=.google.analytics.admin.v1a" - + "lpha.ListIosAppDataStreamsResponse\"A\202\323\344\223" - + "\0022\0220/v1alpha/{parent=properties/*}/iosAp" - + "pDataStreams\332A\006parent\022\324\001\n\027GetAndroidAppD" - + "ataStream\022>.google.analytics.admin.v1alp" - + "ha.GetAndroidAppDataStreamRequest\0324.goog" - + "le.analytics.admin.v1alpha.AndroidAppDat" - + "aStream\"C\202\323\344\223\0026\0224/v1alpha/{name=properti" - + "es/*/androidAppDataStreams/*}\332A\004name\022\274\001\n" - + "\032DeleteAndroidAppDataStream\022A.google.ana" - + "lytics.admin.v1alpha.DeleteAndroidAppDat" - + "aStreamRequest\032\026.google.protobuf.Empty\"C" - + "\202\323\344\223\0026*4/v1alpha/{name=properties/*/andr" - + "oidAppDataStreams/*}\332A\004name\022\253\002\n\032UpdateAn" - + "droidAppDataStream\022A.google.analytics.ad" - + "min.v1alpha.UpdateAndroidAppDataStreamRe" - + "quest\0324.google.analytics.admin.v1alpha.A" - + "ndroidAppDataStream\"\223\001\202\323\344\223\002g2L/v1alpha/{" - + "android_app_data_stream.name=properties/" - + "*/androidAppDataStreams/*}:\027android_app_" - + "data_stream\332A#android_app_data_stream,up" - + "date_mask\022\347\001\n\031ListAndroidAppDataStreams\022" - + "@.google.analytics.admin.v1alpha.ListAnd" - + "roidAppDataStreamsRequest\032A.google.analy" - + "tics.admin.v1alpha.ListAndroidAppDataStr" - + "eamsResponse\"E\202\323\344\223\0026\0224/v1alpha/{parent=p" - + "roperties/*}/androidAppDataStreams\332A\006par" - + "ent\022\376\001\n\036GetEnhancedMeasurementSettings\022E" - + ".google.analytics.admin.v1alpha.GetEnhan" - + "cedMeasurementSettingsRequest\032;.google.a" - + "nalytics.admin.v1alpha.EnhancedMeasureme" - + "ntSettings\"X\202\323\344\223\002K\022I/v1alpha/{name=prope" - + "rties/*/webDataStreams/*/enhancedMeasure" - + "mentSettings}\332A\004name\022\350\002\n!UpdateEnhancedM" - + "easurementSettings\022H.google.analytics.ad" - + "min.v1alpha.UpdateEnhancedMeasurementSet", - "tingsRequest\032;.google.analytics.admin.v1" - + "alpha.EnhancedMeasurementSettings\"\273\001\202\323\344\223" - + "\002\210\0012g/v1alpha/{enhanced_measurement_sett" - + "ings.name=properties/*/webDataStreams/*/" - + "enhancedMeasurementSettings}:\035enhanced_m" - + "easurement_settings\332A)enhanced_measureme" - + "nt_settings,update_mask\022\331\001\n\022CreateFireba" - + "seLink\0229.google.analytics.admin.v1alpha." - + "CreateFirebaseLinkRequest\032,.google.analy" - + "tics.admin.v1alpha.FirebaseLink\"Z\202\323\344\223\002=\"" - + ",/v1alpha/{parent=properties/*}/firebase" - + "Links:\rfirebase_link\332A\024parent,firebase_l" - + "ink\022\354\001\n\022UpdateFirebaseLink\0229.google.anal" - + "ytics.admin.v1alpha.UpdateFirebaseLinkRe" - + "quest\032,.google.analytics.admin.v1alpha.F" - + "irebaseLink\"m\202\323\344\223\002K2:/v1alpha/{firebase_" - + "link.name=properties/*/firebaseLinks/*}:" - + "\rfirebase_link\332A\031firebase_link,update_ma" - + "sk\022\244\001\n\022DeleteFirebaseLink\0229.google.analy" - + "tics.admin.v1alpha.DeleteFirebaseLinkReq" - + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" - + "1alpha/{name=properties/*/firebaseLinks/" - + "*}\332A\004name\022\307\001\n\021ListFirebaseLinks\0228.google" - + ".analytics.admin.v1alpha.ListFirebaseLin" - + "ksRequest\0329.google.analytics.admin.v1alp" - + "ha.ListFirebaseLinksResponse\"=\202\323\344\223\002.\022,/v" - + "1alpha/{parent=properties/*}/firebaseLin" - + "ks\332A\006parent\022\306\001\n\020GetGlobalSiteTag\0227.googl" - + "e.analytics.admin.v1alpha.GetGlobalSiteT" - + "agRequest\032-.google.analytics.admin.v1alp" - + "ha.GlobalSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name" - + "=properties/*/webDataStreams/*/globalSit" - + "eTag}\332A\004name\022\341\001\n\023CreateGoogleAdsLink\022:.g" - + "oogle.analytics.admin.v1alpha.CreateGoog" - + "leAdsLinkRequest\032-.google.analytics.admi" - + "n.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alph" - + "a/{parent=properties/*}/googleAdsLinks:\017" - + "google_ads_link\332A\026parent,google_ads_link" - + "\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analyt" - + "ics.admin.v1alpha.UpdateGoogleAdsLinkReq" - + "uest\032-.google.analytics.admin.v1alpha.Go" - + "ogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{google_ad" - + "s_link.name=properties/*/googleAdsLinks/" - + "*}:\017google_ads_link\332A\033google_ads_link,up" - + "date_mask\022\247\001\n\023DeleteGoogleAdsLink\022:.goog" - + "le.analytics.admin.v1alpha.DeleteGoogleA" - + "dsLinkRequest\032\026.google.protobuf.Empty\"<\202" - + "\323\344\223\002/*-/v1alpha/{name=properties/*/googl" - + "eAdsLinks/*}\332A\004name\022\313\001\n\022ListGoogleAdsLin" - + "ks\0229.google.analytics.admin.v1alpha.List" - + "GoogleAdsLinksRequest\032:.google.analytics" - + ".admin.v1alpha.ListGoogleAdsLinksRespons" - + "e\">\202\323\344\223\002/\022-/v1alpha/{parent=properties/*" - + "}/googleAdsLinks\332A\006parent\022\313\001\n\026GetDataSha" - + "ringSettings\022=.google.analytics.admin.v1" - + "alpha.GetDataSharingSettingsRequest\0323.go" - + "ogle.analytics.admin.v1alpha.DataSharing" - + "Settings\"=\202\323\344\223\0020\022./v1alpha/{name=account" - + "s/*/dataSharingSettings}\332A\004name\022\344\001\n\031Sear" - + "chChangeHistoryEvents\022@.google.analytics" - + ".admin.v1alpha.SearchChangeHistoryEvents" - + "Request\032A.google.analytics.admin.v1alpha" - + ".SearchChangeHistoryEventsResponse\"B\202\323\344\223" - + "\002<\"7/v1alpha/{account=accounts/*}:search" - + "ChangeHistoryEvents:\001*\032\374\001\312A\035analyticsadm" - + "in.googleapis.com\322A\330\001https://www.googlea" - + "pis.com/auth/analytics.edit,https://www." - + "googleapis.com/auth/analytics.manage.use" - + "rs,https://www.googleapis.com/auth/analy" - + "tics.manage.users.readonly,https://www.g" - + "oogleapis.com/auth/analytics.readonlyB\200\001" - + "\n\"com.google.analytics.admin.v1alphaB\023An" - + "alyticsAdminProtoP\001ZCgoogle.golang.org/g" - + "enproto/googleapis/analytics/admin/v1alp" - + "ha;adminb\006proto3" + + "Request\0325.google.analytics.admin.v1alpha" + + ".ListUserLinksResponse\"c\202\323\344\223\002T\022&/v1alpha" + + "/{parent=accounts/*}/userLinksZ*\022(/v1alp" + + "ha/{parent=properties/*}/userLinks\332A\006par" + + "ent\022\355\001\n\016AuditUserLinks\0225.google.analytic" + + "s.admin.v1alpha.AuditUserLinksRequest\0326." + + "google.analytics.admin.v1alpha.AuditUser" + + "LinksResponse\"l\202\323\344\223\002f\",/v1alpha/{parent=" + + "accounts/*}/userLinks:audit:\001*Z3\"./v1alp" + + "ha/{parent=properties/*}/userLinks:audit" + + ":\001*\022\367\001\n\016CreateUserLink\0225.google.analytic" + + "s.admin.v1alpha.CreateUserLinkRequest\032(." + + "google.analytics.admin.v1alpha.UserLink\"" + + "\203\001\202\323\344\223\002j\"&/v1alpha/{parent=accounts/*}/u" + + "serLinks:\tuser_linkZ5\"(/v1alpha/{parent=" + + "properties/*}/userLinks:\tuser_link\332A\020par" + + "ent,user_link\022\213\002\n\024BatchCreateUserLinks\022;" + + ".google.analytics.admin.v1alpha.BatchCre" + + "ateUserLinksRequest\032<.google.analytics.a" + + "dmin.v1alpha.BatchCreateUserLinksRespons" + + "e\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/" + + "userLinks:batchCreate:\001*Z9\"4/v1alpha/{pa" + + "rent=properties/*}/userLinks:batchCreate" + + ":\001*\022\204\002\n\016UpdateUserLink\0225.google.analytic" + + "s.admin.v1alpha.UpdateUserLinkRequest\032(." + + "google.analytics.admin.v1alpha.UserLink\"" + + "\220\001\202\323\344\223\002~20/v1alpha/{user_link.name=accou" + + "nts/*/userLinks/*}:\tuser_linkZ?22/v1alph" + + "a/{user_link.name=properties/*/userLinks" + + "/*}:\tuser_link\332A\tuser_link\022\213\002\n\024BatchUpda" + + "teUserLinks\022;.google.analytics.admin.v1a" + + "lpha.BatchUpdateUserLinksRequest\032<.googl" + + "e.analytics.admin.v1alpha.BatchUpdateUse" + + "rLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent" + + "=accounts/*}/userLinks:batchUpdate:\001*Z9\"" + + "4/v1alpha/{parent=properties/*}/userLink" + + "s:batchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225.go" + + "ogle.analytics.admin.v1alpha.DeleteUserL" + + "inkRequest\032\026.google.protobuf.Empty\"a\202\323\344\223", + "\002T*&/v1alpha/{name=accounts/*/userLinks/" + + "*}Z**(/v1alpha/{name=properties/*/userLi" + + "nks/*}\332A\004name\022\345\001\n\024BatchDeleteUserLinks\022;" + + ".google.analytics.admin.v1alpha.BatchDel" + + "eteUserLinksRequest\032\026.google.protobuf.Em" + + "pty\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*" + + "}/userLinks:batchDelete:\001*Z9\"4/v1alpha/{" + + "parent=properties/*}/userLinks:batchDele" + + "te:\001*\022\270\001\n\020GetWebDataStream\0227.google.anal" + + "ytics.admin.v1alpha.GetWebDataStreamRequ" + + "est\032-.google.analytics.admin.v1alpha.Web" + + "DataStream\"<\202\323\344\223\002/\022-/v1alpha/{name=prope" + + "rties/*/webDataStreams/*}\332A\004name\022\247\001\n\023Del" + + "eteWebDataStream\022:.google.analytics.admi" + + "n.v1alpha.DeleteWebDataStreamRequest\032\026.g" + + "oogle.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{" + + "name=properties/*/webDataStreams/*}\332A\004na" + + "me\022\366\001\n\023UpdateWebDataStream\022:.google.anal" + + "ytics.admin.v1alpha.UpdateWebDataStreamR" + + "equest\032-.google.analytics.admin.v1alpha." + + "WebDataStream\"t\202\323\344\223\002P2=/v1alpha/{web_dat" + + "a_stream.name=properties/*/webDataStream" + + "s/*}:\017web_data_stream\332A\033web_data_stream," + + "update_mask\022\341\001\n\023CreateWebDataStream\022:.go" + + "ogle.analytics.admin.v1alpha.CreateWebDa" + + "taStreamRequest\032-.google.analytics.admin" + + ".v1alpha.WebDataStream\"_\202\323\344\223\002@\"-/v1alpha" + + "/{parent=properties/*}/webDataStreams:\017w" + + "eb_data_stream\332A\026parent,web_data_stream\022" + + "\313\001\n\022ListWebDataStreams\0229.google.analytic" + + "s.admin.v1alpha.ListWebDataStreamsReques" + + "t\032:.google.analytics.admin.v1alpha.ListW" + + "ebDataStreamsResponse\">\202\323\344\223\002/\022-/v1alpha/" + + "{parent=properties/*}/webDataStreams\332A\006p" + + "arent\022\304\001\n\023GetIosAppDataStream\022:.google.a" + + "nalytics.admin.v1alpha.GetIosAppDataStre" + + "amRequest\0320.google.analytics.admin.v1alp" + + "ha.IosAppDataStream\"?\202\323\344\223\0022\0220/v1alpha/{n" + + "ame=properties/*/iosAppDataStreams/*}\332A\004" + + "name\022\260\001\n\026DeleteIosAppDataStream\022=.google" + + ".analytics.admin.v1alpha.DeleteIosAppDat" + + "aStreamRequest\032\026.google.protobuf.Empty\"?" + + "\202\323\344\223\0022*0/v1alpha/{name=properties/*/iosA" + + "ppDataStreams/*}\332A\004name\022\217\002\n\026UpdateIosApp" + + "DataStream\022=.google.analytics.admin.v1al" + + "pha.UpdateIosAppDataStreamRequest\0320.goog" + + "le.analytics.admin.v1alpha.IosAppDataStr" + + "eam\"\203\001\202\323\344\223\002[2D/v1alpha/{ios_app_data_str" + + "eam.name=properties/*/iosAppDataStreams/" + + "*}:\023ios_app_data_stream\332A\037ios_app_data_s" + + "tream,update_mask\022\327\001\n\025ListIosAppDataStre" + + "ams\022<.google.analytics.admin.v1alpha.Lis" + + "tIosAppDataStreamsRequest\032=.google.analy" + + "tics.admin.v1alpha.ListIosAppDataStreams" + + "Response\"A\202\323\344\223\0022\0220/v1alpha/{parent=prope" + + "rties/*}/iosAppDataStreams\332A\006parent\022\324\001\n\027" + + "GetAndroidAppDataStream\022>.google.analyti" + + "cs.admin.v1alpha.GetAndroidAppDataStream" + + "Request\0324.google.analytics.admin.v1alpha" + + ".AndroidAppDataStream\"C\202\323\344\223\0026\0224/v1alpha/" + + "{name=properties/*/androidAppDataStreams" + + "/*}\332A\004name\022\274\001\n\032DeleteAndroidAppDataStrea" + + "m\022A.google.analytics.admin.v1alpha.Delet" + + "eAndroidAppDataStreamRequest\032\026.google.pr" + + "otobuf.Empty\"C\202\323\344\223\0026*4/v1alpha/{name=pro" + + "perties/*/androidAppDataStreams/*}\332A\004nam" + + "e\022\253\002\n\032UpdateAndroidAppDataStream\022A.googl" + + "e.analytics.admin.v1alpha.UpdateAndroidA" + + "ppDataStreamRequest\0324.google.analytics.a" + + "dmin.v1alpha.AndroidAppDataStream\"\223\001\202\323\344\223" + + "\002g2L/v1alpha/{android_app_data_stream.na" + + "me=properties/*/androidAppDataStreams/*}" + + ":\027android_app_data_stream\332A#android_app_" + + "data_stream,update_mask\022\347\001\n\031ListAndroidA" + + "ppDataStreams\022@.google.analytics.admin.v" + + "1alpha.ListAndroidAppDataStreamsRequest\032" + + "A.google.analytics.admin.v1alpha.ListAnd" + + "roidAppDataStreamsResponse\"E\202\323\344\223\0026\0224/v1a" + + "lpha/{parent=properties/*}/androidAppDat" + + "aStreams\332A\006parent\022\376\001\n\036GetEnhancedMeasure" + + "mentSettings\022E.google.analytics.admin.v1" + + "alpha.GetEnhancedMeasurementSettingsRequ" + + "est\032;.google.analytics.admin.v1alpha.Enh" + + "ancedMeasurementSettings\"X\202\323\344\223\002K\022I/v1alp" + + "ha/{name=properties/*/webDataStreams/*/e" + + "nhancedMeasurementSettings}\332A\004name\022\350\002\n!U" + + "pdateEnhancedMeasurementSettings\022H.googl" + + "e.analytics.admin.v1alpha.UpdateEnhanced" + + "MeasurementSettingsRequest\032;.google.anal" + + "ytics.admin.v1alpha.EnhancedMeasurementS" + + "ettings\"\273\001\202\323\344\223\002\210\0012g/v1alpha/{enhanced_me" + + "asurement_settings.name=properties/*/web" + + "DataStreams/*/enhancedMeasurementSetting" + + "s}:\035enhanced_measurement_settings\332A)enha" + + "nced_measurement_settings,update_mask\022\331\001" + + "\n\022CreateFirebaseLink\0229.google.analytics." + + "admin.v1alpha.CreateFirebaseLinkRequest\032" + + ",.google.analytics.admin.v1alpha.Firebas" + + "eLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=properti" + + "es/*}/firebaseLinks:\rfirebase_link\332A\024par" + + "ent,firebase_link\022\354\001\n\022UpdateFirebaseLink" + + "\0229.google.analytics.admin.v1alpha.Update" + + "FirebaseLinkRequest\032,.google.analytics.a" + + "dmin.v1alpha.FirebaseLink\"m\202\323\344\223\002K2:/v1al" + + "pha/{firebase_link.name=properties/*/fir" + + "ebaseLinks/*}:\rfirebase_link\332A\031firebase_" + + "link,update_mask\022\244\001\n\022DeleteFirebaseLink\022" + + "9.google.analytics.admin.v1alpha.DeleteF" + + "irebaseLinkRequest\032\026.google.protobuf.Emp" + + "ty\";\202\323\344\223\002.*,/v1alpha/{name=properties/*/" + + "firebaseLinks/*}\332A\004name\022\307\001\n\021ListFirebase" + + "Links\0228.google.analytics.admin.v1alpha.L" + + "istFirebaseLinksRequest\0329.google.analyti" + + "cs.admin.v1alpha.ListFirebaseLinksRespon" + + "se\"=\202\323\344\223\002.\022,/v1alpha/{parent=properties/" + + "*}/firebaseLinks\332A\006parent\022\306\001\n\020GetGlobalS" + + "iteTag\0227.google.analytics.admin.v1alpha." + + "GetGlobalSiteTagRequest\032-.google.analyti" + + "cs.admin.v1alpha.GlobalSiteTag\"J\202\323\344\223\002=\022;" + + "/v1alpha/{name=properties/*/webDataStrea" + + "ms/*/globalSiteTag}\332A\004name\022\341\001\n\023CreateGoo" + + "gleAdsLink\022:.google.analytics.admin.v1al" + + "pha.CreateGoogleAdsLinkRequest\032-.google." + + "analytics.admin.v1alpha.GoogleAdsLink\"_\202" + + "\323\344\223\002@\"-/v1alpha/{parent=properties/*}/go" + + "ogleAdsLinks:\017google_ads_link\332A\026parent,g" + + "oogle_ads_link\022\366\001\n\023UpdateGoogleAdsLink\022:" + + ".google.analytics.admin.v1alpha.UpdateGo" + + "ogleAdsLinkRequest\032-.google.analytics.ad" + + "min.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/v1al" + + "pha/{google_ads_link.name=properties/*/g" + + "oogleAdsLinks/*}:\017google_ads_link\332A\033goog" + + "le_ads_link,update_mask\022\247\001\n\023DeleteGoogle" + + "AdsLink\022:.google.analytics.admin.v1alpha" + + ".DeleteGoogleAdsLinkRequest\032\026.google.pro" + + "tobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=prop" + + "erties/*/googleAdsLinks/*}\332A\004name\022\313\001\n\022Li" + + "stGoogleAdsLinks\0229.google.analytics.admi" + + "n.v1alpha.ListGoogleAdsLinksRequest\032:.go" + + "ogle.analytics.admin.v1alpha.ListGoogleA" + + "dsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{paren" + + "t=properties/*}/googleAdsLinks\332A\006parent\022" + + "\313\001\n\026GetDataSharingSettings\022=.google.anal" + + "ytics.admin.v1alpha.GetDataSharingSettin" + + "gsRequest\0323.google.analytics.admin.v1alp" + + "ha.DataSharingSettings\"=\202\323\344\223\0020\022./v1alpha" + + "/{name=accounts/*/dataSharingSettings}\332A" + + "\004name\022\241\003\n\034GetMeasurementProtocolSecret\022C" + + ".google.analytics.admin.v1alpha.GetMeasu" + + "rementProtocolSecretRequest\0329.google.ana" + + "lytics.admin.v1alpha.MeasurementProtocol" + + "Secret\"\200\002\202\323\344\223\002\362\001\022J/v1alpha/{name=propert" + + "ies/*/webDataStreams/*/measurementProtoc" + + "olSecrets/*}ZO\022M/v1alpha/{name=propertie" + + "s/*/iosAppDataStreams/*/measurementProto" + + "colSecrets/*}ZS\022Q/v1alpha/{name=properti" + + "es/*/androidAppDataStreams/*/measurement" + + "ProtocolSecrets/*}\332A\004name\022\264\003\n\036ListMeasur" + + "ementProtocolSecrets\022E.google.analytics." + + "admin.v1alpha.ListMeasurementProtocolSec" + + "retsRequest\032F.google.analytics.admin.v1a" + + "lpha.ListMeasurementProtocolSecretsRespo" + + "nse\"\202\002\202\323\344\223\002\362\001\022J/v1alpha/{parent=properti" + + "es/*/webDataStreams/*}/measurementProtoc" + + "olSecretsZO\022M/v1alpha/{parent=properties" + + "/*/iosAppDataStreams/*}/measurementProto" + + "colSecretsZS\022Q/v1alpha/{parent=propertie" + + "s/*/androidAppDataStreams/*}/measurement" + + "ProtocolSecrets\332A\006parent\022\234\004\n\037CreateMeasu" + + "rementProtocolSecret\022F.google.analytics." + + "admin.v1alpha.CreateMeasurementProtocolS" + + "ecretRequest\0329.google.analytics.admin.v1" + + "alpha.MeasurementProtocolSecret\"\365\002\202\323\344\223\002\311" + + "\002\"J/v1alpha/{parent=properties/*/webData" + + "Streams/*}/measurementProtocolSecrets:\033m" + + "easurement_protocol_secretZl\"M/v1alpha/{" + + "parent=properties/*/iosAppDataStreams/*}" + + "/measurementProtocolSecrets:\033measurement" + + "_protocol_secretZp\"Q/v1alpha/{parent=pro" + + "perties/*/androidAppDataStreams/*}/measu" + + "rementProtocolSecrets:\033measurement_proto" + + "col_secret\332A\"parent,measurement_protocol" + + "_secret\022\204\003\n\037DeleteMeasurementProtocolSec" + + "ret\022F.google.analytics.admin.v1alpha.Del" + + "eteMeasurementProtocolSecretRequest\032\026.go" + + "ogle.protobuf.Empty\"\200\002\202\323\344\223\002\362\001*J/v1alpha/" + + "{name=properties/*/webDataStreams/*/meas" + + "urementProtocolSecrets/*}ZO*M/v1alpha/{n" + + "ame=properties/*/iosAppDataStreams/*/mea" + + "surementProtocolSecrets/*}ZS*Q/v1alpha/{" + + "name=properties/*/androidAppDataStreams/" + + "*/measurementProtocolSecrets/*}\332A\004name\022\367" + + "\004\n\037UpdateMeasurementProtocolSecret\022F.goo" + + "gle.analytics.admin.v1alpha.UpdateMeasur" + + "ementProtocolSecretRequest\0329.google.anal" + + "ytics.admin.v1alpha.MeasurementProtocolS" + + "ecret\"\320\003\202\323\344\223\002\237\0032f/v1alpha/{measurement_p" + + "rotocol_secret.name=properties/*/webData" + + "Streams/*/measurementProtocolSecrets/*}:" + + "\033measurement_protocol_secretZ\210\0012i/v1alph" + + "a/{measurement_protocol_secret.name=prop" + + "erties/*/iosAppDataStreams/*/measurement" + + "ProtocolSecrets/*}:\033measurement_protocol" + + "_secretZ\214\0012m/v1alpha/{measurement_protoc" + + "ol_secret.name=properties/*/androidAppDa" + + "taStreams/*/measurementProtocolSecrets/*" + + "}:\033measurement_protocol_secret\332A\'measure" + + "ment_protocol_secret,update_mask\022\344\001\n\031Sea" + + "rchChangeHistoryEvents\022@.google.analytic" + + "s.admin.v1alpha.SearchChangeHistoryEvent" + + "sRequest\032A.google.analytics.admin.v1alph" + + "a.SearchChangeHistoryEventsResponse\"B\202\323\344" + + "\223\002<\"7/v1alpha/{account=accounts/*}:searc" + + "hChangeHistoryEvents:\001*\022\325\001\n\030GetGoogleSig" + + "nalsSettings\022?.google.analytics.admin.v1" + + "alpha.GetGoogleSignalsSettingsRequest\0325." + + "google.analytics.admin.v1alpha.GoogleSig" + + "nalsSettings\"A\202\323\344\223\0024\0222/v1alpha/{name=pro" + + "perties/*/googleSignalsSettings}\332A\004name\022" + + "\254\002\n\033UpdateGoogleSignalsSettings\022B.google" + + ".analytics.admin.v1alpha.UpdateGoogleSig" + + "nalsSettingsRequest\0325.google.analytics.a" + + "dmin.v1alpha.GoogleSignalsSettings\"\221\001\202\323\344" + + "\223\002e2J/v1alpha/{google_signals_settings.n" + + "ame=properties/*/googleSignalsSettings}:" + + "\027google_signals_settings\332A#google_signal" + + "s_settings,update_mask\022\353\001\n\025CreateConvers" + + "ionEvent\022<.google.analytics.admin.v1alph" + + "a.CreateConversionEventRequest\032/.google." + + "analytics.admin.v1alpha.ConversionEvent\"" + + "c\202\323\344\223\002C\"//v1alpha/{parent=properties/*}/" + + "conversionEvents:\020conversion_event\332A\027par" + + "ent,conversion_event\022\300\001\n\022GetConversionEv" + + "ent\0229.google.analytics.admin.v1alpha.Get" + + "ConversionEventRequest\032/.google.analytic" + + "s.admin.v1alpha.ConversionEvent\">\202\323\344\223\0021\022" + + "//v1alpha/{name=properties/*/conversionE" + + "vents/*}\332A\004name\022\255\001\n\025DeleteConversionEven" + + "t\022<.google.analytics.admin.v1alpha.Delet" + + "eConversionEventRequest\032\026.google.protobu" + + "f.Empty\">\202\323\344\223\0021*//v1alpha/{name=properti" + + "es/*/conversionEvents/*}\332A\004name\022\323\001\n\024List" + + "ConversionEvents\022;.google.analytics.admi" + + "n.v1alpha.ListConversionEventsRequest\032<." + + "google.analytics.admin.v1alpha.ListConve" + + "rsionEventsResponse\"@\202\323\344\223\0021\022//v1alpha/{p" + + "arent=properties/*}/conversionEvents\332A\006p" + + "arent\022\353\001\n\025CreateCustomDimension\022<.google" + + ".analytics.admin.v1alpha.CreateCustomDim" + + "ensionRequest\032/.google.analytics.admin.v" + + "1alpha.CustomDimension\"c\202\323\344\223\002C\"//v1alpha" + + "/{parent=properties/*}/customDimensions:" + + "\020custom_dimension\332A\027parent,custom_dimens" + + "ion\022\201\002\n\025UpdateCustomDimension\022<.google.a" + + "nalytics.admin.v1alpha.UpdateCustomDimen" + + "sionRequest\032/.google.analytics.admin.v1a" + + "lpha.CustomDimension\"y\202\323\344\223\002T2@/v1alpha/{" + + "custom_dimension.name=properties/*/custo" + + "mDimensions/*}:\020custom_dimension\332A\034custo" + + "m_dimension,update_mask\022\323\001\n\024ListCustomDi" + + "mensions\022;.google.analytics.admin.v1alph" + + "a.ListCustomDimensionsRequest\032<.google.a" + + "nalytics.admin.v1alpha.ListCustomDimensi" + + "onsResponse\"@\202\323\344\223\0021\022//v1alpha/{parent=pr" + + "operties/*}/customDimensions\332A\006parent\022\272\001" + + "\n\026ArchiveCustomDimension\022=.google.analyt" + + "ics.admin.v1alpha.ArchiveCustomDimension" + + "Request\032\026.google.protobuf.Empty\"I\202\323\344\223\002<\"" + + "7/v1alpha/{name=properties/*/customDimen" + + "sions/*}:archive:\001*\332A\004name\022\300\001\n\022GetCustom" + + "Dimension\0229.google.analytics.admin.v1alp" + + "ha.GetCustomDimensionRequest\032/.google.an" + + "alytics.admin.v1alpha.CustomDimension\">\202" + + "\323\344\223\0021\022//v1alpha/{name=properties/*/custo" + + "mDimensions/*}\332A\004name\022\331\001\n\022CreateCustomMe" + + "tric\0229.google.analytics.admin.v1alpha.Cr" + + "eateCustomMetricRequest\032,.google.analyti" + + "cs.admin.v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/" + + "v1alpha/{parent=properties/*}/customMetr" + + "ics:\rcustom_metric\332A\024parent,custom_metri" + + "c\022\354\001\n\022UpdateCustomMetric\0229.google.analyt" + + "ics.admin.v1alpha.UpdateCustomMetricRequ" + + "est\032,.google.analytics.admin.v1alpha.Cus" + + "tomMetric\"m\202\323\344\223\002K2:/v1alpha/{custom_metr" + + "ic.name=properties/*/customMetrics/*}:\rc" + + "ustom_metric\332A\031custom_metric,update_mask" + + "\022\307\001\n\021ListCustomMetrics\0228.google.analytic" + + "s.admin.v1alpha.ListCustomMetricsRequest" + + "\0329.google.analytics.admin.v1alpha.ListCu" + + "stomMetricsResponse\"=\202\323\344\223\002.\022,/v1alpha/{p" + + "arent=properties/*}/customMetrics\332A\006pare" + + "nt\022\261\001\n\023ArchiveCustomMetric\022:.google.anal" + + "ytics.admin.v1alpha.ArchiveCustomMetricR" + + "equest\032\026.google.protobuf.Empty\"F\202\323\344\223\0029\"4" + + "/v1alpha/{name=properties/*/customMetric" + + "s/*}:archive:\001*\332A\004name\022\264\001\n\017GetCustomMetr" + + "ic\0226.google.analytics.admin.v1alpha.GetC" + + "ustomMetricRequest\032,.google.analytics.ad" + + "min.v1alpha.CustomMetric\";\202\323\344\223\002.\022,/v1alp" + + "ha/{name=properties/*/customMetrics/*}\332A" + + "\004name\032\374\001\312A\035analyticsadmin.googleapis.com" + + "\322A\330\001https://www.googleapis.com/auth/anal" + + "ytics.edit,https://www.googleapis.com/au" + + "th/analytics.manage.users,https://www.go" + + "ogleapis.com/auth/analytics.manage.users" + + ".readonly,https://www.googleapis.com/aut" + + "h/analytics.readonlyB\200\001\n\"com.google.anal" + + "ytics.admin.v1alphaB\023AnalyticsAdminProto" + + "P\001ZCgoogle.golang.org/genproto/googleapi" + + "s/analytics/admin/v1alpha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1277,6 +1612,206 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ChangeHistoryEvents", "NextPageToken", }); + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Parent", "MeasurementProtocolSecret", + }); + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecret", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecrets", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, + new java.lang.String[] { + "GoogleSignalsSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, + new java.lang.String[] { + "ConversionEvent", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, + new java.lang.String[] { + "ConversionEvents", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomDimension", + }); + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "CustomDimension", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, + new java.lang.String[] { + "CustomDimensions", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomMetric", + }); + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(82); + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, + new java.lang.String[] { + "CustomMetric", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(83); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(84); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, + new java.lang.String[] { + "CustomMetrics", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(85); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(86); + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java new file mode 100644 index 00000000..1712f6fb --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ArchiveCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} + */ +public final class ArchiveCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + ArchiveCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomDimensionRequest.newBuilder() to construct. + private ArchiveCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArchiveCustomDimensionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArchiveCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..08faf12c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ArchiveCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java new file mode 100644 index 00000000..338b24b7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ArchiveCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} + */ +public final class ArchiveCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + ArchiveCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomMetricRequest.newBuilder() to construct. + private ArchiveCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArchiveCustomMetricRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArchiveCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..f7d638fc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ArchiveCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index e2bcf575..eba78cee 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -411,6 +411,192 @@ public interface ChangeHistoryResourceOrBuilder */ com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + boolean hasGoogleSignalsSettings(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -593,6 +779,103 @@ private ChangeHistoryResource( resourceCase_ = 7; break; } + case 66: + { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder subBuilder = null; + if (resourceCase_ == 8) { + subBuilder = + ((com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 8; + break; + } + case 90: + { + com.google.analytics.admin.v1alpha.ConversionEvent.Builder subBuilder = null; + if (resourceCase_ == 11) { + subBuilder = + ((com.google.analytics.admin.v1alpha.ConversionEvent) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 11; + break; + } + case 98: + { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder subBuilder = + null; + if (resourceCase_ == 12) { + subBuilder = + ((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 12; + break; + } + case 106: + { + com.google.analytics.admin.v1alpha.CustomDimension.Builder subBuilder = null; + if (resourceCase_ == 13) { + subBuilder = + ((com.google.analytics.admin.v1alpha.CustomDimension) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 13; + break; + } + case 114: + { + com.google.analytics.admin.v1alpha.CustomMetric.Builder subBuilder = null; + if (resourceCase_ == 14) { + subBuilder = + ((com.google.analytics.admin.v1alpha.CustomMetric) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.CustomMetric) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 14; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -642,6 +925,11 @@ public enum ResourceCase IOS_APP_DATA_STREAM(5), FIREBASE_LINK(6), GOOGLE_ADS_LINK(7), + GOOGLE_SIGNALS_SETTINGS(8), + CONVERSION_EVENT(11), + MEASUREMENT_PROTOCOL_SECRET(12), + CUSTOM_DIMENSION(13), + CUSTOM_METRIC(14), RESOURCE_NOT_SET(0); private final int value; @@ -674,6 +962,16 @@ public static ResourceCase forNumber(int value) { return FIREBASE_LINK; case 7: return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 11: + return CONVERSION_EVENT; + case 12: + return MEASUREMENT_PROTOCOL_SECRET; + case 13: + return CUSTOM_DIMENSION; + case 14: + return CUSTOM_METRIC; case 0: return RESOURCE_NOT_SET; default: @@ -1052,51 +1350,337 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLin return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); } - private byte memoizedIsInitialized = -1; - + public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 8; + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasGoogleSignalsSettings() { + return resourceCase_ == 8; } - + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (resourceCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); - } - if (resourceCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; } - if (resourceCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); - } - if (resourceCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); - } - if (resourceCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); - } - if (resourceCase_ == 6) { - output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); - } - if (resourceCase_ == 7) { - output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); - } - unknownFields.writeTo(output); + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); } - + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } - size = 0; - if (resourceCase_ == 1) { + public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 12; + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 13; + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return resourceCase_ == 13; + } + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 14; + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return resourceCase_ == 14; + } + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceCase_ == 1) { + output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + } + if (resourceCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + } + if (resourceCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + } + if (resourceCase_ == 6) { + output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + if (resourceCase_ == 8) { + output.writeMessage( + 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + } + if (resourceCase_ == 11) { + output.writeMessage(11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + output.writeMessage( + 12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 13) { + output.writeMessage(13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + } + if (resourceCase_ == 14) { + output.writeMessage(14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceCase_ == 1) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.analytics.admin.v1alpha.Account) resource_); @@ -1131,6 +1715,31 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); } + if (resourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + } + if (resourceCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + } + if (resourceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1172,6 +1781,22 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; break; + case 8: + if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) return false; + break; + case 11: + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + break; + case 12: + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + break; + case 13: + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + break; + case 14: + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + break; case 0: default: } @@ -1215,6 +1840,26 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; hash = (53 * hash) + getGoogleAdsLink().hashCode(); break; + case 8: + hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); + break; + case 11: + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + break; + case 12: + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + break; + case 13: + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + break; + case 14: + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + break; case 0: default: } @@ -1458,6 +2103,41 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = googleAdsLinkBuilder_.build(); } } + if (resourceCase_ == 8) { + if (googleSignalsSettingsBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = googleSignalsSettingsBuilder_.build(); + } + } + if (resourceCase_ == 11) { + if (conversionEventBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = conversionEventBuilder_.build(); + } + } + if (resourceCase_ == 12) { + if (measurementProtocolSecretBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = measurementProtocolSecretBuilder_.build(); + } + } + if (resourceCase_ == 13) { + if (customDimensionBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = customDimensionBuilder_.build(); + } + } + if (resourceCase_ == 14) { + if (customMetricBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = customMetricBuilder_.build(); + } + } result.resourceCase_ = resourceCase_; onBuilt(); return result; @@ -1552,6 +2232,31 @@ public Builder mergeFrom( mergeGoogleAdsLink(other.getGoogleAdsLink()); break; } + case GOOGLE_SIGNALS_SETTINGS: + { + mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); + break; + } + case CONVERSION_EVENT: + { + mergeConversionEvent(other.getConversionEvent()); + break; + } + case MEASUREMENT_PROTOCOL_SECRET: + { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + break; + } + case CUSTOM_DIMENSION: + { + mergeCustomDimension(other.getCustomDimension()); + break; + } + case CUSTOM_METRIC: + { + mergeCustomMetric(other.getCustomMetric()); + break; + } case RESOURCE_NOT_SET: { break; @@ -3089,6 +3794,1102 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLin return googleAdsLinkBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + googleSignalsSettingsBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return resourceCase_ == 8; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 8) { + return googleSignalsSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { + if (googleSignalsSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder mergeGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8 + && resource_ + != com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 8) { + googleSignalsSettingsBuilder_.mergeFrom(value); + } + googleSignalsSettingsBuilder_.setMessage(value); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder clearGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 8) { + resourceCase_ = 0; + resource_ = null; + } + googleSignalsSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder + getGoogleSignalsSettingsBuilder() { + return getGoogleSignalsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if ((resourceCase_ == 8) && (googleSignalsSettingsBuilder_ != null)) { + return googleSignalsSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + getGoogleSignalsSettingsFieldBuilder() { + if (googleSignalsSettingsBuilder_ == null) { + if (!(resourceCase_ == 8)) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + googleSignalsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 8; + onChanged(); + ; + return googleSignalsSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } else { + if (resourceCase_ == 11) { + return conversionEventBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + conversionEventBuilder_.setMessage(value); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder mergeConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11 + && resource_ + != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 11) { + conversionEventBuilder_.mergeFrom(value); + } + conversionEventBuilder_.setMessage(value); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder clearConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + } + conversionEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder + getConversionEventBuilder() { + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if ((resourceCase_ == 11) && (conversionEventBuilder_ != null)) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + if (!(resourceCase_ == 11)) { + resource_ = com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 11; + onChanged(); + ; + return conversionEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } else { + if (resourceCase_ == 12) { + return measurementProtocolSecretBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12 + && resource_ + != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 12) { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + measurementProtocolSecretBuilder_.setMessage(value); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + } + measurementProtocolSecretBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if ((resourceCase_ == 12) && (measurementProtocolSecretBuilder_ != null)) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + if (!(resourceCase_ == 12)) { + resource_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 12; + onChanged(); + ; + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return resourceCase_ == 13; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } else { + if (resourceCase_ == 13) { + return customDimensionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder mergeCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13 + && resource_ + != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 13) { + customDimensionBuilder_.mergeFrom(value); + } + customDimensionBuilder_.setMessage(value); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 13) { + resourceCase_ = 0; + resource_ = null; + } + customDimensionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder + getCustomDimensionBuilder() { + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if ((resourceCase_ == 13) && (customDimensionBuilder_ != null)) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + if (!(resourceCase_ == 13)) { + resource_ = com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 13; + onChanged(); + ; + return customDimensionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return resourceCase_ == 14; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } else { + if (resourceCase_ == 14) { + return customMetricBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14 + && resource_ + != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder( + (com.google.analytics.admin.v1alpha.CustomMetric) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 14) { + customMetricBuilder_.mergeFrom(value); + } + customMetricBuilder_.setMessage(value); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 14) { + resourceCase_ = 0; + resource_ = null; + } + customMetricBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if ((resourceCase_ == 14) && (customMetricBuilder_ != null)) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + if (!(resourceCase_ == 14)) { + resource_ = com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + (com.google.analytics.admin.v1alpha.CustomMetric) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 14; + onChanged(); + ; + return customMetricBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index 0c12ac82..f78d42cf 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -108,6 +108,56 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * GOOGLE_ADS_LINK = 7; */ GOOGLE_ADS_LINK(7), + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + GOOGLE_SIGNALS_SETTINGS(8), + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + CONVERSION_EVENT(9), + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + MEASUREMENT_PROTOCOL_SECRET(10), + /** + * + * + *
+   * CustomDimension resource
+   * 
+ * + * CUSTOM_DIMENSION = 11; + */ + CUSTOM_DIMENSION(11), + /** + * + * + *
+   * CustomMetric resource
+   * 
+ * + * CUSTOM_METRIC = 12; + */ + CUSTOM_METRIC(12), UNRECOGNIZED(-1), ; @@ -191,6 +241,56 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * GOOGLE_ADS_LINK = 7; */ public static final int GOOGLE_ADS_LINK_VALUE = 7; + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + public static final int GOOGLE_SIGNALS_SETTINGS_VALUE = 8; + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + public static final int CONVERSION_EVENT_VALUE = 9; + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + public static final int MEASUREMENT_PROTOCOL_SECRET_VALUE = 10; + /** + * + * + *
+   * CustomDimension resource
+   * 
+ * + * CUSTOM_DIMENSION = 11; + */ + public static final int CUSTOM_DIMENSION_VALUE = 11; + /** + * + * + *
+   * CustomMetric resource
+   * 
+ * + * CUSTOM_METRIC = 12; + */ + public static final int CUSTOM_METRIC_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -232,6 +332,16 @@ public static ChangeHistoryResourceType forNumber(int value) { return FIREBASE_LINK; case 7: return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 9: + return CONVERSION_EVENT; + case 10: + return MEASUREMENT_PROTOCOL_SECRET; + case 11: + return CUSTOM_DIMENSION; + case 12: + return CUSTOM_METRIC; default: return null; } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java new file mode 100644 index 00000000..037f5a97 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -0,0 +1,1212 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A conversion event in a Google Analytics property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} + */ +public final class ConversionEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConversionEvent) + ConversionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionEvent.newBuilder() to construct. + private ConversionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversionEvent() { + name_ = ""; + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversionEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConversionEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + eventName_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + isDeletable_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.class, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object eventName_; + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int IS_DELETABLE_FIELD_NUMBER = 4; + private boolean isDeletable_; + /** + * + * + *
+   * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+   * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDeletable. + */ + @java.lang.Override + public boolean getIsDeletable() { + return isDeletable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getEventNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (isDeletable_ != false) { + output.writeBool(4, isDeletable_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getEventNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (isDeletable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isDeletable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ConversionEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ConversionEvent other = + (com.google.analytics.admin.v1alpha.ConversionEvent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEventName().equals(other.getEventName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getIsDeletable() != other.getIsDeletable()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + IS_DELETABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDeletable()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ConversionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A conversion event in a Google Analytics property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConversionEvent) + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.class, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + eventName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + isDeletable_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent build() { + com.google.analytics.admin.v1alpha.ConversionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent buildPartial() { + com.google.analytics.admin.v1alpha.ConversionEvent result = + new com.google.analytics.admin.v1alpha.ConversionEvent(this); + result.name_ = name_; + result.eventName_ = eventName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.isDeletable_ = isDeletable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ConversionEvent) { + return mergeFrom((com.google.analytics.admin.v1alpha.ConversionEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionEvent other) { + if (other == com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getIsDeletable() != false) { + setIsDeletable(other.getIsDeletable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ConversionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ConversionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private boolean isDeletable_; + /** + * + * + *
+     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+     * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDeletable. + */ + @java.lang.Override + public boolean getIsDeletable() { + return isDeletable_; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+     * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isDeletable to set. + * @return This builder for chaining. + */ + public Builder setIsDeletable(boolean value) { + + isDeletable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+     * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsDeletable() { + + isDeletable_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ConversionEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConversionEvent) + private static final com.google.analytics.admin.v1alpha.ConversionEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConversionEvent(); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversionEvent(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java new file mode 100644 index 00000000..30e7609e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConversionEventName implements ResourceName { + private static final PathTemplate PROPERTY_CONVERSION_EVENT = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/conversionEvents/{conversion_event}"); + private volatile Map fieldValuesMap; + private final String property; + private final String conversionEvent; + + @Deprecated + protected ConversionEventName() { + property = null; + conversionEvent = null; + } + + private ConversionEventName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + conversionEvent = Preconditions.checkNotNull(builder.getConversionEvent()); + } + + public String getProperty() { + return property; + } + + public String getConversionEvent() { + return conversionEvent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConversionEventName of(String property, String conversionEvent) { + return newBuilder().setProperty(property).setConversionEvent(conversionEvent).build(); + } + + public static String format(String property, String conversionEvent) { + return newBuilder() + .setProperty(property) + .setConversionEvent(conversionEvent) + .build() + .toString(); + } + + public static ConversionEventName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_CONVERSION_EVENT.validatedMatch( + formattedString, "ConversionEventName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("conversion_event")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConversionEventName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_CONVERSION_EVENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + if (conversionEvent != null) { + fieldMapBuilder.put("conversion_event", conversionEvent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_CONVERSION_EVENT.instantiate( + "property", property, "conversion_event", conversionEvent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ConversionEventName that = ((ConversionEventName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.conversionEvent, that.conversionEvent); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(conversionEvent); + return h; + } + + /** Builder for properties/{property}/conversionEvents/{conversion_event}. */ + public static class Builder { + private String property; + private String conversionEvent; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getConversionEvent() { + return conversionEvent; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setConversionEvent(String conversionEvent) { + this.conversionEvent = conversionEvent; + return this; + } + + private Builder(ConversionEventName conversionEventName) { + property = conversionEventName.property; + conversionEvent = conversionEventName.conversionEvent; + } + + public ConversionEventName build() { + return new ConversionEventName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java new file mode 100644 index 00000000..4ff6a999 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface ConversionEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConversionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+   * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDeletable. + */ + boolean getIsDeletable(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java new file mode 100644 index 00000000..efc7e877 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java @@ -0,0 +1,969 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} + */ +public final class CreateConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) + CreateConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConversionEventRequest.newBuilder() to construct. + private CreateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConversionEventRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConversionEventRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateConversionEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ConversionEvent.Builder subBuilder = null; + if (conversionEvent_ != null) { + subBuilder = conversionEvent_.toBuilder(); + } + conversionEvent_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversionEvent_); + conversionEvent_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return conversionEvent_ != null; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { + return getConversionEvent(); + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conversionEvent_ != null) { + output.writeMessage(1, getConversionEvent()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateConversionEventRequest other = + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) obj; + + if (hasConversionEvent() != other.hasConversionEvent()) return false; + if (hasConversionEvent()) { + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConversionEvent()) { + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) + com.google.analytics.admin.v1alpha.CreateConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateConversionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (conversionEventBuilder_ == null) { + conversionEvent_ = null; + } else { + conversionEvent_ = null; + conversionEventBuilder_ = null; + } + parent_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest build() { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = + new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(this); + if (conversionEventBuilder_ == null) { + result.conversionEvent_ = conversionEvent_; + } else { + result.conversionEvent_ = conversionEventBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance()) + return this; + if (other.hasConversionEvent()) { + mergeConversionEvent(other.getConversionEvent()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + public boolean hasConversionEvent() { + return conversionEventBuilder_ != null || conversionEvent_ != null; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } else { + return conversionEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionEvent_ = value; + onChanged(); + } else { + conversionEventBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + conversionEvent_ = builderForValue.build(); + onChanged(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (conversionEvent_ != null) { + conversionEvent_ = + com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder(conversionEvent_) + .mergeFrom(value) + .buildPartial(); + } else { + conversionEvent_ = value; + } + onChanged(); + } else { + conversionEventBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionEvent() { + if (conversionEventBuilder_ == null) { + conversionEvent_ = null; + onChanged(); + } else { + conversionEvent_ = null; + conversionEventBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { + + onChanged(); + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (conversionEventBuilder_ != null) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + getConversionEvent(), getParentForChildren(), isClean()); + conversionEvent_ = null; + } + return conversionEventBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.CreateConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConversionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java new file mode 100644 index 00000000..9efd85dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java new file mode 100644 index 00000000..09b2aba6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java @@ -0,0 +1,962 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} + */ +public final class CreateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + CreateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomDimensionRequest.newBuilder() to construct. + private CreateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomDimensionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCustomDimensionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.CustomDimension.Builder subBuilder = null; + if (customDimension_ != null) { + subBuilder = customDimension_.toBuilder(); + } + customDimension_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customDimension_); + customDimension_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return getCustomDimension(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customDimension_ != null) { + output.writeMessage(2, getCustomDimension()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomDimension()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (customDimensionBuilder_ == null) { + customDimension_ = null; + } else { + customDimension_ = null; + customDimensionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(this); + result.parent_ = parent_; + if (customDimensionBuilder_ == null) { + result.customDimension_ = customDimension_; + } else { + result.customDimension_ = customDimensionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return customDimensionBuilder_ != null || customDimension_ != null; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (customDimension_ != null) { + customDimension_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder(customDimension_) + .mergeFrom(value) + .buildPartial(); + } else { + customDimension_ = value; + } + onChanged(); + } else { + customDimensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + customDimension_ = null; + onChanged(); + } else { + customDimension_ = null; + customDimensionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { + + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..a49f402b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java new file mode 100644 index 00000000..b6032c7d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java @@ -0,0 +1,956 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} + */ +public final class CreateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + CreateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomMetricRequest.newBuilder() to construct. + private CreateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomMetricRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCustomMetricRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.CustomMetric.Builder subBuilder = null; + if (customMetric_ != null) { + subBuilder = customMetric_.toBuilder(); + } + customMetric_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customMetric_); + customMetric_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return getCustomMetric(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customMetric_ != null) { + output.writeMessage(2, getCustomMetric()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomMetric()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + com.google.analytics.admin.v1alpha.CreateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (customMetricBuilder_ == null) { + customMetric_ = null; + } else { + customMetric_ = null; + customMetricBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(this); + result.parent_ = parent_; + if (customMetricBuilder_ == null) { + result.customMetric_ = customMetric_; + } else { + result.customMetric_ = customMetricBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return customMetricBuilder_ != null || customMetric_ != null; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (customMetric_ != null) { + customMetric_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder(customMetric_) + .mergeFrom(value) + .buildPartial(); + } else { + customMetric_ = value; + } + onChanged(); + } else { + customMetricBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + customMetric_ = null; + onChanged(); + } else { + customMetric_ = null; + customMetricBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..1cf913ab --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..3cc5c21c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java @@ -0,0 +1,1008 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} + */ +public final class CreateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + CreateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMeasurementProtocolSecretRequest.newBuilder() to construct. + private CreateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMeasurementProtocolSecretRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateMeasurementProtocolSecretRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder subBuilder = + null; + if (measurementProtocolSecret_ != null) { + subBuilder = measurementProtocolSecret_.toBuilder(); + } + measurementProtocolSecret_ = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(measurementProtocolSecret_); + measurementProtocolSecret_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object 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}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * 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}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return getMeasurementProtocolSecret(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (measurementProtocolSecret_ != null) { + output.writeMessage(2, getMeasurementProtocolSecret()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMeasurementProtocolSecret()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(this); + result.parent_ = parent_; + if (measurementProtocolSecretBuilder_ == null) { + result.measurementProtocolSecret_ = measurementProtocolSecret_; + } else { + result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object 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}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecretBuilder_ != null || measurementProtocolSecret_ != null; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (measurementProtocolSecret_ != null) { + measurementProtocolSecret_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + measurementProtocolSecret_) + .mergeFrom(value) + .buildPartial(); + } else { + measurementProtocolSecret_ = value; + } + onChanged(); + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + onChanged(); + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..4bcf46fd --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * 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}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java new file mode 100644 index 00000000..0ed322a0 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java @@ -0,0 +1,1696 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A definition for a CustomDimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} + */ +public final class CustomDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomDimension) + CustomDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomDimension.newBuilder() to construct. + private CustomDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomDimension() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomDimension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomDimension( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parameterName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 48: + { + disallowAdsPersonalization_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomDimension.class, + com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); + } + + /** + * + * + *
+   * Valid values for the scope of this dimension.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomDimension.DimensionScope} + */ + public enum DimensionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + DIMENSION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + USER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + public static final int DIMENSION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + public static final int USER_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DimensionScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DimensionScope forNumber(int value) { + switch (value) { + case 0: + return DIMENSION_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + case 2: + return USER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DimensionScope findValueByNumber(int number) { + return DimensionScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomDimension.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DimensionScope[] VALUES = values(); + + public static DimensionScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DimensionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomDimension.DimensionScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object parameterName_; + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 5; + private int scope_; + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + + public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER = 6; + private boolean disallowAdsPersonalization_; + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+   * personalization.
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getParameterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + output.writeBool(6, disallowAdsPersonalization_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getParameterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disallowAdsPersonalization_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CustomDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CustomDimension other = + (com.google.analytics.admin.v1alpha.CustomDimension) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (scope_ != other.scope_) return false; + if (getDisallowAdsPersonalization() != other.getDisallowAdsPersonalization()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisallowAdsPersonalization()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.CustomDimension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition for a CustomDimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomDimension) + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomDimension.class, + com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CustomDimension.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + parameterName_ = ""; + + displayName_ = ""; + + description_ = ""; + + scope_ = 0; + + disallowAdsPersonalization_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension build() { + com.google.analytics.admin.v1alpha.CustomDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension buildPartial() { + com.google.analytics.admin.v1alpha.CustomDimension result = + new com.google.analytics.admin.v1alpha.CustomDimension(this); + result.name_ = name_; + result.parameterName_ = parameterName_; + result.displayName_ = displayName_; + result.description_ = description_; + result.scope_ = scope_; + result.disallowAdsPersonalization_ = disallowAdsPersonalization_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CustomDimension) { + return mergeFrom((com.google.analytics.admin.v1alpha.CustomDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomDimension other) { + if (other == com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.getDisallowAdsPersonalization() != false) { + setDisallowAdsPersonalization(other.getDisallowAdsPersonalization()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CustomDimension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CustomDimension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + + parameterName_ = getDefaultInstance().getParameterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private boolean disallowAdsPersonalization_; + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+     * personalization.
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+     * personalization.
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disallowAdsPersonalization to set. + * @return This builder for chaining. + */ + public Builder setDisallowAdsPersonalization(boolean value) { + + disallowAdsPersonalization_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+     * personalization.
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisallowAdsPersonalization() { + + disallowAdsPersonalization_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CustomDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomDimension) + private static final com.google.analytics.admin.v1alpha.CustomDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomDimension(); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomDimension(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java new file mode 100644 index 00000000..1c0b45b6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CustomDimensionName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/customDimensions"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected CustomDimensionName() { + property = null; + } + + private CustomDimensionName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CustomDimensionName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static CustomDimensionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, "CustomDimensionName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CustomDimensionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + CustomDimensionName that = ((CustomDimensionName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/customDimensions. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(CustomDimensionName customDimensionName) { + property = customDimensionName.property; + } + + public CustomDimensionName build() { + return new CustomDimensionName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java new file mode 100644 index 00000000..a7041dc5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface CustomDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope(); + + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+   * personalization.
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + boolean getDisallowAdsPersonalization(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java new file mode 100644 index 00000000..5986982c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -0,0 +1,2075 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A definition for a custom metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} + */ +public final class CustomMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomMetric) + CustomMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomMetric.newBuilder() to construct. + private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomMetric() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + measurementUnit_ = 0; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomMetric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomMetric( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parameterName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + measurementUnit_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomMetric.class, + com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); + } + + /** + * + * + *
+   * Possible types of representing the custom metric's value.
+   * Currency representation may change in the future, requiring a breaking API
+   * change.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} + */ + public enum MeasurementUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + MEASUREMENT_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + CURRENCY(2), + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + FEET(3), + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + METERS(4), + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + KILOMETERS(5), + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + MILES(6), + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + MILLISECONDS(7), + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + SECONDS(8), + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + MINUTES(9), + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + HOURS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + public static final int CURRENCY_VALUE = 2; + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + public static final int FEET_VALUE = 3; + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + public static final int METERS_VALUE = 4; + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + public static final int KILOMETERS_VALUE = 5; + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + public static final int MILES_VALUE = 6; + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + public static final int MILLISECONDS_VALUE = 7; + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + public static final int SECONDS_VALUE = 8; + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + public static final int MINUTES_VALUE = 9; + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + public static final int HOURS_VALUE = 10; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MeasurementUnit valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MeasurementUnit forNumber(int value) { + switch (value) { + case 0: + return MEASUREMENT_UNIT_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return CURRENCY; + case 3: + return FEET; + case 4: + return METERS; + case 5: + return KILOMETERS; + case 6: + return MILES; + case 7: + return MILLISECONDS; + case 8: + return SECONDS; + case 9: + return MINUTES; + case 10: + return HOURS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MeasurementUnit findValueByNumber(int number) { + return MeasurementUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(0); + } + + private static final MeasurementUnit[] VALUES = values(); + + public static MeasurementUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MeasurementUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit) + } + + /** + * + * + *
+   * The scope of this metric.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MetricScope} + */ + public enum MetricScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + METRIC_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + public static final int METRIC_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetricScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MetricScope forNumber(int value) { + switch (value) { + case 0: + return METRIC_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricScope findValueByNumber(int number) { + return MetricScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(1); + } + + private static final MetricScope[] VALUES = values(); + + public static MetricScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MetricScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MetricScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object parameterName_; + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_UNIT_FIELD_NUMBER = 5; + private int measurementUnit_; + /** + * + * + *
+   * Required. Immutable. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+   * Required. Immutable. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.valueOf(measurementUnit_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_; + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getParameterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getParameterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CustomMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CustomMetric other = + (com.google.analytics.admin.v1alpha.CustomMetric) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (measurementUnit_ != other.measurementUnit_) return false; + if (scope_ != other.scope_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MEASUREMENT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + measurementUnit_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.CustomMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition for a custom metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomMetric) + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomMetric.class, + com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CustomMetric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + parameterName_ = ""; + + displayName_ = ""; + + description_ = ""; + + measurementUnit_ = 0; + + scope_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric build() { + com.google.analytics.admin.v1alpha.CustomMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric buildPartial() { + com.google.analytics.admin.v1alpha.CustomMetric result = + new com.google.analytics.admin.v1alpha.CustomMetric(this); + result.name_ = name_; + result.parameterName_ = parameterName_; + result.displayName_ = displayName_; + result.description_ = description_; + result.measurementUnit_ = measurementUnit_; + result.scope_ = scope_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CustomMetric) { + return mergeFrom((com.google.analytics.admin.v1alpha.CustomMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomMetric other) { + if (other == com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.measurementUnit_ != 0) { + setMeasurementUnitValue(other.getMeasurementUnitValue()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CustomMetric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.CustomMetric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + + parameterName_ = getDefaultInstance().getParameterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int measurementUnit_ = 0; + /** + * + * + *
+     * Required. Immutable. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+     * Required. Immutable. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnitValue(int value) { + + measurementUnit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.valueOf(measurementUnit_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnit( + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + measurementUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearMeasurementUnit() { + + measurementUnit_ = 0; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1alpha.CustomMetric.MetricScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CustomMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomMetric) + private static final com.google.analytics.admin.v1alpha.CustomMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomMetric(); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomMetric(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java new file mode 100644 index 00000000..384101c0 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CustomMetricName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/customMetrics"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected CustomMetricName() { + property = null; + } + + private CustomMetricName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CustomMetricName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static CustomMetricName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, "CustomMetricName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CustomMetricName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + CustomMetricName that = ((CustomMetricName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/customMetrics. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(CustomMetricName customMetricName) { + property = customMetricName.property; + } + + public CustomMetricName build() { + return new CustomMetricName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java new file mode 100644 index 00000000..9dd2d54d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface CustomMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + int getMeasurementUnitValue(); + /** + * + * + *
+   * Required. Immutable. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The measurementUnit. + */ + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit(); + + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java new file mode 100644 index 00000000..1ba58594 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} + */ +public final class DeleteConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + DeleteConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteConversionEventRequest.newBuilder() to construct. + private DeleteConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConversionEventRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteConversionEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other = + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + com.google.analytics.admin.v1alpha.DeleteConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest build() { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = + new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConversionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java new file mode 100644 index 00000000..251995e6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..a2974ec9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java @@ -0,0 +1,700 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} + */ +public final class DeleteMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + DeleteMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMeasurementProtocolSecretRequest.newBuilder() to construct. + private DeleteMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteMeasurementProtocolSecretRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object 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.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * 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.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object 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.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..6c426fb7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * 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.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java new file mode 100644 index 00000000..99879137 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} + */ +public final class GetConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) + GetConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetConversionEventRequest.newBuilder() to construct. + private GetConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConversionEventRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetConversionEventRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetConversionEventRequest other = + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) + com.google.analytics.admin.v1alpha.GetConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetConversionEventRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest build() { + com.google.analytics.admin.v1alpha.GetConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetConversionEventRequest result = + new com.google.analytics.admin.v1alpha.GetConversionEventRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetConversionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.GetConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConversionEventRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java new file mode 100644 index 00000000..986523b1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java new file mode 100644 index 00000000..ccf8ee47 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java @@ -0,0 +1,661 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} + */ +public final class GetCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + GetCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomDimensionRequest.newBuilder() to construct. + private GetCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCustomDimensionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + com.google.analytics.admin.v1alpha.GetCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..4055eb55 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java new file mode 100644 index 00000000..0f0caa66 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} + */ +public final class GetCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) + GetCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomMetricRequest.newBuilder() to construct. + private GetCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCustomMetricRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) + com.google.analytics.admin.v1alpha.GetCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetCustomMetricRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomMetricRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.GetCustomMetricRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..b1979473 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java new file mode 100644 index 00000000..e0993ed5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java @@ -0,0 +1,670 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetGoogleSignalsSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} + */ +public final class GetGoogleSignalsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + GetGoogleSignalsSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetGoogleSignalsSettingsRequest.newBuilder() to construct. + private GetGoogleSignalsSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetGoogleSignalsSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGoogleSignalsSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetGoogleSignalsSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetGoogleSignalsSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGoogleSignalsSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetGoogleSignalsSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java new file mode 100644 index 00000000..9b61ee92 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetGoogleSignalsSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..474324a2 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java @@ -0,0 +1,693 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetMeasurementProtocolSecret RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} + */ +public final class GetMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + GetMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMeasurementProtocolSecretRequest.newBuilder() to construct. + private GetMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetMeasurementProtocolSecretRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetMeasurementProtocolSecret RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..13d7baa5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java index 929b2097..f016bc4d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -304,7 +304,7 @@ public boolean getCanManageClients() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -322,7 +322,7 @@ public boolean hasAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -342,7 +342,7 @@ public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1234,7 +1234,7 @@ public Builder clearCanManageClients() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1251,7 +1251,7 @@ public boolean hasAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1274,7 +1274,7 @@ public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1299,7 +1299,7 @@ public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1322,7 +1322,7 @@ public Builder setAdsPersonalizationEnabled( * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1351,7 +1351,7 @@ public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue valu * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1374,7 +1374,7 @@ public Builder clearAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1391,7 +1391,7 @@ public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1412,7 +1412,7 @@ public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuil * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java index f1ff42ce..7e51a02f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java @@ -95,7 +95,7 @@ public interface GoogleAdsLinkOrBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -110,7 +110,7 @@ public interface GoogleAdsLinkOrBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -125,7 +125,7 @@ public interface GoogleAdsLinkOrBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java new file mode 100644 index 00000000..dcc2006d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java @@ -0,0 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Consent field of the Google Signals settings (i.e., whether the user has
+ * consented to the Google Signals terms of service.)
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsConsent} + */ +public enum GoogleSignalsConsent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Google Signals consent value defaults to
+   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
+   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED(0), + /** + * + * + *
+   * Terms of service have been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + GOOGLE_SIGNALS_CONSENT_CONSENTED(2), + /** + * + * + *
+   * Terms of service have not been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Google Signals consent value defaults to
+   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
+   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SIGNALS_CONSENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Terms of service have been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + public static final int GOOGLE_SIGNALS_CONSENT_CONSENTED_VALUE = 2; + /** + * + * + *
+   * Terms of service have not been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + public static final int GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GoogleSignalsConsent valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GoogleSignalsConsent forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SIGNALS_CONSENT_UNSPECIFIED; + case 2: + return GOOGLE_SIGNALS_CONSENT_CONSENTED; + case 1: + return GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GoogleSignalsConsent findValueByNumber(int number) { + return GoogleSignalsConsent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(6); + } + + private static final GoogleSignalsConsent[] VALUES = values(); + + public static GoogleSignalsConsent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GoogleSignalsConsent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsConsent) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java new file mode 100644 index 00000000..fa7ef77b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java @@ -0,0 +1,983 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Settings values for Google Signals.  This is a singleton resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} + */ +public final class GoogleSignalsSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) + GoogleSignalsSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleSignalsSettings.newBuilder() to construct. + private GoogleSignalsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleSignalsSettings() { + name_ = ""; + state_ = 0; + consent_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleSignalsSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GoogleSignalsSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + consent_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsState result = + com.google.analytics.admin.v1alpha.GoogleSignalsState.valueOf(state_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED + : result; + } + + public static final int CONSENT_FIELD_NUMBER = 4; + private int consent_; + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + @java.lang.Override + public int getConsentValue() { + return consent_; + } + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = + com.google.analytics.admin.v1alpha.GoogleSignalsConsent.valueOf(consent_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ + != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (consent_ + != com.google.analytics.admin.v1alpha.GoogleSignalsConsent + .GOOGLE_SIGNALS_CONSENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, consent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (state_ + != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (consent_ + != com.google.analytics.admin.v1alpha.GoogleSignalsConsent + .GOOGLE_SIGNALS_CONSENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, consent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GoogleSignalsSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GoogleSignalsSettings other = + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (consent_ != other.consent_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CONSENT_FIELD_NUMBER; + hash = (53 * hash) + consent_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Settings values for Google Signals.  This is a singleton resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + state_ = 0; + + consent_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings build() { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings buildPartial() { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = + new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(this); + result.name_ = name_; + result.state_ = state_; + result.consent_ = consent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GoogleSignalsSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.GoogleSignalsSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleSignalsSettings other) { + if (other == com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.consent_ != 0) { + setConsentValue(other.getConsentValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsState result = + com.google.analytics.admin.v1alpha.GoogleSignalsState.valueOf(state_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.analytics.admin.v1alpha.GoogleSignalsState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private int consent_ = 0; + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + @java.lang.Override + public int getConsentValue() { + return consent_; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for consent to set. + * @return This builder for chaining. + */ + public Builder setConsentValue(int value) { + + consent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = + com.google.analytics.admin.v1alpha.GoogleSignalsConsent.valueOf(consent_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consent to set. + * @return This builder for chaining. + */ + public Builder setConsent(com.google.analytics.admin.v1alpha.GoogleSignalsConsent value) { + if (value == null) { + throw new NullPointerException(); + } + + consent_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsent() { + + consent_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) + private static final com.google.analytics.admin.v1alpha.GoogleSignalsSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSignalsSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleSignalsSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java new file mode 100644 index 00000000..5faf4820 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java @@ -0,0 +1,169 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class GoogleSignalsSettingsName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/googleSignalsSettings"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected GoogleSignalsSettingsName() { + property = null; + } + + private GoogleSignalsSettingsName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static GoogleSignalsSettingsName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static GoogleSignalsSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, + "GoogleSignalsSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (GoogleSignalsSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + GoogleSignalsSettingsName that = ((GoogleSignalsSettingsName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/googleSignalsSettings. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(GoogleSignalsSettingsName googleSignalsSettingsName) { + property = googleSignalsSettingsName.property; + } + + public GoogleSignalsSettingsName build() { + return new GoogleSignalsSettingsName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java new file mode 100644 index 00000000..2f84d575 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface GoogleSignalsSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GoogleSignalsSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsState getState(); + + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + int getConsentValue(); + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java new file mode 100644 index 00000000..ed535750 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java @@ -0,0 +1,181 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Status of the Google Signals settings (i.e., whether this feature has been
+ * enabled for the property).
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsState} + */ +public enum GoogleSignalsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
+   * represent that the user has not made an explicit choice.
+   * 
+ * + * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + GOOGLE_SIGNALS_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Google Signals is enabled.
+   * 
+ * + * GOOGLE_SIGNALS_ENABLED = 1; + */ + GOOGLE_SIGNALS_ENABLED(1), + /** + * + * + *
+   * Google Signals is disabled.
+   * 
+ * + * GOOGLE_SIGNALS_DISABLED = 2; + */ + GOOGLE_SIGNALS_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
+   * represent that the user has not made an explicit choice.
+   * 
+ * + * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SIGNALS_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Google Signals is enabled.
+   * 
+ * + * GOOGLE_SIGNALS_ENABLED = 1; + */ + public static final int GOOGLE_SIGNALS_ENABLED_VALUE = 1; + /** + * + * + *
+   * Google Signals is disabled.
+   * 
+ * + * GOOGLE_SIGNALS_DISABLED = 2; + */ + public static final int GOOGLE_SIGNALS_DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GoogleSignalsState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GoogleSignalsState forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SIGNALS_STATE_UNSPECIFIED; + case 1: + return GOOGLE_SIGNALS_ENABLED; + case 2: + return GOOGLE_SIGNALS_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GoogleSignalsState findValueByNumber(int number) { + return GoogleSignalsState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(5); + } + + private static final GoogleSignalsState[] VALUES = values(); + + public static GoogleSignalsState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GoogleSignalsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsState) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java new file mode 100644 index 00000000..9c7f1fae --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java @@ -0,0 +1,962 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListConversionEvents RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} + */ +public final class ListConversionEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) + ListConversionEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsRequest.newBuilder() to construct. + private ListConversionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListConversionEventsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListConversionEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConversionEventsRequest other = + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListConversionEvents RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) + com.google.analytics.admin.v1alpha.ListConversionEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest build() { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = + new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListConversionEventsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConversionEventsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) + private static final com.google.analytics.admin.v1alpha.ListConversionEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConversionEventsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java new file mode 100644 index 00000000..be1919e5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListConversionEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java new file mode 100644 index 00000000..4d6e5978 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListConversionEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} + */ +public final class ListConversionEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) + ListConversionEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsResponse.newBuilder() to construct. + private ListConversionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsResponse() { + conversionEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListConversionEventsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + conversionEvents_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); + } + + public static final int CONVERSION_EVENTS_FIELD_NUMBER = 1; + private java.util.List conversionEvents_; + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsOrBuilderList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public int getConversionEventsCount() { + return conversionEvents_.size(); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { + return conversionEvents_.get(index); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + return conversionEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conversionEvents_.size(); i++) { + output.writeMessage(1, conversionEvents_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversionEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionEvents_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListConversionEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConversionEventsResponse other = + (com.google.analytics.admin.v1alpha.ListConversionEventsResponse) obj; + + if (!getConversionEventsList().equals(other.getConversionEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConversionEventsCount() > 0) { + hash = (37 * hash) + CONVERSION_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getConversionEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListConversionEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) + com.google.analytics.admin.v1alpha.ListConversionEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConversionEventsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + conversionEventsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse build() { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = + new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(this); + int from_bitField0_ = bitField0_; + if (conversionEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversionEvents_ = conversionEvents_; + } else { + result.conversionEvents_ = conversionEventsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListConversionEventsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance()) + return this; + if (conversionEventsBuilder_ == null) { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEvents_.isEmpty()) { + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversionEventsIsMutable(); + conversionEvents_.addAll(other.conversionEvents_); + } + onChanged(); + } + } else { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEventsBuilder_.isEmpty()) { + conversionEventsBuilder_.dispose(); + conversionEventsBuilder_ = null; + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + conversionEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversionEventsFieldBuilder() + : null; + } else { + conversionEventsBuilder_.addAllMessages(other.conversionEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListConversionEventsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List conversionEvents_ = + java.util.Collections.emptyList(); + + private void ensureConversionEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = + new java.util.ArrayList( + conversionEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventsBuilder_; + + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsList() { + if (conversionEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversionEvents_); + } else { + return conversionEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public int getConversionEventsCount() { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.size(); + } else { + return conversionEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, value); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addAllConversionEvents( + java.lang.Iterable values) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionEvents_); + onChanged(); + } else { + conversionEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder clearConversionEvents() { + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversionEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder removeConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.remove(index); + onChanged(); + } else { + conversionEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsOrBuilderList() { + if (conversionEventsBuilder_ != null) { + return conversionEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversionEvents_); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder() { + return getConversionEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsBuilderList() { + return getConversionEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventsFieldBuilder() { + if (conversionEventsBuilder_ == null) { + conversionEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + conversionEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversionEvents_ = null; + } + return conversionEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) + private static final com.google.analytics.admin.v1alpha.ListConversionEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConversionEventsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java new file mode 100644 index 00000000..ac12d5f6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListConversionEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + java.util.List getConversionEventsList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + int getConversionEventsCount(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + java.util.List + getConversionEventsOrBuilderList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java new file mode 100644 index 00000000..4403e926 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java @@ -0,0 +1,955 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} + */ +public final class ListCustomDimensionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + ListCustomDimensionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsRequest.newBuilder() to construct. + private ListCustomDimensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomDimensionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest build() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = + new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomDimensionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java new file mode 100644 index 00000000..1ba10b17 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomDimensionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java new file mode 100644 index 00000000..e2c154f1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} + */ +public final class ListCustomDimensionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + ListCustomDimensionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsResponse.newBuilder() to construct. + private ListCustomDimensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsResponse() { + customDimensions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomDimensionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customDimensions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customDimensions_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); + } + + public static final int CUSTOM_DIMENSIONS_FIELD_NUMBER = 1; + private java.util.List customDimensions_; + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsOrBuilderList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public int getCustomDimensionsCount() { + return customDimensions_.size(); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { + return customDimensions_.get(index); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + return customDimensions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customDimensions_.size(); i++) { + output.writeMessage(1, customDimensions_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customDimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customDimensions_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) obj; + + if (!getCustomDimensionsList().equals(other.getCustomDimensionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomDimensionsCount() > 0) { + hash = (37 * hash) + CUSTOM_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimensionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomDimensionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + customDimensionsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse build() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = + new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(this); + int from_bitField0_ = bitField0_; + if (customDimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customDimensions_ = customDimensions_; + } else { + result.customDimensions_ = customDimensionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance()) + return this; + if (customDimensionsBuilder_ == null) { + if (!other.customDimensions_.isEmpty()) { + if (customDimensions_.isEmpty()) { + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomDimensionsIsMutable(); + customDimensions_.addAll(other.customDimensions_); + } + onChanged(); + } + } else { + if (!other.customDimensions_.isEmpty()) { + if (customDimensionsBuilder_.isEmpty()) { + customDimensionsBuilder_.dispose(); + customDimensionsBuilder_ = null; + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + customDimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomDimensionsFieldBuilder() + : null; + } else { + customDimensionsBuilder_.addAllMessages(other.customDimensions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List customDimensions_ = + java.util.Collections.emptyList(); + + private void ensureCustomDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = + new java.util.ArrayList( + customDimensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionsBuilder_; + + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsList() { + if (customDimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customDimensions_); + } else { + return customDimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public int getCustomDimensionsCount() { + if (customDimensionsBuilder_ == null) { + return customDimensions_.size(); + } else { + return customDimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, value); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addAllCustomDimensions( + java.lang.Iterable values) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customDimensions_); + onChanged(); + } else { + customDimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder clearCustomDimensions() { + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customDimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder removeCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.remove(index); + onChanged(); + } else { + customDimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsOrBuilderList() { + if (customDimensionsBuilder_ != null) { + return customDimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customDimensions_); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder() { + return getCustomDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsBuilderList() { + return getCustomDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionsFieldBuilder() { + if (customDimensionsBuilder_ == null) { + customDimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + customDimensions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customDimensions_ = null; + } + return customDimensionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomDimensionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java new file mode 100644 index 00000000..efb6ff0e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomDimensionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + java.util.List getCustomDimensionsList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + int getCustomDimensionsCount(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + java.util.List + getCustomDimensionsOrBuilderList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java new file mode 100644 index 00000000..5bf9f9dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} + */ +public final class ListCustomMetricsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + ListCustomMetricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsRequest.newBuilder() to construct. + private ListCustomMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomMetricsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other = + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + com.google.analytics.admin.v1alpha.ListCustomMetricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest build() { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = + new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + private static final com.google.analytics.admin.v1alpha.ListCustomMetricsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomMetricsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java new file mode 100644 index 00000000..6fc7b232 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomMetricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java new file mode 100644 index 00000000..896e4677 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java @@ -0,0 +1,1152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} + */ +public final class ListCustomMetricsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + ListCustomMetricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsResponse.newBuilder() to construct. + private ListCustomMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsResponse() { + customMetrics_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomMetricsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customMetrics_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customMetrics_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); + } + + public static final int CUSTOM_METRICS_FIELD_NUMBER = 1; + private java.util.List customMetrics_; + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List getCustomMetricsList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List + getCustomMetricsOrBuilderList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public int getCustomMetricsCount() { + return customMetrics_.size(); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { + return customMetrics_.get(index); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + return customMetrics_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customMetrics_.size(); i++) { + output.writeMessage(1, customMetrics_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customMetrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customMetrics_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other = + (com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) obj; + + if (!getCustomMetricsList().equals(other.getCustomMetricsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomMetricsCount() > 0) { + hash = (37 * hash) + CUSTOM_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetricsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + com.google.analytics.admin.v1alpha.ListCustomMetricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + customMetricsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse build() { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = + new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(this); + int from_bitField0_ = bitField0_; + if (customMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customMetrics_ = customMetrics_; + } else { + result.customMetrics_ = customMetricsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance()) + return this; + if (customMetricsBuilder_ == null) { + if (!other.customMetrics_.isEmpty()) { + if (customMetrics_.isEmpty()) { + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomMetricsIsMutable(); + customMetrics_.addAll(other.customMetrics_); + } + onChanged(); + } + } else { + if (!other.customMetrics_.isEmpty()) { + if (customMetricsBuilder_.isEmpty()) { + customMetricsBuilder_.dispose(); + customMetricsBuilder_ = null; + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + customMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomMetricsFieldBuilder() + : null; + } else { + customMetricsBuilder_.addAllMessages(other.customMetrics_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List customMetrics_ = + java.util.Collections.emptyList(); + + private void ensureCustomMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = + new java.util.ArrayList( + customMetrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricsBuilder_; + + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List getCustomMetricsList() { + if (customMetricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customMetrics_); + } else { + return customMetricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public int getCustomMetricsCount() { + if (customMetricsBuilder_ == null) { + return customMetrics_.size(); + } else { + return customMetricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, value); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addAllCustomMetrics( + java.lang.Iterable values) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customMetrics_); + onChanged(); + } else { + customMetricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder clearCustomMetrics() { + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder removeCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.remove(index); + onChanged(); + } else { + customMetricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsOrBuilderList() { + if (customMetricsBuilder_ != null) { + return customMetricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customMetrics_); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder() { + return getCustomMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsBuilderList() { + return getCustomMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricsFieldBuilder() { + if (customMetricsBuilder_ == null) { + customMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + customMetrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customMetrics_ = null; + } + return customMetricsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + private static final com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomMetricsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java new file mode 100644 index 00000000..e50c688f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomMetricsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + java.util.List getCustomMetricsList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + int getCustomMetricsCount(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + java.util.List + getCustomMetricsOrBuilderList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java new file mode 100644 index 00000000..d650ee2c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -0,0 +1,995 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} + */ +public final class ListMeasurementProtocolSecretsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + ListMeasurementProtocolSecretsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsRequest.newBuilder() to construct. + private ListMeasurementProtocolSecretsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMeasurementProtocolSecretsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object 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
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * 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
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest build() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object 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
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * 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
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * 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
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * 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
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMeasurementProtocolSecretsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java new file mode 100644 index 00000000..0e40a364 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListMeasurementProtocolSecretsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * 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
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java new file mode 100644 index 00000000..6409ec06 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java @@ -0,0 +1,1238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} + */ +public final class ListMeasurementProtocolSecretsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + ListMeasurementProtocolSecretsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsResponse.newBuilder() to construct. + private ListMeasurementProtocolSecretsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsResponse() { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMeasurementProtocolSecretsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>(); + mutable_bitField0_ |= 0x00000001; + } + measurementProtocolSecrets_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER = 1; + private java.util.List + measurementProtocolSecrets_; + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List + getMeasurementProtocolSecretsList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public int getMeasurementProtocolSecretsCount() { + return measurementProtocolSecrets_.size(); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index) { + return measurementProtocolSecrets_.get(index); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + return measurementProtocolSecrets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { + output.writeMessage(1, measurementProtocolSecrets_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, measurementProtocolSecrets_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) obj; + + if (!getMeasurementProtocolSecretsList().equals(other.getMeasurementProtocolSecretsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMeasurementProtocolSecretsCount() > 0) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecretsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMeasurementProtocolSecretsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + measurementProtocolSecretsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse build() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(this); + int from_bitField0_ = bitField0_; + if (measurementProtocolSecretsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.measurementProtocolSecrets_ = measurementProtocolSecrets_; + } else { + result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + .getDefaultInstance()) return this; + if (measurementProtocolSecretsBuilder_ == null) { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecrets_.isEmpty()) { + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.addAll(other.measurementProtocolSecrets_); + } + onChanged(); + } + } else { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecretsBuilder_.isEmpty()) { + measurementProtocolSecretsBuilder_.dispose(); + measurementProtocolSecretsBuilder_ = null; + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + measurementProtocolSecretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMeasurementProtocolSecretsFieldBuilder() + : null; + } else { + measurementProtocolSecretsBuilder_.addAllMessages(other.measurementProtocolSecrets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + + private void ensureMeasurementProtocolSecretsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + new java.util.ArrayList( + measurementProtocolSecrets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretsBuilder_; + + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsList() { + if (measurementProtocolSecretsBuilder_ == null) { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } else { + return measurementProtocolSecretsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public int getMeasurementProtocolSecretsCount() { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.size(); + } else { + return measurementProtocolSecretsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addAllMeasurementProtocolSecrets( + java.lang.Iterable + values) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, measurementProtocolSecrets_); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder clearMeasurementProtocolSecrets() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder removeMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.remove(index); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + if (measurementProtocolSecretsBuilder_ != null) { + return measurementProtocolSecretsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder() { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsBuilderList() { + return getMeasurementProtocolSecretsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsFieldBuilder() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecretsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + measurementProtocolSecrets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + measurementProtocolSecrets_ = null; + } + return measurementProtocolSecretsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMeasurementProtocolSecretsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java new file mode 100644 index 00000000..32a7b109 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListMeasurementProtocolSecretsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + int getMeasurementProtocolSecretsCount(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsOrBuilderList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java new file mode 100644 index 00000000..1be30d69 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A secret value used for sending hits to Measurement Protocol.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} + */ +public final class MeasurementProtocolSecret extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + MeasurementProtocolSecretOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeasurementProtocolSecret.newBuilder() to construct. + private MeasurementProtocolSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeasurementProtocolSecret() { + name_ = ""; + displayName_ = ""; + secretValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeasurementProtocolSecret(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MeasurementProtocolSecret( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + secretValue_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object secretValue_; + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + @java.lang.Override + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretValue_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getSecretValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getSecretValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.MeasurementProtocolSecret)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other = + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getSecretValue().equals(other.getSecretValue())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SECRET_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSecretValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A secret value used for sending hits to Measurement Protocol.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + secretValue_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret build() { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret buildPartial() { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = + new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.secretValue_ = secretValue_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) { + return mergeFrom((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other) { + if (other + == com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getSecretValue().isEmpty()) { + secretValue_ = other.secretValue_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object secretValue_ = ""; + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secretValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSecretValue() { + + secretValue_ = getDefaultInstance().getSecretValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secretValue_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + private static final com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeasurementProtocolSecret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MeasurementProtocolSecret(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java new file mode 100644 index 00000000..3a8bd481 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java @@ -0,0 +1,241 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class MeasurementProtocolSecretName implements ResourceName { + private static final PathTemplate PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"); + private volatile Map fieldValuesMap; + private final String property; + private final String webDataStream; + private final String measurementProtocolSecret; + + @Deprecated + protected MeasurementProtocolSecretName() { + property = null; + webDataStream = null; + measurementProtocolSecret = null; + } + + private MeasurementProtocolSecretName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); + measurementProtocolSecret = Preconditions.checkNotNull(builder.getMeasurementProtocolSecret()); + } + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public String getMeasurementProtocolSecret() { + return measurementProtocolSecret; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MeasurementProtocolSecretName of( + String property, String webDataStream, String measurementProtocolSecret) { + return newBuilder() + .setProperty(property) + .setWebDataStream(webDataStream) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build(); + } + + public static String format( + String property, String webDataStream, String measurementProtocolSecret) { + return newBuilder() + .setProperty(property) + .setWebDataStream(webDataStream) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build() + .toString(); + } + + public static MeasurementProtocolSecretName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.validatedMatch( + formattedString, + "MeasurementProtocolSecretName.parse: formattedString not in valid format"); + return of( + matchMap.get("property"), + matchMap.get("web_data_stream"), + matchMap.get("measurement_protocol_secret")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (MeasurementProtocolSecretName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + if (webDataStream != null) { + fieldMapBuilder.put("web_data_stream", webDataStream); + } + if (measurementProtocolSecret != null) { + fieldMapBuilder.put("measurement_protocol_secret", measurementProtocolSecret); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.instantiate( + "property", + property, + "web_data_stream", + webDataStream, + "measurement_protocol_secret", + measurementProtocolSecret); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + MeasurementProtocolSecretName that = ((MeasurementProtocolSecretName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.webDataStream, that.webDataStream) + && Objects.equals(this.measurementProtocolSecret, that.measurementProtocolSecret); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(webDataStream); + h *= 1000003; + h ^= Objects.hashCode(measurementProtocolSecret); + return h; + } + + /** + * Builder for + * properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}. + */ + public static class Builder { + private String property; + private String webDataStream; + private String measurementProtocolSecret; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public String getMeasurementProtocolSecret() { + return measurementProtocolSecret; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setWebDataStream(String webDataStream) { + this.webDataStream = webDataStream; + return this; + } + + public Builder setMeasurementProtocolSecret(String measurementProtocolSecret) { + this.measurementProtocolSecret = measurementProtocolSecret; + return this; + } + + private Builder(MeasurementProtocolSecretName measurementProtocolSecretName) { + property = measurementProtocolSecretName.property; + webDataStream = measurementProtocolSecretName.webDataStream; + measurementProtocolSecret = measurementProtocolSecretName.measurementProtocolSecret; + } + + public MeasurementProtocolSecretName build() { + return new MeasurementProtocolSecretName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java new file mode 100644 index 00000000..7070bc62 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface MeasurementProtocolSecretOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + java.lang.String getSecretValue(); + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + com.google.protobuf.ByteString getSecretValueBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index 04c8393f..1072f634 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -83,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +99,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -154,127 +174,194 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ult_uri\030\006 \001(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\t" + "B\003\340A\002:h\352Ae\n+analyticsadmin.googleapis.co" + "m/WebDataStream\0226properties/{property}/w" - + "ebDataStreams/{web_data_stream}\"\312\001\n\010User" - + "Link\022\014\n\004name\030\001 \001(\t\022\025\n\remail_address\030\002 \001(" - + "\t\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n&analytics" - + "admin.googleapis.com/UserLink\022(accounts/" - + "{account}/userLinks/{user_link}\022+propert" - + "ies/{property}/userLinks/{user_link}\"c\n\r" - + "AuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\remail_add" - + "ress\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017effe" - + "ctive_roles\030\004 \003(\t\"\231\004\n\033EnhancedMeasuremen" - + "tSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stream_e" - + "nabled\030\002 \001(\010\022\037\n\022page_views_enabled\030\003 \001(\010" - + "B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010\022\037\n\027outbou" - + "nd_clicks_enabled\030\005 \001(\010\022\033\n\023site_search_e" - + "nabled\030\007 \001(\010\022 \n\030video_engagement_enabled" - + "\030\t \001(\010\022\036\n\026file_downloads_enabled\030\n \001(\010\022\037" - + "\n\022page_loads_enabled\030\014 \001(\010B\003\340A\003\022\034\n\024page_" - + "changes_enabled\030\r \001(\010\022#\n\026search_query_pa" - + "rameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_query_paramete" - + "r\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin.googleapi" - + "s.com/EnhancedMeasurementSettings\022Rprope" - + "rties/{property}/webDataStreams/{web_dat" - + "a_stream}/enhancedMeasurementSettings\"\243\002" - + "\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007pro" - + "ject\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022N\n\023maximum" - + "_user_access\030\004 \001(\01621.google.analytics.ad" - + "min.v1alpha.MaximumUserAccess:d\352Aa\n*anal" - + "yticsadmin.googleapis.com/FirebaseLink\0223" - + "properties/{property}/firebaseLinks/{fir" - + "ebase_link}\"\217\001\n\rGlobalSiteTag\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:U\352AR\n+ana" - + "lyticsadmin.googleapis.com/GlobalSiteTag" - + "\022#properties/{property}/globalSiteTag\"\220\003" - + "\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013cu" - + "stomer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_clien" - + "ts\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization_ena" - + "bled\030\005 \001(\0132\032.google.protobuf.BoolValue\022\032" - + "\n\remail_address\030\006 \001(\tB\003\340A\003\0224\n\013create_tim" - + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003:h\352Ae\n+analyticsadmin.goog" - + "leapis.com/GoogleAdsLink\0226properties/{pr" - + "operty}/googleAdsLinks/{google_ads_link}" - + "\"\353\002\n\023DataSharingSettings\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022+\n#sharing_with_google_support_enabl" - + "ed\030\002 \001(\010\0222\n*sharing_with_google_assigned" - + "_sales_enabled\030\003 \001(\010\022-\n%sharing_with_goo" - + "gle_any_sales_enabled\030\004 \001(\010\022,\n$sharing_w" - + "ith_google_products_enabled\030\005 \001(\010\022#\n\033sha" - + "ring_with_others_enabled\030\006 \001(\010:^\352A[\n1ana" - + "lyticsadmin.googleapis.com/DataSharingSe" - + "ttings\022&accounts/{account}/dataSharingSe" - + "ttings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022" - + ";\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.go" - + "ogleapis.com/Account\022\024\n\014display_name\030\003 \001" - + "(\t\022K\n\022property_summaries\030\004 \003(\0132/.google." - + "analytics.admin.v1alpha.PropertySummary:" - + "U\352AR\n,analyticsadmin.googleapis.com/Acco" - + "untSummary\022\"accountSummaries/{account_su" - + "mmary}\"f\n\017PropertySummary\022=\n\010property\030\001 " - + "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" - + "Property\022\024\n\014display_name\030\002 \001(\t\"\212\002\n\022Chang" - + "eHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022=\n\nac" - + "tor_type\030\003 \001(\0162).google.analytics.admin." - + "v1alpha.ActorType\022\030\n\020user_actor_email\030\004 " - + "\001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022D\n\007changes" - + "\030\006 \003(\01323.google.analytics.admin.v1alpha." - + "ChangeHistoryChange\"\335\006\n\023ChangeHistoryCha" - + "nge\022\020\n\010resource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*." - + "google.analytics.admin.v1alpha.ActionTyp" - + "e\022i\n\026resource_before_change\030\003 \001(\0132I.goog" - + "le.analytics.admin.v1alpha.ChangeHistory" - + "Change.ChangeHistoryResource\022h\n\025resource" - + "_after_change\030\004 \001(\0132I.google.analytics.a" - + "dmin.v1alpha.ChangeHistoryChange.ChangeH" - + "istoryResource\032\242\004\n\025ChangeHistoryResource" - + "\022:\n\007account\030\001 \001(\0132\'.google.analytics.adm" - + "in.v1alpha.AccountH\000\022<\n\010property\030\002 \001(\0132(" - + ".google.analytics.admin.v1alpha.Property" - + "H\000\022H\n\017web_data_stream\030\003 \001(\0132-.google.ana" - + "lytics.admin.v1alpha.WebDataStreamH\000\022W\n\027" - + "android_app_data_stream\030\004 \001(\01324.google.a" - + "nalytics.admin.v1alpha.AndroidAppDataStr" - + "eamH\000\022O\n\023ios_app_data_stream\030\005 \001(\01320.goo" - + "gle.analytics.admin.v1alpha.IosAppDataSt" - + "reamH\000\022E\n\rfirebase_link\030\006 \001(\0132,.google.a" - + "nalytics.admin.v1alpha.FirebaseLinkH\000\022H\n" - + "\017google_ads_link\030\007 \001(\0132-.google.analytic" - + "s.admin.v1alpha.GoogleAdsLinkH\000B\n\n\010resou" - + "rce*\247\001\n\021MaximumUserAccess\022#\n\037MAXIMUM_USE" - + "R_ACCESS_UNSPECIFIED\020\000\022\r\n\tNO_ACCESS\020\001\022\024\n" - + "\020READ_AND_ANALYZE\020\002\022\"\n\036EDITOR_WITHOUT_LI" - + "NK_MANAGEMENT\020\003\022$\n EDITOR_INCLUDING_LINK" - + "_MANAGEMENT\020\004*\252\004\n\020IndustryCategory\022!\n\035IN" - + "DUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOT" - + "IVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MARKETS" - + "\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHN" - + "OLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_A" - + "ND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS" - + "\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOOD_AND" - + "_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_LEISU" - + "RE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNET_AN" - + "D_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004N" - + "EWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_" - + "AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013R" - + "EAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027" - + "\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010" - + "SHOPPING\020\032*J\n\tActorType\022\032\n\026ACTOR_TYPE_UN" - + "SPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUP" - + "PORT\020\003*P\n\nActionType\022\033\n\027ACTION_TYPE_UNSP" - + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007D" - + "ELETED\020\003*\327\001\n\031ChangeHistoryResourceType\022," - + "\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFI" - + "ED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\023\n\017WEB_D" - + "ATA_STREAM\020\003\022\033\n\027ANDROID_APP_DATA_STREAM\020" - + "\004\022\027\n\023IOS_APP_DATA_STREAM\020\005\022\021\n\rFIREBASE_L" - + "INK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007B{\n\"com.google" - + ".analytics.admin.v1alphaB\016ResourcesProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/analytics/admin/v1alpha;adminb\006proto3" + + "ebDataStreams/{web_data_stream}\"\324\001\n\010User" + + "Link\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\remail_address" + + "\030\002 \001(\tB\003\340A\005\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n" + + "&analyticsadmin.googleapis.com/UserLink\022" + + "(accounts/{account}/userLinks/{user_link" + + "}\022+properties/{property}/userLinks/{user" + + "_link}\"c\n\rAuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n" + + "\remail_address\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003" + + "(\t\022\027\n\017effective_roles\030\004 \003(\t\"\231\004\n\033Enhanced" + + "MeasurementSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026" + + "\n\016stream_enabled\030\002 \001(\010\022\037\n\022page_views_ena" + + "bled\030\003 \001(\010B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010" + + "\022\037\n\027outbound_clicks_enabled\030\005 \001(\010\022\033\n\023sit" + + "e_search_enabled\030\007 \001(\010\022 \n\030video_engageme" + + "nt_enabled\030\t \001(\010\022\036\n\026file_downloads_enabl" + + "ed\030\n \001(\010\022\037\n\022page_loads_enabled\030\014 \001(\010B\003\340A" + + "\003\022\034\n\024page_changes_enabled\030\r \001(\010\022#\n\026searc" + + "h_query_parameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_quer" + + "y_parameter\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin" + + ".googleapis.com/EnhancedMeasurementSetti" + + "ngs\022Rproperties/{property}/webDataStream" + + "s/{web_data_stream}/enhancedMeasurementS" + + "ettings\"\243\002\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\003\022\024\n\007project\030\002 \001(\tB\003\340A\005\0224\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "N\n\023maximum_user_access\030\004 \001(\01621.google.an" + + "alytics.admin.v1alpha.MaximumUserAccess:" + + "d\352Aa\n*analyticsadmin.googleapis.com/Fire" + + "baseLink\0223properties/{property}/firebase" + + "Links/{firebase_link}\"\217\001\n\rGlobalSiteTag\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005" + + ":U\352AR\n+analyticsadmin.googleapis.com/Glo" + + "balSiteTag\022#properties/{property}/global" + + "SiteTag\"\220\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\022\030\n\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_ma" + + "nage_clients\030\004 \001(\010B\003\340A\003\022?\n\033ads_personali" + + "zation_enabled\030\005 \001(\0132\032.google.protobuf.B" + + "oolValue\022\032\n\remail_address\030\006 \001(\tB\003\340A\003\0224\n\013" + + "create_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003:h\352Ae\n+analytics" + + "admin.googleapis.com/GoogleAdsLink\0226prop" + + "erties/{property}/googleAdsLinks/{google" + + "_ads_link}\"\353\002\n\023DataSharingSettings\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_google_sup" + + "port_enabled\030\002 \001(\010\0222\n*sharing_with_googl" + + "e_assigned_sales_enabled\030\003 \001(\010\022-\n%sharin" + + "g_with_google_any_sales_enabled\030\004 \001(\010\022,\n" + + "$sharing_with_google_products_enabled\030\005 " + + "\001(\010\022#\n\033sharing_with_others_enabled\030\006 \001(\010" + + ":^\352A[\n1analyticsadmin.googleapis.com/Dat" + + "aSharingSettings\022&accounts/{account}/dat" + + "aSharingSettings\"\225\002\n\016AccountSummary\022\014\n\004n" + + "ame\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%analyti" + + "csadmin.googleapis.com/Account\022\024\n\014displa" + + "y_name\030\003 \001(\t\022K\n\022property_summaries\030\004 \003(\013" + + "2/.google.analytics.admin.v1alpha.Proper" + + "tySummary:U\352AR\n,analyticsadmin.googleapi" + + "s.com/AccountSummary\022\"accountSummaries/{" + + "account_summary}\"f\n\017PropertySummary\022=\n\010p" + + "roperty\030\001 \001(\tB+\372A(\n&analyticsadmin.googl" + + "eapis.com/Property\022\024\n\014display_name\030\002 \001(\t" + + "\"\225\002\n\031MeasurementProtocolSecret\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\031\n\014" + + "secret_value\030\003 \001(\tB\003\340A\003:\256\001\352A\252\001\n7analytic" + + "sadmin.googleapis.com/MeasurementProtoco" + + "lSecret\022oproperties/{property}/webDataSt" + + "reams/{web_data_stream}/measurementProto" + + "colSecrets/{measurement_protocol_secret}" + + "\"\212\002\n\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013c" + + "hange_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\022=\n\nactor_type\030\003 \001(\0162).google.analyt" + + "ics.admin.v1alpha.ActorType\022\030\n\020user_acto" + + "r_email\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022" + + "D\n\007changes\030\006 \003(\01323.google.analytics.admi" + + "n.v1alpha.ChangeHistoryChange\"\372\t\n\023Change" + + "HistoryChange\022\020\n\010resource\030\001 \001(\t\022:\n\006actio" + + "n\030\002 \001(\0162*.google.analytics.admin.v1alpha" + + ".ActionType\022i\n\026resource_before_change\030\003 " + + "\001(\0132I.google.analytics.admin.v1alpha.Cha" + + "ngeHistoryChange.ChangeHistoryResource\022h" + + "\n\025resource_after_change\030\004 \001(\0132I.google.a" + + "nalytics.admin.v1alpha.ChangeHistoryChan" + + "ge.ChangeHistoryResource\032\277\007\n\025ChangeHisto" + + "ryResource\022:\n\007account\030\001 \001(\0132\'.google.ana" + + "lytics.admin.v1alpha.AccountH\000\022<\n\010proper" + + "ty\030\002 \001(\0132(.google.analytics.admin.v1alph" + + "a.PropertyH\000\022H\n\017web_data_stream\030\003 \001(\0132-." + + "google.analytics.admin.v1alpha.WebDataSt" + + "reamH\000\022W\n\027android_app_data_stream\030\004 \001(\0132" + + "4.google.analytics.admin.v1alpha.Android" + + "AppDataStreamH\000\022O\n\023ios_app_data_stream\030\005" + + " \001(\01320.google.analytics.admin.v1alpha.Io" + + "sAppDataStreamH\000\022E\n\rfirebase_link\030\006 \001(\0132" + + ",.google.analytics.admin.v1alpha.Firebas" + + "eLinkH\000\022H\n\017google_ads_link\030\007 \001(\0132-.googl" + + "e.analytics.admin.v1alpha.GoogleAdsLinkH" + + "\000\022X\n\027google_signals_settings\030\010 \001(\01325.goo" + + "gle.analytics.admin.v1alpha.GoogleSignal" + + "sSettingsH\000\022K\n\020conversion_event\030\013 \001(\0132/." + + "google.analytics.admin.v1alpha.Conversio" + + "nEventH\000\022`\n\033measurement_protocol_secret\030" + + "\014 \001(\01329.google.analytics.admin.v1alpha.M" + + "easurementProtocolSecretH\000\022K\n\020custom_dim" + + "ension\030\r \001(\0132/.google.analytics.admin.v1" + + "alpha.CustomDimensionH\000\022E\n\rcustom_metric" + + "\030\016 \001(\0132,.google.analytics.admin.v1alpha." + + "CustomMetricH\000B\n\n\010resource\"\375\001\n\017Conversio" + + "nEvent\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name\030" + + "\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022\031\n\014is_deletable" + + "\030\004 \001(\010B\003\340A\003:m\352Aj\n-analyticsadmin.googlea" + + "pis.com/ConversionEvent\0229properties/{pro" + + "perty}/conversionEvents/{conversion_even" + + "t}\"\240\002\n\025GoogleSignalsSettings\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022A\n\005state\030\003 \001(\01622.google.analytic" + + "s.admin.v1alpha.GoogleSignalsState\022J\n\007co" + + "nsent\030\004 \001(\01624.google.analytics.admin.v1a" + + "lpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n3ana" + + "lyticsadmin.googleapis.com/GoogleSignals" + + "Settings\022+properties/{property}/googleSi" + + "gnalsSettings\"\237\003\n\017CustomDimension\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_name\030\002 \001(\tB\006\340A" + + "\002\340A\005\022\031\n\014display_name\030\003 \001(\tB\003\340A\002\022\030\n\013descr" + + "iption\030\004 \001(\tB\003\340A\001\022U\n\005scope\030\005 \001(\0162>.googl" + + "e.analytics.admin.v1alpha.CustomDimensio" + + "n.DimensionScopeB\006\340A\002\340A\005\022)\n\034disallow_ads" + + "_personalization\030\006 \001(\010B\003\340A\001\"F\n\016Dimension" + + "Scope\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t" + + "\n\005EVENT\020\001\022\010\n\004USER\020\002:Z\352AW\n-analyticsadmin" + + ".googleapis.com/CustomDimension\022&propert" + + "ies/{property}/customDimensions\"\357\004\n\014Cust" + + "omMetric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter" + + "_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022^\n\020meas" + + "urement_unit\030\005 \001(\0162<.google.analytics.ad" + + "min.v1alpha.CustomMetric.MeasurementUnit" + + "B\006\340A\002\340A\005\022O\n\005scope\030\006 \001(\01628.google.analyti" + + "cs.admin.v1alpha.CustomMetric.MetricScop" + + "eB\006\340A\002\340A\005\"\267\001\n\017MeasurementUnit\022 \n\034MEASURE" + + "MENT_UNIT_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n" + + "\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKIL" + + "OMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013" + + "\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013M" + + "etricScope\022\034\n\030METRIC_SCOPE_UNSPECIFIED\020\000" + + "\022\t\n\005EVENT\020\001:T\352AQ\n*analyticsadmin.googlea" + + "pis.com/CustomMetric\022#properties/{proper" + + "ty}/customMetrics*\247\001\n\021MaximumUserAccess\022" + + "#\n\037MAXIMUM_USER_ACCESS_UNSPECIFIED\020\000\022\r\n\t" + + "NO_ACCESS\020\001\022\024\n\020READ_AND_ANALYZE\020\002\022\"\n\036EDI" + + "TOR_WITHOUT_LINK_MANAGEMENT\020\003\022$\n EDITOR_" + + "INCLUDING_LINK_MANAGEMENT\020\004*\252\004\n\020Industry" + + "Category\022!\n\035INDUSTRY_CATEGORY_UNSPECIFIE" + + "D\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINESS_AND_INDU" + + "STRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHC" + + "ARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTH" + + "ER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAU" + + "TY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_LITERATURE" + + "\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOB" + + "BIES_AND_LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022" + + "\030\n\024INTERNET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOV" + + "ERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIE" + + "S\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AND_" + + "ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020" + + "\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_E" + + "DUCATION\020\031\022\014\n\010SHOPPING\020\032*J\n\tActorType\022\032\n" + + "\026ACTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006S" + + "YSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027AC" + + "TION_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007" + + "UPDATED\020\002\022\013\n\007DELETED\020\003*\324\002\n\031ChangeHistory" + + "ResourceType\022,\n(CHANGE_HISTORY_RESOURCE_" + + "TYPE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPE" + + "RTY\020\002\022\023\n\017WEB_DATA_STREAM\020\003\022\033\n\027ANDROID_AP" + + "P_DATA_STREAM\020\004\022\027\n\023IOS_APP_DATA_STREAM\020\005" + + "\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007" + + "\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERS" + + "ION_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECR" + + "ET\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM_MET" + + "RIC\020\014*s\n\022GoogleSignalsState\022$\n GOOGLE_SI" + + "GNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGLE_SIGN" + + "ALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DISABLED" + + "\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOOGLE_SI" + + "GNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOOGLE_SI" + + "GNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGLE_SIGN" + + "ALS_CONSENT_NOT_CONSENTED\020\001B{\n\"com.googl" + + "e.analytics.admin.v1alphaB\016ResourcesProt" + + "oP\001ZCgoogle.golang.org/genproto/googleap" + + "is/analytics/admin/v1alpha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -434,8 +521,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "DisplayName", }); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "SecretValue", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, @@ -443,7 +538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", }); internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, @@ -465,8 +560,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IosAppDataStream", "FirebaseLink", "GoogleAdsLink", + "GoogleSignalsSettings", + "ConversionEvent", + "MeasurementProtocolSecret", + "CustomDimension", + "CustomMetric", "Resource", }); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, + new java.lang.String[] { + "Name", "EventName", "CreateTime", "IsDeletable", + }); + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, + new java.lang.String[] { + "Name", "State", "Consent", + }); + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, + new java.lang.String[] { + "Name", + "ParameterName", + "DisplayName", + "Description", + "Scope", + "DisallowAdsPersonalization", + }); + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor, + new java.lang.String[] { + "Name", "ParameterName", "DisplayName", "Description", "MeasurementUnit", "Scope", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java new file mode 100644 index 00000000..fbb48577 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java @@ -0,0 +1,1052 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} + */ +public final class UpdateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + UpdateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomDimensionRequest.newBuilder() to construct. + private UpdateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomDimensionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCustomDimensionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.CustomDimension.Builder subBuilder = null; + if (customDimension_ != null) { + subBuilder = customDimension_.toBuilder(); + } + customDimension_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customDimension_); + customDimension_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return getCustomDimension(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (customDimension_ != null) { + output.writeMessage(1, getCustomDimension()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomDimension()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) obj; + + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (customDimensionBuilder_ == null) { + customDimension_ = null; + } else { + customDimension_ = null; + customDimensionBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(this); + if (customDimensionBuilder_ == null) { + result.customDimension_ = customDimension_; + } else { + result.customDimension_ = customDimensionBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance()) + return this; + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return customDimensionBuilder_ != null || customDimension_ != null; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (customDimension_ != null) { + customDimension_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder(customDimension_) + .mergeFrom(value) + .buildPartial(); + } else { + customDimension_ = value; + } + onChanged(); + } else { + customDimensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + customDimension_ = null; + onChanged(); + } else { + customDimension_ = null; + customDimensionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { + + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..a379c03d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java new file mode 100644 index 00000000..61e5315a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} + */ +public final class UpdateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + UpdateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomMetricRequest.newBuilder() to construct. + private UpdateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomMetricRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCustomMetricRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.CustomMetric.Builder subBuilder = null; + if (customMetric_ != null) { + subBuilder = customMetric_.toBuilder(); + } + customMetric_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customMetric_); + customMetric_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return getCustomMetric(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (customMetric_ != null) { + output.writeMessage(1, getCustomMetric()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomMetric()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) obj; + + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (customMetricBuilder_ == null) { + customMetric_ = null; + } else { + customMetric_ = null; + customMetricBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(this); + if (customMetricBuilder_ == null) { + result.customMetric_ = customMetric_; + } else { + result.customMetric_ = customMetricBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance()) + return this; + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return customMetricBuilder_ != null || customMetric_ != null; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (customMetric_ != null) { + customMetric_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder(customMetric_) + .mergeFrom(value) + .buildPartial(); + } else { + customMetric_ = value; + } + onChanged(); + } else { + customMetricBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + customMetric_ = null; + onChanged(); + } else { + customMetric_ = null; + customMetricBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..76737db8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java new file mode 100644 index 00000000..0e1d8961 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateGoogleSignalsSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} + */ +public final class UpdateGoogleSignalsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + UpdateGoogleSignalsSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateGoogleSignalsSettingsRequest.newBuilder() to construct. + private UpdateGoogleSignalsSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateGoogleSignalsSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGoogleSignalsSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateGoogleSignalsSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder subBuilder = null; + if (googleSignalsSettings_ != null) { + subBuilder = googleSignalsSettings_.toBuilder(); + } + googleSignalsSettings_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(googleSignalsSettings_); + googleSignalsSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); + } + + public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return googleSignalsSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + return getGoogleSignalsSettings(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (googleSignalsSettings_ != null) { + output.writeMessage(1, getGoogleSignalsSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (googleSignalsSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGoogleSignalsSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) obj; + + if (hasGoogleSignalsSettings() != other.hasGoogleSignalsSettings()) return false; + if (hasGoogleSignalsSettings()) { + if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGoogleSignalsSettings()) { + hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateGoogleSignalsSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = null; + } else { + googleSignalsSettings_ = null; + googleSignalsSettingsBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(this); + if (googleSignalsSettingsBuilder_ == null) { + result.googleSignalsSettings_ = googleSignalsSettings_; + } else { + result.googleSignalsSettings_ = googleSignalsSettingsBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance()) return this; + if (other.hasGoogleSignalsSettings()) { + mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + googleSignalsSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + public boolean hasGoogleSignalsSettings() { + return googleSignalsSettingsBuilder_ != null || googleSignalsSettings_ != null; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } else { + return googleSignalsSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleSignalsSettings_ = value; + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = builderForValue.build(); + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (googleSignalsSettings_ != null) { + googleSignalsSettings_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder( + googleSignalsSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + googleSignalsSettings_ = value; + } + onChanged(); + } else { + googleSignalsSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = null; + onChanged(); + } else { + googleSignalsSettings_ = null; + googleSignalsSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder + getGoogleSignalsSettingsBuilder() { + + onChanged(); + return getGoogleSignalsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if (googleSignalsSettingsBuilder_ != null) { + return googleSignalsSettingsBuilder_.getMessageOrBuilder(); + } else { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + getGoogleSignalsSettingsFieldBuilder() { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( + getGoogleSignalsSettings(), getParentForChildren(), isClean()); + googleSignalsSettings_ = null; + } + return googleSignalsSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : 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.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGoogleSignalsSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateGoogleSignalsSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java new file mode 100644 index 00000000..6d1a6437 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateGoogleSignalsSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + boolean hasGoogleSignalsSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..588545ec --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} + */ +public final class UpdateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + UpdateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMeasurementProtocolSecretRequest.newBuilder() to construct. + private UpdateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMeasurementProtocolSecretRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateMeasurementProtocolSecretRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder subBuilder = + null; + if (measurementProtocolSecret_ != null) { + subBuilder = measurementProtocolSecret_.toBuilder(); + } + measurementProtocolSecret_ = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(measurementProtocolSecret_); + measurementProtocolSecret_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return getMeasurementProtocolSecret(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (measurementProtocolSecret_ != null) { + output.writeMessage(1, getMeasurementProtocolSecret()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getMeasurementProtocolSecret()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) obj; + + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(this); + if (measurementProtocolSecretBuilder_ == null) { + result.measurementProtocolSecret_ = measurementProtocolSecret_; + } else { + result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecretBuilder_ != null || measurementProtocolSecret_ != null; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (measurementProtocolSecret_ != null) { + measurementProtocolSecret_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + measurementProtocolSecret_) + .mergeFrom(value) + .buildPartial(); + } else { + measurementProtocolSecret_ = value; + } + onChanged(); + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + onChanged(); + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..6ead312f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java index 3fada25c..211479cb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java @@ -141,10 +141,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -164,10 +164,10 @@ public java.lang.String getName() { * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -190,10 +190,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The emailAddress. */ @@ -213,10 +213,10 @@ public java.lang.String getEmailAddress() { * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for emailAddress. */ @@ -704,10 +704,10 @@ public Builder mergeFrom( * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -726,10 +726,10 @@ public java.lang.String getName() { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -748,10 +748,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -769,10 +769,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -786,10 +786,10 @@ public Builder clearName() { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -810,10 +810,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The emailAddress. */ @@ -832,10 +832,10 @@ public java.lang.String getEmailAddress() { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for emailAddress. */ @@ -854,10 +854,10 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The emailAddress to set. * @return This builder for chaining. @@ -875,10 +875,10 @@ public Builder setEmailAddress(java.lang.String value) { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -892,10 +892,10 @@ public Builder clearEmailAddress() { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for emailAddress to set. * @return This builder for chaining. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java index f096ae2b..986cc9d5 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java @@ -27,10 +27,10 @@ public interface UserLinkOrBuilder * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface UserLinkOrBuilder * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -52,10 +52,10 @@ public interface UserLinkOrBuilder * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The emailAddress. */ @@ -64,10 +64,10 @@ public interface UserLinkOrBuilder * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for emailAddress. */ diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 872d6abb..14ba713d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -515,6 +515,83 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } + // Lookup for a single "GA4" MeasurementProtocolSecret. + rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + additional_bindings { + get: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + } + additional_bindings { + get: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Returns child MeasurementProtocolSecrets under the specified parent + // Property. + rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + additional_bindings { + get: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + } + additional_bindings { + get: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a measurement protocol secret. + rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + additional_bindings { + post: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + } + additional_bindings { + post: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + } + }; + option (google.api.method_signature) = "parent,measurement_protocol_secret"; + } + + // Deletes target MeasurementProtocolSecret. + rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + additional_bindings { + delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + } + additional_bindings { + delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a measurement protocol secret. + rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + additional_bindings { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + } + additional_bindings { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + } + }; + option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; + } + // Searches through all changes to an account or its children given the // specified set of filters. rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { @@ -523,6 +600,144 @@ service AnalyticsAdminService { body: "*" }; } + + // Lookup for Google Signals settings for a property. + rpc GetGoogleSignalsSettings(GetGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/googleSignalsSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates Google Signals settings for a property. + rpc UpdateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + option (google.api.http) = { + patch: "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}" + body: "google_signals_settings" + }; + option (google.api.method_signature) = "google_signals_settings,update_mask"; + } + + // Creates a conversion event with the specified attributes. + rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/conversionEvents" + body: "conversion_event" + }; + option (google.api.method_signature) = "parent,conversion_event"; + } + + // Retrieve a single conversion event. + rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a conversion event in a property. + rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of conversion events in the specified parent property. + // + // Returns an empty list if no conversion events are found. + rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/conversionEvents" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a CustomDimension. + rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/customDimensions" + body: "custom_dimension" + }; + option (google.api.method_signature) = "parent,custom_dimension"; + } + + // Updates a CustomDimension on a property. + rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + patch: "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}" + body: "custom_dimension" + }; + option (google.api.method_signature) = "custom_dimension,update_mask"; + } + + // Lists CustomDimensions on a property. + rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/customDimensions" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomDimension on a property. + rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/customDimensions/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomDimension. + rpc GetCustomDimension(GetCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/customDimensions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a CustomMetric. + rpc CreateCustomMetric(CreateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/customMetrics" + body: "custom_metric" + }; + option (google.api.method_signature) = "parent,custom_metric"; + } + + // Updates a CustomMetric on a property. + rpc UpdateCustomMetric(UpdateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + patch: "/v1alpha/{custom_metric.name=properties/*/customMetrics/*}" + body: "custom_metric" + }; + option (google.api.method_signature) = "custom_metric,update_mask"; + } + + // Lists CustomMetrics on a property. + rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/customMetrics" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomMetric on a property. + rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/customMetrics/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomMetric. + rpc GetCustomMetric(GetCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/customMetrics/*}" + }; + option (google.api.method_signature) = "name"; + } } // Request message for GetAccount RPC. @@ -1433,3 +1648,357 @@ message SearchChangeHistoryEventsResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for GetMeasurementProtocolSecret RPC. +message GetMeasurementProtocolSecretRequest { + // Required. The name of the measurement protocol secret to lookup. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + // Note: Any type of stream (WebDataStream, IosAppDataStream, + // AndroidAppDataStream) may be a parent. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for CreateMeasurementProtocolSecret RPC +message CreateMeasurementProtocolSecretRequest { + // 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} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // Required. The measurement protocol secret to create. + MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteMeasurementProtocolSecret RPC +message DeleteMeasurementProtocolSecretRequest { + // 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. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for UpdateMeasurementProtocolSecret RPC +message UpdateMeasurementProtocolSecretRequest { + // Required. The measurement protocol secret to update. + MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsRequest { + // 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 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 10 resources will be returned. + // The maximum value is 10. Higher values will be coerced to the maximum. + int32 page_size = 2; + + // A page token, received from a previous `ListMeasurementProtocolSecrets` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListMeasurementProtocolSecrets` must match + // the call that provided the page token. + string page_token = 3; +} + +// Response message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsResponse { + // A list of secrets for the parent stream specified in the request. + repeated MeasurementProtocolSecret measurement_protocol_secrets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for GetGoogleSignalsSettings RPC +message GetGoogleSignalsSettingsRequest { + // Required. The name of the google signals settings to retrieve. + // Format: properties/{property}/googleSignalsSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" + } + ]; +} + +// Request message for UpdateGoogleSignalsSettings RPC +message UpdateGoogleSignalsSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + GoogleSignalsSettings google_signals_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // 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. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for CreateConversionEvent RPC +message CreateConversionEventRequest { + // Required. The conversion event to create. + ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the parent property where this conversion event will + // be created. Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for GetConversionEvent RPC +message GetConversionEventRequest { + // Required. The resource name of the conversion event to retrieve. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for DeleteConversionEvent RPC +message DeleteConversionEventRequest { + // Required. The resource name of the conversion event to delete. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for ListConversionEvents RPC +message ListConversionEventsRequest { + // Required. The resource name of the parent property. + // Example: 'properties/123' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListConversionEvents` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListConversionEvents` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListConversionEvents RPC. +message ListConversionEventsResponse { + // The requested conversion events + repeated ConversionEvent conversion_events = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for CreateCustomDimension RPC. +message CreateCustomDimensionRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // Required. The CustomDimension to create. + CustomDimension custom_dimension = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomDimension RPC. +message UpdateCustomDimensionRequest { + // The CustomDimension to update + CustomDimension custom_dimension = 1; + + // 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. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListCustomDimensions RPC. +message ListCustomDimensionsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListCustomDimensions` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomDimensions` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomDimensions RPC. +message ListCustomDimensionsResponse { + // List of CustomDimensions. + repeated CustomDimension custom_dimensions = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for ArchiveCustomDimension RPC. +message ArchiveCustomDimensionRequest { + // Required. The name of the CustomDimension to archive. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for GetCustomDimension RPC. +message GetCustomDimensionRequest { + // Required. The name of the CustomDimension to get. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for CreateCustomMetric RPC. +message CreateCustomMetricRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // Required. The CustomMetric to create. + CustomMetric custom_metric = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomMetric RPC. +message UpdateCustomMetricRequest { + // The CustomMetric to update + CustomMetric custom_metric = 1; + + // 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. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListCustomMetrics RPC. +message ListCustomMetricsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListCustomMetrics` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomMetrics` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomMetrics RPC. +message ListCustomMetricsResponse { + // List of CustomMetrics. + repeated CustomMetric custom_metrics = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for ArchiveCustomMetric RPC. +message ArchiveCustomMetricRequest { + // Required. The name of the CustomMetric to archive. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} + +// Request message for GetCustomMetric RPC. +message GetCustomMetricRequest { + // Required. The name of the CustomMetric to get. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index 568d7471..7b6af230 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -187,6 +187,50 @@ enum ChangeHistoryResourceType { // GoogleAdsLink resource GOOGLE_ADS_LINK = 7; + + // GoogleSignalsSettings resource + GOOGLE_SIGNALS_SETTINGS = 8; + + // ConversionEvent resource + CONVERSION_EVENT = 9; + + // MeasurementProtocolSecret resource + MEASUREMENT_PROTOCOL_SECRET = 10; + + // CustomDimension resource + CUSTOM_DIMENSION = 11; + + // CustomMetric resource + CUSTOM_METRIC = 12; +} + +// Status of the Google Signals settings (i.e., whether this feature has been +// enabled for the property). +enum GoogleSignalsState { + // Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to + // represent that the user has not made an explicit choice. + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + + // Google Signals is enabled. + GOOGLE_SIGNALS_ENABLED = 1; + + // Google Signals is disabled. + GOOGLE_SIGNALS_DISABLED = 2; +} + +// Consent field of the Google Signals settings (i.e., whether the user has +// consented to the Google Signals terms of service.) +enum GoogleSignalsConsent { + // Google Signals consent value defaults to + // GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as + // GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + + // Terms of service have been accepted + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + + // Terms of service have not been accepted + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; } // A resource message representing a Google Analytics account. @@ -392,11 +436,11 @@ message UserLink { pattern: "properties/{property}/userLinks/{user_link}" }; - // Example format: properties/1234/userLinks/5678 - string name = 1; + // Output only. Example format: properties/1234/userLinks/5678 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Email address of the user to link - string email_address = 2; + // Immutable. Email address of the user to link + string email_address = 2 [(google.api.field_behavior) = IMMUTABLE]; // Roles directly assigned to this user for this account or property. // @@ -563,7 +607,7 @@ message GoogleAdsLink { // Enable personalized advertising features with this integration. // Automatically publish my Google Analytics audience lists and Google // Analytics remarketing events/parameters to the linked Google Ads account. - // If this field is not set on create/update it will be defaulted to true. + // If this field is not set on create/update, it will be defaulted to true. google.protobuf.BoolValue ads_personalization_enabled = 5; // Output only. Email address of the user that created the link. @@ -650,6 +694,28 @@ message PropertySummary { string display_name = 2; } +// A secret value used for sending hits to Measurement Protocol. +message MeasurementProtocolSecret { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + pattern: "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + }; + + // Output only. Resource name of this secret. This secret may be a child of any type of + // stream. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name for this secret. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The measurement protocol secret value. Pass this value to the api_secret + // field of the Measurement Protocol API when sending hits to this + // secret's parent property. + string secret_value = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A set of changes within a Google Analytics account or its child properties // that resulted from the same cause. Common causes would be updates made in the // Google Analytics UI, changes from customer support, or automatic Google @@ -704,6 +770,21 @@ message ChangeHistoryChange { // A snapshot of a GoogleAdsLink resource in change history. GoogleAdsLink google_ads_link = 7; + + // A snapshot of a GoogleSignalsSettings resource in change history. + GoogleSignalsSettings google_signals_settings = 8; + + // A snapshot of a ConversionEvent resource in change history. + ConversionEvent conversion_event = 11; + + // A snapshot of a MeasurementProtocolSecret resource in change history. + MeasurementProtocolSecret measurement_protocol_secret = 12; + + // A snapshot of a CustomDimension resource in change history. + CustomDimension custom_dimension = 13; + + // A snapshot of a CustomMetric resource in change history. + CustomMetric custom_metric = 14; } } @@ -721,3 +802,199 @@ message ChangeHistoryChange { // deleted in this change, this field will be missing. ChangeHistoryResource resource_after_change = 4; } + +// A conversion event in a Google Analytics property. +message ConversionEvent { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + pattern: "properties/{property}/conversionEvents/{conversion_event}" + }; + + // Output only. Resource name of this conversion event. + // Format: properties/{property}/conversionEvents/{conversion_event} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The event name for this conversion event. + // Examples: 'click', 'purchase' + string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this conversion event was created in the property. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, this event can currently be deleted via DeleteConversionEvent. + bool is_deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Settings values for Google Signals. This is a singleton resource. +message GoogleSignalsSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" + pattern: "properties/{property}/googleSignalsSettings" + }; + + // Output only. Resource name of this setting. + // Format: properties/{property_id}/googleSignalsSettings + // Example: "properties/1000/googleSignalsSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Status of this setting. + GoogleSignalsState state = 3; + + // Output only. Terms of Service acceptance. + GoogleSignalsConsent consent = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A definition for a CustomDimension. +message CustomDimension { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + pattern: "properties/{property}/customDimensions" + }; + + // Valid values for the scope of this dimension. + enum DimensionScope { + // Scope unknown or not specified. + DIMENSION_SCOPE_UNSPECIFIED = 0; + + // Dimension scoped to an event. + EVENT = 1; + + // Dimension scoped to a user. + USER = 2; + } + + // Output only. Resource name for this CustomDimension resource. + // Format: properties/{property}/customDimensions/{customDimension} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging parameter name for this custom dimension. + // + // If this is a user-scoped dimension, then this is the user property name. + // If this is an event-scoped dimension, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore characters, starting with a + // letter. Max length of 24 characters for user-scoped dimensions, 40 + // characters for event-scoped dimensions. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom dimension as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The scope of this dimension. + DimensionScope scope = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If set to true, sets this dimension as NPA and excludes it from ads + // personalization. + // + // This is currently only supported by user-scoped custom dimensions. + bool disallow_ads_personalization = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A definition for a custom metric. +message CustomMetric { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + pattern: "properties/{property}/customMetrics" + }; + + // Possible types of representing the custom metric's value. + // + // Currency representation may change in the future, requiring a breaking API + // change. + enum MeasurementUnit { + // MeasurementUnit unspecified or missing. + MEASUREMENT_UNIT_UNSPECIFIED = 0; + + // This metric uses default units. + STANDARD = 1; + + // This metric measures a currency. + CURRENCY = 2; + + // This metric measures feet. + FEET = 3; + + // This metric measures meters. + METERS = 4; + + // This metric measures kilometers. + KILOMETERS = 5; + + // This metric measures miles. + MILES = 6; + + // This metric measures milliseconds. + MILLISECONDS = 7; + + // This metric measures seconds. + SECONDS = 8; + + // This metric measures minutes. + MINUTES = 9; + + // This metric measures hours. + HOURS = 10; + } + + // The scope of this metric. + enum MetricScope { + // Scope unknown or not specified. + METRIC_SCOPE_UNSPECIFIED = 0; + + // Metric scoped to an event. + EVENT = 1; + } + + // Output only. Resource name for this CustomMetric resource. + // Format: properties/{property}/customMetrics/{customMetric} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging name for this custom metric. + // + // If this is an event-scoped metric, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore charactes, starting with a + // letter. Max length of 40 characters for event-scoped metrics. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom metric as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. + // Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The type for the custom metric's value. + MeasurementUnit measurement_unit = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. The scope of this custom metric. + MetricScope scope = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; +}