diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index fe4023fbfb5f..1dc673006f7f 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -8076,6 +8076,707 @@ public final UnaryCallable getDataStreamCallab return stub.getDataStreamCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single Audience. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]");
+   *   Audience response = analyticsAdminServiceClient.getAudience(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Audience to get. Example format: + * properties/1234/audiences/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Audience getAudience(AudienceName name) { + GetAudienceRequest request = + GetAudienceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAudience(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single Audience. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString();
+   *   Audience response = analyticsAdminServiceClient.getAudience(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Audience to get. Example format: + * properties/1234/audiences/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Audience getAudience(String name) { + GetAudienceRequest request = GetAudienceRequest.newBuilder().setName(name).build(); + return getAudience(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single Audience. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetAudienceRequest request =
+   *       GetAudienceRequest.newBuilder()
+   *           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
+   *           .build();
+   *   Audience response = analyticsAdminServiceClient.getAudience(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 Audience getAudience(GetAudienceRequest request) { + return getAudienceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single Audience. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetAudienceRequest request =
+   *       GetAudienceRequest.newBuilder()
+   *           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getAudienceCallable().futureCall(request);
+   *   // Do something.
+   *   Audience response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAudienceCallable() { + return stub.getAudienceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Audiences on a property. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (Audience element : analyticsAdminServiceClient.listAudiences(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 ListAudiencesPagedResponse listAudiences(PropertyName parent) { + ListAudiencesRequest request = + ListAudiencesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAudiences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Audiences on a property. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   for (Audience element : analyticsAdminServiceClient.listAudiences(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 ListAudiencesPagedResponse listAudiences(String parent) { + ListAudiencesRequest request = ListAudiencesRequest.newBuilder().setParent(parent).build(); + return listAudiences(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Audiences on a property. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListAudiencesRequest request =
+   *       ListAudiencesRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Audience element : analyticsAdminServiceClient.listAudiences(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 ListAudiencesPagedResponse listAudiences(ListAudiencesRequest request) { + return listAudiencesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Audiences on a property. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListAudiencesRequest request =
+   *       ListAudiencesRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listAudiencesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Audience element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAudiencesPagedCallable() { + return stub.listAudiencesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Audiences on a property. Audiences created before 2020 may not be supported. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListAudiencesRequest request =
+   *       ListAudiencesRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAudiencesResponse response =
+   *         analyticsAdminServiceClient.listAudiencesCallable().call(request);
+   *     for (Audience element : response.getAudiencesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listAudiencesCallable() { + return stub.listAudiencesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Audience. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   Audience audience = Audience.newBuilder().build();
+   *   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param audience Required. The audience to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Audience createAudience(PropertyName parent, Audience audience) { + CreateAudienceRequest request = + CreateAudienceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAudience(audience) + .build(); + return createAudience(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Audience. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   Audience audience = Audience.newBuilder().build();
+   *   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param audience Required. The audience to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Audience createAudience(String parent, Audience audience) { + CreateAudienceRequest request = + CreateAudienceRequest.newBuilder().setParent(parent).setAudience(audience).build(); + return createAudience(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Audience. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateAudienceRequest request =
+   *       CreateAudienceRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setAudience(Audience.newBuilder().build())
+   *           .build();
+   *   Audience response = analyticsAdminServiceClient.createAudience(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 Audience createAudience(CreateAudienceRequest request) { + return createAudienceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an Audience. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateAudienceRequest request =
+   *       CreateAudienceRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setAudience(Audience.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.createAudienceCallable().futureCall(request);
+   *   // Do something.
+   *   Audience response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAudienceCallable() { + return stub.createAudienceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Audience on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   Audience audience = Audience.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Audience response = analyticsAdminServiceClient.updateAudience(audience, updateMask);
+   * }
+   * }
+ * + * @param audience Required. The audience to update. The audience's `name` field is used to + * identify the audience 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 Audience updateAudience(Audience audience, FieldMask updateMask) { + UpdateAudienceRequest request = + UpdateAudienceRequest.newBuilder().setAudience(audience).setUpdateMask(updateMask).build(); + return updateAudience(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Audience on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateAudienceRequest request =
+   *       UpdateAudienceRequest.newBuilder()
+   *           .setAudience(Audience.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Audience response = analyticsAdminServiceClient.updateAudience(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 Audience updateAudience(UpdateAudienceRequest request) { + return updateAudienceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an Audience on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateAudienceRequest request =
+   *       UpdateAudienceRequest.newBuilder()
+   *           .setAudience(Audience.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateAudienceCallable().futureCall(request);
+   *   // Do something.
+   *   Audience response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAudienceCallable() { + return stub.updateAudienceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives an Audience on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ArchiveAudienceRequest request =
+   *       ArchiveAudienceRequest.newBuilder()
+   *           .setName(PropertyName.of("[PROPERTY]").toString())
+   *           .build();
+   *   analyticsAdminServiceClient.archiveAudience(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 archiveAudience(ArchiveAudienceRequest request) { + archiveAudienceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives an Audience on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ArchiveAudienceRequest request =
+   *       ArchiveAudienceRequest.newBuilder()
+   *           .setName(PropertyName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.archiveAudienceCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable archiveAudienceCallable() { + return stub.archiveAudienceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a AttributionSettings singleton. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]");
+   *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the attribution settings to retrieve. Format: + * properties/{property}/attributionSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AttributionSettings getAttributionSettings(AttributionSettingsName name) { + GetAttributionSettingsRequest request = + GetAttributionSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAttributionSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a AttributionSettings singleton. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = AttributionSettingsName.of("[PROPERTY]").toString();
+   *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the attribution settings to retrieve. Format: + * properties/{property}/attributionSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AttributionSettings getAttributionSettings(String name) { + GetAttributionSettingsRequest request = + GetAttributionSettingsRequest.newBuilder().setName(name).build(); + return getAttributionSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a AttributionSettings singleton. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetAttributionSettingsRequest request =
+   *       GetAttributionSettingsRequest.newBuilder()
+   *           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(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 AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request) { + return getAttributionSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a AttributionSettings singleton. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetAttributionSettingsRequest request =
+   *       GetAttributionSettingsRequest.newBuilder()
+   *           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getAttributionSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   AttributionSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAttributionSettingsCallable() { + return stub.getAttributionSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates attribution settings on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AttributionSettings attributionSettings = AttributionSettings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AttributionSettings response =
+   *       analyticsAdminServiceClient.updateAttributionSettings(attributionSettings, updateMask);
+   * }
+   * }
+ * + * @param attributionSettings Required. The attribution 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 AttributionSettings updateAttributionSettings( + AttributionSettings attributionSettings, FieldMask updateMask) { + UpdateAttributionSettingsRequest request = + UpdateAttributionSettingsRequest.newBuilder() + .setAttributionSettings(attributionSettings) + .setUpdateMask(updateMask) + .build(); + return updateAttributionSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates attribution settings on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateAttributionSettingsRequest request =
+   *       UpdateAttributionSettingsRequest.newBuilder()
+   *           .setAttributionSettings(AttributionSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   AttributionSettings response = analyticsAdminServiceClient.updateAttributionSettings(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 AttributionSettings updateAttributionSettings( + UpdateAttributionSettingsRequest request) { + return updateAttributionSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates attribution settings on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateAttributionSettingsRequest request =
+   *       UpdateAttributionSettingsRequest.newBuilder()
+   *           .setAttributionSettings(AttributionSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateAttributionSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   AttributionSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateAttributionSettingsCallable() { + return stub.updateAttributionSettingsCallable(); + } + @Override public final void close() { stub.close(); @@ -9370,4 +10071,80 @@ protected ListDataStreamsFixedSizeCollection createCollection( return new ListDataStreamsFixedSizeCollection(pages, collectionSize); } } + + public static class ListAudiencesPagedResponse + extends AbstractPagedListResponse< + ListAudiencesRequest, + ListAudiencesResponse, + Audience, + ListAudiencesPage, + ListAudiencesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAudiencesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAudiencesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAudiencesPagedResponse(ListAudiencesPage page) { + super(page, ListAudiencesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAudiencesPage + extends AbstractPage< + ListAudiencesRequest, ListAudiencesResponse, Audience, ListAudiencesPage> { + + private ListAudiencesPage( + PageContext context, + ListAudiencesResponse response) { + super(context, response); + } + + private static ListAudiencesPage createEmptyPage() { + return new ListAudiencesPage(null, null); + } + + @Override + protected ListAudiencesPage createPage( + PageContext context, + ListAudiencesResponse response) { + return new ListAudiencesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAudiencesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAudiencesRequest, + ListAudiencesResponse, + Audience, + ListAudiencesPage, + ListAudiencesFixedSizeCollection> { + + private ListAudiencesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAudiencesFixedSizeCollection createEmptyCollection() { + return new ListAudiencesFixedSizeCollection(null, 0); + } + + @Override + protected ListAudiencesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAudiencesFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index e8fefe83f2ae..f7f375757515 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -565,6 +566,45 @@ public UnaryCallSettings getDataStreamSettings return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings(); } + /** Returns the object with the settings used for calls to getAudience. */ + public UnaryCallSettings getAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAudienceSettings(); + } + + /** Returns the object with the settings used for calls to listAudiences. */ + public PagedCallSettings + listAudiencesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAudiencesSettings(); + } + + /** Returns the object with the settings used for calls to createAudience. */ + public UnaryCallSettings createAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAudienceSettings(); + } + + /** Returns the object with the settings used for calls to updateAudience. */ + public UnaryCallSettings updateAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAudienceSettings(); + } + + /** Returns the object with the settings used for calls to archiveAudience. */ + public UnaryCallSettings archiveAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveAudienceSettings(); + } + + /** Returns the object with the settings used for calls to getAttributionSettings. */ + public UnaryCallSettings + getAttributionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAttributionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateAttributionSettings. */ + public UnaryCallSettings + updateAttributionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateAttributionSettingsSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -1162,6 +1202,45 @@ public UnaryCallSettings.Builder getDataStream return getStubSettingsBuilder().getDataStreamSettings(); } + /** Returns the builder for the settings used for calls to getAudience. */ + public UnaryCallSettings.Builder getAudienceSettings() { + return getStubSettingsBuilder().getAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to listAudiences. */ + public PagedCallSettings.Builder< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> + listAudiencesSettings() { + return getStubSettingsBuilder().listAudiencesSettings(); + } + + /** Returns the builder for the settings used for calls to createAudience. */ + public UnaryCallSettings.Builder createAudienceSettings() { + return getStubSettingsBuilder().createAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to updateAudience. */ + public UnaryCallSettings.Builder updateAudienceSettings() { + return getStubSettingsBuilder().updateAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to archiveAudience. */ + public UnaryCallSettings.Builder archiveAudienceSettings() { + return getStubSettingsBuilder().archiveAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to getAttributionSettings. */ + public UnaryCallSettings.Builder + getAttributionSettingsSettings() { + return getStubSettingsBuilder().getAttributionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateAttributionSettings. */ + public UnaryCallSettings.Builder + updateAttributionSettingsSettings() { + return getStubSettingsBuilder().updateAttributionSettingsSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 594112cdb494..9da3dc5c7953 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -16,6 +16,9 @@ "ApproveDisplayVideo360AdvertiserLinkProposal": { "methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"] }, + "ArchiveAudience": { + "methods": ["archiveAudience", "archiveAudienceCallable"] + }, "ArchiveCustomDimension": { "methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"] }, @@ -40,6 +43,9 @@ "CancelDisplayVideo360AdvertiserLinkProposal": { "methods": ["cancelDisplayVideo360AdvertiserLinkProposal", "cancelDisplayVideo360AdvertiserLinkProposalCallable"] }, + "CreateAudience": { + "methods": ["createAudience", "createAudience", "createAudience", "createAudienceCallable"] + }, "CreateConversionEvent": { "methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"] }, @@ -106,6 +112,12 @@ "GetAccount": { "methods": ["getAccount", "getAccount", "getAccount", "getAccountCallable"] }, + "GetAttributionSettings": { + "methods": ["getAttributionSettings", "getAttributionSettings", "getAttributionSettings", "getAttributionSettingsCallable"] + }, + "GetAudience": { + "methods": ["getAudience", "getAudience", "getAudience", "getAudienceCallable"] + }, "GetConversionEvent": { "methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"] }, @@ -151,6 +163,9 @@ "ListAccounts": { "methods": ["listAccounts", "listAccountsPagedCallable", "listAccountsCallable"] }, + "ListAudiences": { + "methods": ["listAudiences", "listAudiences", "listAudiences", "listAudiencesPagedCallable", "listAudiencesCallable"] + }, "ListConversionEvents": { "methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"] }, @@ -193,6 +208,12 @@ "UpdateAccount": { "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] }, + "UpdateAttributionSettings": { + "methods": ["updateAttributionSettings", "updateAttributionSettings", "updateAttributionSettingsCallable"] + }, + "UpdateAudience": { + "methods": ["updateAudience", "updateAudience", "updateAudienceCallable"] + }, "UpdateCustomDimension": { "methods": ["updateCustomDimension", "updateCustomDimension", "updateCustomDimensionCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java index 7a173f297731..b9de5d0c13ee 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Google Analytics Admin API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= AnalyticsAdminServiceClient ======================= * diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 7459e44e9372..26d7e7ad5312 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -37,8 +38,11 @@ import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; +import com.google.analytics.admin.v1alpha.ArchiveAudienceRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; +import com.google.analytics.admin.v1alpha.AttributionSettings; +import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; @@ -50,6 +54,7 @@ import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; @@ -80,6 +85,8 @@ import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetAudienceRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -100,6 +107,8 @@ import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAudiencesRequest; +import com.google.analytics.admin.v1alpha.ListAudiencesResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -129,6 +138,8 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -587,6 +598,41 @@ public UnaryCallable getDataStreamCallable() { throw new UnsupportedOperationException("Not implemented: getDataStreamCallable()"); } + public UnaryCallable getAudienceCallable() { + throw new UnsupportedOperationException("Not implemented: getAudienceCallable()"); + } + + public UnaryCallable + listAudiencesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAudiencesPagedCallable()"); + } + + public UnaryCallable listAudiencesCallable() { + throw new UnsupportedOperationException("Not implemented: listAudiencesCallable()"); + } + + public UnaryCallable createAudienceCallable() { + throw new UnsupportedOperationException("Not implemented: createAudienceCallable()"); + } + + public UnaryCallable updateAudienceCallable() { + throw new UnsupportedOperationException("Not implemented: updateAudienceCallable()"); + } + + public UnaryCallable archiveAudienceCallable() { + throw new UnsupportedOperationException("Not implemented: archiveAudienceCallable()"); + } + + public UnaryCallable + getAttributionSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getAttributionSettingsCallable()"); + } + + public UnaryCallable + updateAttributionSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: updateAttributionSettingsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index d2d87e5ff029..addcf64a2905 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -38,8 +39,11 @@ import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; +import com.google.analytics.admin.v1alpha.ArchiveAudienceRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; +import com.google.analytics.admin.v1alpha.AttributionSettings; +import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLink; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; @@ -53,6 +57,7 @@ import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; @@ -83,6 +88,8 @@ import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetAudienceRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -103,6 +110,8 @@ import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAudiencesRequest; +import com.google.analytics.admin.v1alpha.ListAudiencesResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -132,6 +141,8 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -386,6 +397,17 @@ public class AnalyticsAdminServiceStubSettings ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> listDataStreamsSettings; private final UnaryCallSettings getDataStreamSettings; + private final UnaryCallSettings getAudienceSettings; + private final PagedCallSettings< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> + listAudiencesSettings; + private final UnaryCallSettings createAudienceSettings; + private final UnaryCallSettings updateAudienceSettings; + private final UnaryCallSettings archiveAudienceSettings; + private final UnaryCallSettings + getAttributionSettingsSettings; + private final UnaryCallSettings + updateAttributionSettingsSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -1011,6 +1033,42 @@ public Iterable extractResources(ListDataStreamsResponse payload) { } }; + private static final PagedListDescriptor + LIST_AUDIENCES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAudiencesRequest injectToken(ListAudiencesRequest payload, String token) { + return ListAudiencesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAudiencesRequest injectPageSize(ListAudiencesRequest payload, int pageSize) { + return ListAudiencesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAudiencesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAudiencesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAudiencesResponse payload) { + return payload.getAudiencesList() == null + ? ImmutableList.of() + : payload.getAudiencesList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -1361,6 +1419,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> + LIST_AUDIENCES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAudiencesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_AUDIENCES_PAGE_STR_DESC, request, context); + return ListAudiencesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -1814,6 +1889,44 @@ public UnaryCallSettings getDataStreamSettings return getDataStreamSettings; } + /** Returns the object with the settings used for calls to getAudience. */ + public UnaryCallSettings getAudienceSettings() { + return getAudienceSettings; + } + + /** Returns the object with the settings used for calls to listAudiences. */ + public PagedCallSettings + listAudiencesSettings() { + return listAudiencesSettings; + } + + /** Returns the object with the settings used for calls to createAudience. */ + public UnaryCallSettings createAudienceSettings() { + return createAudienceSettings; + } + + /** Returns the object with the settings used for calls to updateAudience. */ + public UnaryCallSettings updateAudienceSettings() { + return updateAudienceSettings; + } + + /** Returns the object with the settings used for calls to archiveAudience. */ + public UnaryCallSettings archiveAudienceSettings() { + return archiveAudienceSettings; + } + + /** Returns the object with the settings used for calls to getAttributionSettings. */ + public UnaryCallSettings + getAttributionSettingsSettings() { + return getAttributionSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateAttributionSettings. */ + public UnaryCallSettings + updateAttributionSettingsSettings() { + return updateAttributionSettingsSettings; + } + public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -2010,6 +2123,13 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx updateDataStreamSettings = settingsBuilder.updateDataStreamSettings().build(); listDataStreamsSettings = settingsBuilder.listDataStreamsSettings().build(); getDataStreamSettings = settingsBuilder.getDataStreamSettings().build(); + getAudienceSettings = settingsBuilder.getAudienceSettings().build(); + listAudiencesSettings = settingsBuilder.listAudiencesSettings().build(); + createAudienceSettings = settingsBuilder.createAudienceSettings().build(); + updateAudienceSettings = settingsBuilder.updateAudienceSettings().build(); + archiveAudienceSettings = settingsBuilder.archiveAudienceSettings().build(); + getAttributionSettingsSettings = settingsBuilder.getAttributionSettingsSettings().build(); + updateAttributionSettingsSettings = settingsBuilder.updateAttributionSettingsSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -2195,6 +2315,17 @@ public static class Builder ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> listDataStreamsSettings; private final UnaryCallSettings.Builder getDataStreamSettings; + private final UnaryCallSettings.Builder getAudienceSettings; + private final PagedCallSettings.Builder< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> + listAudiencesSettings; + private final UnaryCallSettings.Builder createAudienceSettings; + private final UnaryCallSettings.Builder updateAudienceSettings; + private final UnaryCallSettings.Builder archiveAudienceSettings; + private final UnaryCallSettings.Builder + getAttributionSettingsSettings; + private final UnaryCallSettings.Builder + updateAttributionSettingsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -2320,6 +2451,13 @@ protected Builder(ClientContext clientContext) { updateDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listDataStreamsSettings = PagedCallSettings.newBuilder(LIST_DATA_STREAMS_PAGE_STR_FACT); getDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAudiencesSettings = PagedCallSettings.newBuilder(LIST_AUDIENCES_PAGE_STR_FACT); + createAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + archiveAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2393,7 +2531,14 @@ protected Builder(ClientContext clientContext) { deleteDataStreamSettings, updateDataStreamSettings, listDataStreamsSettings, - getDataStreamSettings); + getDataStreamSettings, + getAudienceSettings, + listAudiencesSettings, + createAudienceSettings, + updateAudienceSettings, + archiveAudienceSettings, + getAttributionSettingsSettings, + updateAttributionSettingsSettings); initDefaults(this); } @@ -2490,6 +2635,13 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateDataStreamSettings = settings.updateDataStreamSettings.toBuilder(); listDataStreamsSettings = settings.listDataStreamsSettings.toBuilder(); getDataStreamSettings = settings.getDataStreamSettings.toBuilder(); + getAudienceSettings = settings.getAudienceSettings.toBuilder(); + listAudiencesSettings = settings.listAudiencesSettings.toBuilder(); + createAudienceSettings = settings.createAudienceSettings.toBuilder(); + updateAudienceSettings = settings.updateAudienceSettings.toBuilder(); + archiveAudienceSettings = settings.archiveAudienceSettings.toBuilder(); + getAttributionSettingsSettings = settings.getAttributionSettingsSettings.toBuilder(); + updateAttributionSettingsSettings = settings.updateAttributionSettingsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2563,7 +2715,14 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteDataStreamSettings, updateDataStreamSettings, listDataStreamsSettings, - getDataStreamSettings); + getDataStreamSettings, + getAudienceSettings, + listAudiencesSettings, + createAudienceSettings, + updateAudienceSettings, + archiveAudienceSettings, + getAttributionSettingsSettings, + updateAttributionSettingsSettings); } private static Builder createDefault() { @@ -2948,6 +3107,41 @@ 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 + .getAudienceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAudiencesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAudienceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAudienceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .archiveAudienceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAttributionSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAttributionSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -3447,6 +3641,45 @@ public UnaryCallSettings.Builder getDataStream return getDataStreamSettings; } + /** Returns the builder for the settings used for calls to getAudience. */ + public UnaryCallSettings.Builder getAudienceSettings() { + return getAudienceSettings; + } + + /** Returns the builder for the settings used for calls to listAudiences. */ + public PagedCallSettings.Builder< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> + listAudiencesSettings() { + return listAudiencesSettings; + } + + /** Returns the builder for the settings used for calls to createAudience. */ + public UnaryCallSettings.Builder createAudienceSettings() { + return createAudienceSettings; + } + + /** Returns the builder for the settings used for calls to updateAudience. */ + public UnaryCallSettings.Builder updateAudienceSettings() { + return updateAudienceSettings; + } + + /** Returns the builder for the settings used for calls to archiveAudience. */ + public UnaryCallSettings.Builder archiveAudienceSettings() { + return archiveAudienceSettings; + } + + /** Returns the builder for the settings used for calls to getAttributionSettings. */ + public UnaryCallSettings.Builder + getAttributionSettingsSettings() { + return getAttributionSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateAttributionSettings. */ + public UnaryCallSettings.Builder + updateAttributionSettingsSettings() { + return updateAttributionSettingsSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 92a385b7b63d..bc08368b6adf 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -37,8 +38,11 @@ import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; +import com.google.analytics.admin.v1alpha.ArchiveAudienceRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; +import com.google.analytics.admin.v1alpha.AttributionSettings; +import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; @@ -50,6 +54,7 @@ import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; @@ -80,6 +85,8 @@ import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetAudienceRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -100,6 +107,8 @@ import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAudiencesRequest; +import com.google.analytics.admin.v1alpha.ListAudiencesResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -129,6 +138,8 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -1036,6 +1047,83 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) .build(); + private static final MethodDescriptor getAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") + .setRequestMarshaller(ProtoUtils.marshaller(GetAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAudiencesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAudiencesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAudiencesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAttributionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAttributionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAttributionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAttributionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -1197,6 +1285,17 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable listDataStreamsPagedCallable; private final UnaryCallable getDataStreamCallable; + private final UnaryCallable getAudienceCallable; + private final UnaryCallable listAudiencesCallable; + private final UnaryCallable + listAudiencesPagedCallable; + private final UnaryCallable createAudienceCallable; + private final UnaryCallable updateAudienceCallable; + private final UnaryCallable archiveAudienceCallable; + private final UnaryCallable + getAttributionSettingsCallable; + private final UnaryCallable + updateAttributionSettingsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -2021,6 +2120,80 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings getAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listAudiencesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAudiencesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings createAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("audience.name", String.valueOf(request.getAudience().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings archiveAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + getAttributionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAttributionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateAttributionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "attribution_settings.name", + String.valueOf(request.getAttributionSettings().getName())); + return params.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -2398,6 +2571,34 @@ protected GrpcAnalyticsAdminServiceStub( this.getDataStreamCallable = callableFactory.createUnaryCallable( getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); + this.getAudienceCallable = + callableFactory.createUnaryCallable( + getAudienceTransportSettings, settings.getAudienceSettings(), clientContext); + this.listAudiencesCallable = + callableFactory.createUnaryCallable( + listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); + this.listAudiencesPagedCallable = + callableFactory.createPagedCallable( + listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); + this.createAudienceCallable = + callableFactory.createUnaryCallable( + createAudienceTransportSettings, settings.createAudienceSettings(), clientContext); + this.updateAudienceCallable = + callableFactory.createUnaryCallable( + updateAudienceTransportSettings, settings.updateAudienceSettings(), clientContext); + this.archiveAudienceCallable = + callableFactory.createUnaryCallable( + archiveAudienceTransportSettings, settings.archiveAudienceSettings(), clientContext); + this.getAttributionSettingsCallable = + callableFactory.createUnaryCallable( + getAttributionSettingsTransportSettings, + settings.getAttributionSettingsSettings(), + clientContext); + this.updateAttributionSettingsCallable = + callableFactory.createUnaryCallable( + updateAttributionSettingsTransportSettings, + settings.updateAttributionSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -2901,6 +3102,49 @@ public UnaryCallable getDataStreamCallable() { return getDataStreamCallable; } + @Override + public UnaryCallable getAudienceCallable() { + return getAudienceCallable; + } + + @Override + public UnaryCallable listAudiencesCallable() { + return listAudiencesCallable; + } + + @Override + public UnaryCallable + listAudiencesPagedCallable() { + return listAudiencesPagedCallable; + } + + @Override + public UnaryCallable createAudienceCallable() { + return createAudienceCallable; + } + + @Override + public UnaryCallable updateAudienceCallable() { + return updateAudienceCallable; + } + + @Override + public UnaryCallable archiveAudienceCallable() { + return archiveAudienceCallable; + } + + @Override + public UnaryCallable + getAttributionSettingsCallable() { + return getAttributionSettingsCallable; + } + + @Override + public UnaryCallable + updateAttributionSettingsCallable() { + return updateAttributionSettingsCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index 06b153f7a698..c81316106a48 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -37,8 +38,11 @@ import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; +import com.google.analytics.admin.v1alpha.ArchiveAudienceRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; +import com.google.analytics.admin.v1alpha.AttributionSettings; +import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; @@ -50,6 +54,7 @@ import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; @@ -80,6 +85,8 @@ import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetAudienceRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -100,6 +107,8 @@ import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAudiencesRequest; +import com.google.analytics.admin.v1alpha.ListAudiencesResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -129,6 +138,8 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -2849,6 +2860,263 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor + getAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/audiences/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Audience.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAudiencesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=properties/*}/audiences", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAudiencesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=properties/*}/audiences", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("audience", request.getAudience())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Audience.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{audience.name=properties/*/audiences/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "audience.name", request.getAudience().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("audience", request.getAudience())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Audience.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + archiveAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/audiences/*}:archive", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAttributionSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/attributionSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttributionSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAttributionSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{attributionSettings.name=properties/*/attributionSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "attributionSettings.name", + request.getAttributionSettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("attributionSettings", request.getAttributionSettings())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttributionSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -3010,6 +3278,17 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub private final UnaryCallable listDataStreamsPagedCallable; private final UnaryCallable getDataStreamCallable; + private final UnaryCallable getAudienceCallable; + private final UnaryCallable listAudiencesCallable; + private final UnaryCallable + listAudiencesPagedCallable; + private final UnaryCallable createAudienceCallable; + private final UnaryCallable updateAudienceCallable; + private final UnaryCallable archiveAudienceCallable; + private final UnaryCallable + getAttributionSettingsCallable; + private final UnaryCallable + updateAttributionSettingsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -3514,6 +3793,44 @@ protected HttpJsonAnalyticsAdminServiceStub( .setMethodDescriptor(getDataStreamMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings getAudienceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAudienceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAudiencesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAudiencesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createAudienceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAudienceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateAudienceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAudienceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings archiveAudienceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(archiveAudienceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getAttributionSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAttributionSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAttributionSettingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -3891,6 +4208,34 @@ protected HttpJsonAnalyticsAdminServiceStub( this.getDataStreamCallable = callableFactory.createUnaryCallable( getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); + this.getAudienceCallable = + callableFactory.createUnaryCallable( + getAudienceTransportSettings, settings.getAudienceSettings(), clientContext); + this.listAudiencesCallable = + callableFactory.createUnaryCallable( + listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); + this.listAudiencesPagedCallable = + callableFactory.createPagedCallable( + listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); + this.createAudienceCallable = + callableFactory.createUnaryCallable( + createAudienceTransportSettings, settings.createAudienceSettings(), clientContext); + this.updateAudienceCallable = + callableFactory.createUnaryCallable( + updateAudienceTransportSettings, settings.updateAudienceSettings(), clientContext); + this.archiveAudienceCallable = + callableFactory.createUnaryCallable( + archiveAudienceTransportSettings, settings.archiveAudienceSettings(), clientContext); + this.getAttributionSettingsCallable = + callableFactory.createUnaryCallable( + getAttributionSettingsTransportSettings, + settings.getAttributionSettingsSettings(), + clientContext); + this.updateAttributionSettingsCallable = + callableFactory.createUnaryCallable( + updateAttributionSettingsTransportSettings, + settings.updateAttributionSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -3970,6 +4315,13 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateDataStreamMethodDescriptor); methodDescriptors.add(listDataStreamsMethodDescriptor); methodDescriptors.add(getDataStreamMethodDescriptor); + methodDescriptors.add(getAudienceMethodDescriptor); + methodDescriptors.add(listAudiencesMethodDescriptor); + methodDescriptors.add(createAudienceMethodDescriptor); + methodDescriptors.add(updateAudienceMethodDescriptor); + methodDescriptors.add(archiveAudienceMethodDescriptor); + methodDescriptors.add(getAttributionSettingsMethodDescriptor); + methodDescriptors.add(updateAttributionSettingsMethodDescriptor); return methodDescriptors; } @@ -4467,6 +4819,49 @@ public UnaryCallable getDataStreamCallable() { return getDataStreamCallable; } + @Override + public UnaryCallable getAudienceCallable() { + return getAudienceCallable; + } + + @Override + public UnaryCallable listAudiencesCallable() { + return listAudiencesCallable; + } + + @Override + public UnaryCallable + listAudiencesPagedCallable() { + return listAudiencesPagedCallable; + } + + @Override + public UnaryCallable createAudienceCallable() { + return createAudienceCallable; + } + + @Override + public UnaryCallable updateAudienceCallable() { + return updateAudienceCallable; + } + + @Override + public UnaryCallable archiveAudienceCallable() { + return archiveAudienceCallable; + } + + @Override + public UnaryCallable + getAttributionSettingsCallable() { + return getAttributionSettingsCallable; + } + + @Override + public UnaryCallable + updateAttributionSettingsCallable() { + return updateAttributionSettingsCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index fad2f9421f41..631287a7d604 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -514,6 +515,7 @@ public void getPropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -569,6 +571,7 @@ public void getPropertyTest2() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -686,6 +689,7 @@ public void createPropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -741,6 +745,7 @@ public void deletePropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -796,6 +801,7 @@ public void deletePropertyTest2() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -851,6 +857,7 @@ public void updatePropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -868,6 +875,7 @@ public void updatePropertyTest() throws Exception { Property property = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -911,6 +919,7 @@ public void updatePropertyExceptionTest() throws Exception { Property property = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -6161,4 +6170,565 @@ public void getDataStreamExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAudienceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + client.getAudience(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-2172/audiences/audience-2172"; + + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAudienceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-2172/audiences/audience-2172"; + client.getAudience(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAudiencesTest() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAudiencesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAudiences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAudiencesTest2() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "properties/propertie-2024"; + + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAudiencesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "properties/propertie-2024"; + client.listAudiences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); + + Audience actualResponse = client.createAudience(parent, audience); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAudienceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "properties/propertie-2024"; + Audience audience = Audience.newBuilder().build(); + + Audience actualResponse = client.createAudience(parent, audience); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAudienceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "properties/propertie-2024"; + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + Audience audience = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Audience actualResponse = client.updateAudience(audience, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAudienceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Audience audience = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAudience(audience, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveAudienceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .build(); + + client.archiveAudience(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void archiveAudienceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .build(); + client.archiveAudience(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + + AttributionSettings actualResponse = client.getAttributionSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttributionSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + client.getAttributionSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttributionSettingsTest2() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-492/attributionSettings"; + + AttributionSettings actualResponse = client.getAttributionSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAttributionSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-492/attributionSettings"; + client.getAttributionSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + AttributionSettings attributionSettings = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AttributionSettings actualResponse = + client.updateAttributionSettings(attributionSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAttributionSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AttributionSettings attributionSettings = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAttributionSettings(attributionSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index d43710b2e502..430c2bde9714 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -19,6 +19,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; 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.ListAudiencesPagedResponse; 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; @@ -461,6 +462,7 @@ public void getPropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -510,6 +512,7 @@ public void getPropertyTest2() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -618,6 +621,7 @@ public void createPropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -667,6 +671,7 @@ public void deletePropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -716,6 +721,7 @@ public void deletePropertyTest2() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -765,6 +771,7 @@ public void updatePropertyTest() throws Exception { Property expectedResponse = Property.newBuilder() .setName(PropertyName.of("[PROPERTY]").toString()) + .setPropertyType(PropertyType.forNumber(0)) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) .setParent("parent-995424086") @@ -5392,4 +5399,482 @@ public void getDataStreamExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAudienceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + client.getAudience(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAudienceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getAudience(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAudiencesTest() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAudiencesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAudiences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAudiencesTest2() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAudiencesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAudiences(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); + + Audience actualResponse = client.createAudience(parent, audience); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(audience, actualRequest.getAudience()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAudienceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Audience audience = Audience.newBuilder().build(); + + Audience actualResponse = client.createAudience(parent, audience); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(audience, actualRequest.getAudience()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAudienceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + Audience audience = Audience.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Audience actualResponse = client.updateAudience(audience, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAudienceRequest actualRequest = ((UpdateAudienceRequest) actualRequests.get(0)); + + Assert.assertEquals(audience, actualRequest.getAudience()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAudienceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + Audience audience = Audience.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAudience(audience, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveAudienceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .build(); + + client.archiveAudience(request); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveAudienceRequest actualRequest = ((ArchiveAudienceRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveAudienceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .build(); + client.archiveAudience(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + + AttributionSettings actualResponse = client.getAttributionSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttributionSettingsRequest actualRequest = + ((GetAttributionSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttributionSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + client.getAttributionSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAttributionSettingsTest2() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + AttributionSettings actualResponse = client.getAttributionSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAttributionSettingsRequest actualRequest = + ((GetAttributionSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAttributionSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getAttributionSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AttributionSettings actualResponse = + client.updateAttributionSettings(attributionSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAttributionSettingsRequest actualRequest = + ((UpdateAttributionSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(attributionSettings, actualRequest.getAttributionSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAttributionSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAttributionSettings(attributionSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 173423b1162a..03392905d73e 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -1575,4 +1575,151 @@ public void getDataStream( Exception.class.getName()))); } } + + @Override + public void getAudience(GetAudienceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Audience) { + requests.add(request); + responseObserver.onNext(((Audience) 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 GetAudience, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Audience.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAudiences( + ListAudiencesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAudiencesResponse) { + requests.add(request); + responseObserver.onNext(((ListAudiencesResponse) 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 ListAudiences, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAudiencesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAudience( + CreateAudienceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Audience) { + requests.add(request); + responseObserver.onNext(((Audience) 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 CreateAudience, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Audience.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAudience( + UpdateAudienceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Audience) { + requests.add(request); + responseObserver.onNext(((Audience) 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 UpdateAudience, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Audience.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void archiveAudience( + ArchiveAudienceRequest 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 ArchiveAudience, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAttributionSettings( + GetAttributionSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AttributionSettings) { + requests.add(request); + responseObserver.onNext(((AttributionSettings) 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 GetAttributionSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AttributionSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAttributionSettings( + UpdateAttributionSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AttributionSettings) { + requests.add(request); + responseObserver.onNext(((AttributionSettings) 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 UpdateAttributionSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AttributionSettings.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 03f354c60394..4ad5a9391671 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -3611,6 +3611,341 @@ private AnalyticsAdminServiceGrpc() {} return getGetDataStreamMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getGetAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAudience", + requestType = com.google.analytics.admin.v1alpha.GetAudienceRequest.class, + responseType = com.google.analytics.admin.v1alpha.Audience.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getGetAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getGetAudienceMethod; + if ((getGetAudienceMethod = AnalyticsAdminServiceGrpc.getGetAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAudienceMethod = AnalyticsAdminServiceGrpc.getGetAudienceMethod) == null) { + AnalyticsAdminServiceGrpc.getGetAudienceMethod = + getGetAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAudience")) + .build(); + } + } + } + return getGetAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + getListAudiencesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAudiences", + requestType = com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + getListAudiencesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + getListAudiencesMethod; + if ((getListAudiencesMethod = AnalyticsAdminServiceGrpc.getListAudiencesMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAudiencesMethod = AnalyticsAdminServiceGrpc.getListAudiencesMethod) == null) { + AnalyticsAdminServiceGrpc.getListAudiencesMethod = + getListAudiencesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAudiences")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAudiencesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAudiencesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAudiences")) + .build(); + } + } + } + return getListAudiencesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getCreateAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAudience", + requestType = com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, + responseType = com.google.analytics.admin.v1alpha.Audience.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getCreateAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getCreateAudienceMethod; + if ((getCreateAudienceMethod = AnalyticsAdminServiceGrpc.getCreateAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateAudienceMethod = AnalyticsAdminServiceGrpc.getCreateAudienceMethod) == null) { + AnalyticsAdminServiceGrpc.getCreateAudienceMethod = + getCreateAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAudience")) + .build(); + } + } + } + return getCreateAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getUpdateAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAudience", + requestType = com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, + responseType = com.google.analytics.admin.v1alpha.Audience.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getUpdateAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getUpdateAudienceMethod; + if ((getUpdateAudienceMethod = AnalyticsAdminServiceGrpc.getUpdateAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAudienceMethod = AnalyticsAdminServiceGrpc.getUpdateAudienceMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdateAudienceMethod = + getUpdateAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAudience")) + .build(); + } + } + } + return getUpdateAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, com.google.protobuf.Empty> + getArchiveAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveAudience", + requestType = com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, com.google.protobuf.Empty> + getArchiveAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, com.google.protobuf.Empty> + getArchiveAudienceMethod; + if ((getArchiveAudienceMethod = AnalyticsAdminServiceGrpc.getArchiveAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveAudienceMethod = AnalyticsAdminServiceGrpc.getArchiveAudienceMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveAudienceMethod = + getArchiveAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveAudience")) + .build(); + } + } + } + return getArchiveAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getGetAttributionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttributionSettings", + requestType = com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.AttributionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getGetAttributionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getGetAttributionSettingsMethod; + if ((getGetAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod = + getGetAttributionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAttributionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AttributionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetAttributionSettings")) + .build(); + } + } + } + return getGetAttributionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getUpdateAttributionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAttributionSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.AttributionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getUpdateAttributionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getUpdateAttributionSettingsMethod; + if ((getUpdateAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod = + getUpdateAttributionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAttributionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AttributionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateAttributionSettings")) + .build(); + } + } + } + return getUpdateAttributionSettingsMethod; + } + /** 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 = @@ -4777,6 +5112,109 @@ public void getDataStream( getGetDataStreamMethod(), responseObserver); } + /** + * + * + *

+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public void getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public void listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAudiencesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public void createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public void updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public void archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public void getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAttributionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public void updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAttributionSettingsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -5270,6 +5708,51 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetDataStreamRequest, com.google.analytics.admin.v1alpha.DataStream>( this, METHODID_GET_DATA_STREAM))) + .addMethod( + getGetAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>(this, METHODID_GET_AUDIENCE))) + .addMethod( + getListAudiencesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse>( + this, METHODID_LIST_AUDIENCES))) + .addMethod( + getCreateAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>(this, METHODID_CREATE_AUDIENCE))) + .addMethod( + getUpdateAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>(this, METHODID_UPDATE_AUDIENCE))) + .addMethod( + getArchiveAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, + com.google.protobuf.Empty>(this, METHODID_ARCHIVE_AUDIENCE))) + .addMethod( + getGetAttributionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings>( + this, METHODID_GET_ATTRIBUTION_SETTINGS))) + .addMethod( + getUpdateAttributionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings>( + this, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) .build(); } } @@ -6555,6 +7038,123 @@ public void getDataStream( request, responseObserver); } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public void getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public void listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAudiencesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public void createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public void updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public void archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public void getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public void updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -7591,6 +8191,99 @@ public com.google.analytics.admin.v1alpha.DataStream getDataStream( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataStreamMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAudiencesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttributionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); + } } /** @@ -8710,6 +9403,107 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Audience> + getAudience(com.google.analytics.admin.v1alpha.GetAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + listAudiences(com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAudiencesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Audience> + createAudience(com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Audience> + updateAudience(com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + archiveAudience(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AttributionSettings> + getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AttributionSettings> + updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -8783,6 +9577,13 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_UPDATE_DATA_STREAM = 68; private static final int METHODID_LIST_DATA_STREAMS = 69; private static final int METHODID_GET_DATA_STREAM = 70; + private static final int METHODID_GET_AUDIENCE = 71; + private static final int METHODID_LIST_AUDIENCES = 72; + private static final int METHODID_CREATE_AUDIENCE = 73; + private static final int METHODID_UPDATE_AUDIENCE = 74; + private static final int METHODID_ARCHIVE_AUDIENCE = 75; + private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 76; + private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 77; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -9265,6 +10066,48 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_AUDIENCE: + serviceImpl.getAudience( + (com.google.analytics.admin.v1alpha.GetAudienceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AUDIENCES: + serviceImpl.listAudiences( + (com.google.analytics.admin.v1alpha.ListAudiencesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAudiencesResponse>) + responseObserver); + break; + case METHODID_CREATE_AUDIENCE: + serviceImpl.createAudience( + (com.google.analytics.admin.v1alpha.CreateAudienceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_AUDIENCE: + serviceImpl.updateAudience( + (com.google.analytics.admin.v1alpha.UpdateAudienceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ARCHIVE_AUDIENCE: + serviceImpl.archiveAudience( + (com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ATTRIBUTION_SETTINGS: + serviceImpl.getAttributionSettings( + (com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ATTRIBUTION_SETTINGS: + serviceImpl.updateAttributionSettings( + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -9400,6 +10243,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateDataStreamMethod()) .addMethod(getListDataStreamsMethod()) .addMethod(getGetDataStreamMethod()) + .addMethod(getGetAudienceMethod()) + .addMethod(getListAudiencesMethod()) + .addMethod(getCreateAudienceMethod()) + .addMethod(getUpdateAudienceMethod()) + .addMethod(getArchiveAudienceMethod()) + .addMethod(getGetAttributionSettingsMethod()) + .addMethod(getUpdateAttributionSettingsMethod()) .build(); } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 1122f1ff0646..c4a5c7ad34ea 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -395,6 +395,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -406,751 +438,814 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/analytics/admin/v1alpha/analyti" + "cs_admin.proto\022\036google.analytics.admin.v" - + "1alpha\032.google/analytics/admin/v1alpha/r" - + "esources.proto\032\034google/api/annotations.p" - + "roto\032\027google/api/client.proto\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\032\033google/protobuf/empty.proto\032 " - + "google/protobuf/field_mask.proto\032\037google" - + "/protobuf/timestamp.proto\"P\n\021GetAccountR" - + "equest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyticsa" - + "dmin.googleapis.com/Account\"R\n\023ListAccou" - + "ntsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_to" - + "ken\030\002 \001(\t\022\024\n\014show_deleted\030\003 \001(\010\"j\n\024ListA" - + "ccountsResponse\0229\n\010accounts\030\001 \003(\0132\'.goog" - + "le.analytics.admin.v1alpha.Account\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"S\n\024DeleteAccountRequ" - + "est\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmi" - + "n.googleapis.com/Account\"\213\001\n\024UpdateAccou" - + "ntRequest\022=\n\007account\030\001 \001(\0132\'.google.anal" - + "ytics.admin.v1alpha.AccountB\003\340A\002\0224\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\"o\n\035ProvisionAccountTicketRequest\022" - + "8\n\007account\030\001 \001(\0132\'.google.analytics.admi" - + "n.v1alpha.Account\022\024\n\014redirect_uri\030\002 \001(\t\"" - + ";\n\036ProvisionAccountTicketResponse\022\031\n\021acc" - + "ount_ticket_id\030\001 \001(\t\"R\n\022GetPropertyReque" - + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin" - + ".googleapis.com/Property\"i\n\025ListProperti" - + "esRequest\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_de" - + "leted\030\004 \001(\010\"o\n\026ListPropertiesResponse\022<\n" - + "\nproperties\030\001 \003(\0132(.google.analytics.adm" - + "in.v1alpha.Property\022\027\n\017next_page_token\030\002" - + " \001(\t\"\216\001\n\025UpdatePropertyRequest\022?\n\010proper" - + "ty\030\001 \001(\0132(.google.analytics.admin.v1alph" - + "a.PropertyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\"X\n\025CreateP" - + "ropertyRequest\022?\n\010property\030\001 \001(\0132(.googl" - + "e.analytics.admin.v1alpha.PropertyB\003\340A\002\"" - + "U\n\025DeletePropertyRequest\022<\n\004name\030\001 \001(\tB." - + "\340A\002\372A(\n&analyticsadmin.googleapis.com/Pr" - + "operty\"R\n\022GetUserLinkRequest\022<\n\004name\030\001 \001" - + "(\tB.\340A\002\372A(\n&analyticsadmin.googleapis.co" - + "m/UserLink\"\231\001\n\030BatchGetUserLinksRequest\022" - + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin." - + "googleapis.com/UserLink\022=\n\005names\030\002 \003(\tB." - + "\340A\002\372A(\n&analyticsadmin.googleapis.com/Us" - + "erLink\"Y\n\031BatchGetUserLinksResponse\022<\n\nu" - + "ser_links\030\001 \003(\0132(.google.analytics.admin" - + ".v1alpha.UserLink\"}\n\024ListUserLinksReques" - + "t\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmi" - + "n.googleapis.com/UserLink\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025ListUserLink" - + "sResponse\022<\n\nuser_links\030\001 \003(\0132(.google.a" - + "nalytics.admin.v1alpha.UserLink\022\027\n\017next_" - + "page_token\030\002 \001(\t\"~\n\025AuditUserLinksReques" - + "t\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmi" - + "n.googleapis.com/UserLink\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026AuditUserLin" - + "ksResponse\022A\n\nuser_links\030\001 \003(\0132-.google." - + "analytics.admin.v1alpha.AuditUserLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\267\001\n\025CreateUserLin" - + "kRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyt" - + "icsadmin.googleapis.com/UserLink\022\034\n\017noti" - + "fy_new_user\030\002 \001(\010B\003\340A\001\022@\n\tuser_link\030\003 \001(" - + "\0132(.google.analytics.admin.v1alpha.UserL" - + "inkB\003\340A\002\"\312\001\n\033BatchCreateUserLinksRequest" - + "\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin" - + ".googleapis.com/UserLink\022\035\n\020notify_new_u" - + "sers\030\002 \001(\010B\003\340A\001\022L\n\010requests\030\003 \003(\01325.goog" - + "le.analytics.admin.v1alpha.CreateUserLin" - + "kRequestB\003\340A\002\"\\\n\034BatchCreateUserLinksRes" - + "ponse\022<\n\nuser_links\030\001 \003(\0132(.google.analy" - + "tics.admin.v1alpha.UserLink\"Y\n\025UpdateUse" - + "rLinkRequest\022@\n\tuser_link\030\001 \001(\0132(.google" - + ".analytics.admin.v1alpha.UserLinkB\003\340A\002\"\253" - + "\001\n\033BatchUpdateUserLinksRequest\022>\n\006parent" - + "\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleapi" - + "s.com/UserLink\022L\n\010requests\030\002 \003(\01325.googl" - + "e.analytics.admin.v1alpha.UpdateUserLink" - + "RequestB\003\340A\002\"\\\n\034BatchUpdateUserLinksResp" - + "onse\022<\n\nuser_links\030\001 \003(\0132(.google.analyt" - + "ics.admin.v1alpha.UserLink\"U\n\025DeleteUser" - + "LinkRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analy" - + "ticsadmin.googleapis.com/UserLink\"\253\001\n\033Ba" - + "tchDeleteUserLinksRequest\022>\n\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com" - + "/UserLink\022L\n\010requests\030\002 \003(\01325.google.ana" - + "lytics.admin.v1alpha.DeleteUserLinkReque" - + "stB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequest\022B\n" - + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.go" - + "ogleapis.com/FirebaseLink\022H\n\rfirebase_li" - + "nk\030\002 \001(\0132,.google.analytics.admin.v1alph" - + "a.FirebaseLinkB\003\340A\002\"]\n\031DeleteFirebaseLin" - + "kRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analytic" - + "sadmin.googleapis.com/FirebaseLink\"\205\001\n\030L" - + "istFirebaseLinksRequest\022B\n\006parent\030\001 \001(\tB" - + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/F" - + "irebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"z\n\031ListFirebaseLinksResponse\022" - + "D\n\016firebase_links\030\001 \003(\0132,.google.analyti" - + "cs.admin.v1alpha.FirebaseLink\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTagReques" - + "t\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin." - + "googleapis.com/GlobalSiteTag\"\256\001\n\032CreateG" - + "oogleAdsLinkRequest\022C\n\006parent\030\001 \001(\tB3\340A\002" - + "\372A-\022+analyticsadmin.googleapis.com/Googl" - + "eAdsLink\022K\n\017google_ads_link\030\002 \001(\0132-.goog" - + "le.analytics.admin.v1alpha.GoogleAdsLink" - + "B\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequest\022F\n\017" - + "google_ads_link\030\001 \001(\0132-.google.analytics" - + ".admin.v1alpha.GoogleAdsLink\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A\n\004name" - + "\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.googleapi" - + "s.com/GoogleAdsLink\"\207\001\n\031ListGoogleAdsLin" - + "ksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analy" - + "ticsadmin.googleapis.com/GoogleAdsLink\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n" - + "\032ListGoogleAdsLinksResponse\022G\n\020google_ad" - + "s_links\030\001 \003(\0132-.google.analytics.admin.v" - + "1alpha.GoogleAdsLink\022\027\n\017next_page_token\030" - + "\002 \001(\t\"h\n\035GetDataSharingSettingsRequest\022G" - + "\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmin.goo" - + "gleapis.com/DataSharingSettings\"D\n\033ListA" - + "ccountSummariesRequest\022\021\n\tpage_size\030\001 \001(" - + "\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccountSum" - + "mariesResponse\022I\n\021account_summaries\030\001 \003(" - + "\0132..google.analytics.admin.v1alpha.Accou" - + "ntSummary\022\027\n\017next_page_token\030\002 \001(\t\"\206\001\n$A" - + "cknowledgeUserDataCollectionRequest\022@\n\010p" - + "roperty\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.go" - + "ogleapis.com/Property\022\034\n\017acknowledgement" - + "\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUserDataCollec" - + "tionResponse\"\203\004\n SearchChangeHistoryEven" - + "tsRequest\022>\n\007account\030\001 \001(\tB-\340A\002\372A\'\n%anal" - + "yticsadmin.googleapis.com/Account\022@\n\010pro" - + "perty\030\002 \001(\tB.\340A\001\372A(\n&analyticsadmin.goog" - + "leapis.com/Property\022U\n\rresource_type\030\003 \003" - + "(\01629.google.analytics.admin.v1alpha.Chan" - + "geHistoryResourceTypeB\003\340A\001\022?\n\006action\030\004 \003" - + "(\0162*.google.analytics.admin.v1alpha.Acti" - + "onTypeB\003\340A\001\022\030\n\013actor_email\030\005 \003(\tB\003\340A\001\022=\n" - + "\024earliest_change_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\001\022;\n\022latest_change_ti" - + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\npage_token\030" - + "\t \001(\tB\003\340A\001\"\217\001\n!SearchChangeHistoryEvents" - + "Response\022Q\n\025change_history_events\030\001 \003(\0132" - + "2.google.analytics.admin.v1alpha.ChangeH" - + "istoryEvent\022\027\n\017next_page_token\030\002 \001(\t\"t\n#" - + "GetMeasurementProtocolSecretRequest\022M\n\004n" - + "ame\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin.google" - + "apis.com/MeasurementProtocolSecret\"\336\001\n&C" - + "reateMeasurementProtocolSecretRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmin.go" - + "ogleapis.com/MeasurementProtocolSecret\022c" - + "\n\033measurement_protocol_secret\030\002 \001(\01329.go" - + "ogle.analytics.admin.v1alpha.Measurement" - + "ProtocolSecretB\003\340A\002\"w\n&DeleteMeasurement" - + "ProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340A\002" - + "\372A9\n7analyticsadmin.googleapis.com/Measu" - + "rementProtocolSecret\"\276\001\n&UpdateMeasureme" - + "ntProtocolSecretRequest\022c\n\033measurement_p" - + "rotocol_secret\030\001 \001(\01329.google.analytics." - + "admin.v1alpha.MeasurementProtocolSecretB" - + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"\237\001\n%ListMeasurementProtoco" - + "lSecretsRequest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\022" - + "7analyticsadmin.googleapis.com/Measureme" - + "ntProtocolSecret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"\242\001\n&ListMeasurementProto" - + "colSecretsResponse\022_\n\034measurement_protoc" - + "ol_secrets\030\001 \003(\01329.google.analytics.admi" - + "n.v1alpha.MeasurementProtocolSecret\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"l\n\037GetGoogleSignals" - + "SettingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3a" - + "nalyticsadmin.googleapis.com/GoogleSigna" - + "lsSettings\"\267\001\n\"UpdateGoogleSignalsSettin" - + "gsRequest\022[\n\027google_signals_settings\030\001 \001" - + "(\01325.google.analytics.admin.v1alpha.Goog" - + "leSignalsSettingsB\003\340A\002\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\265\001\n" - + "\034CreateConversionEventRequest\022N\n\020convers" - + "ion_event\030\001 \001(\0132/.google.analytics.admin" - + ".v1alpha.ConversionEventB\003\340A\002\022E\n\006parent\030" - + "\002 \001(\tB5\340A\002\372A/\022-analyticsadmin.googleapis" - + ".com/ConversionEvent\"`\n\031GetConversionEve" - + "ntRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyti" - + "csadmin.googleapis.com/ConversionEvent\"c" - + "\n\034DeleteConversionEventRequest\022C\n\004name\030\001" - + " \001(\tB5\340A\002\372A/\n-analyticsadmin.googleapis." - + "com/ConversionEvent\"\213\001\n\033ListConversionEv" - + "entsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-ana" - + "lyticsadmin.googleapis.com/ConversionEve" - + "nt\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"\203\001\n\034ListConversionEventsResponse\022J\n\021co" - + "nversion_events\030\001 \003(\0132/.google.analytics" - + ".admin.v1alpha.ConversionEvent\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"|\n\'GetDisplayVideo360Adv" - + "ertiserLinkRequest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=" - + "\n;analyticsadmin.googleapis.com/DisplayV" - + "ideo360AdvertiserLink\"\247\001\n)ListDisplayVid" - + "eo360AdvertiserLinksRequest\022S\n\006parent\030\001 " - + "\001(\tBC\340A\002\372A=\022;analyticsadmin.googleapis.c" - + "om/DisplayVideo360AdvertiserLink\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260\001\n*List" - + "DisplayVideo360AdvertiserLinksResponse\022i" - + "\n\"display_video_360_advertiser_links\030\001 \003" - + "(\0132=.google.analytics.admin.v1alpha.Disp" - + "layVideo360AdvertiserLink\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\360\001\n*CreateDisplayVideo360Adve" - + "rtiserLinkRequest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A" - + "=\022;analyticsadmin.googleapis.com/Display" - + "Video360AdvertiserLink\022m\n!display_video_" - + "360_advertiser_link\030\002 \001(\0132=.google.analy" - + "tics.admin.v1alpha.DisplayVideo360Advert" - + "iserLinkB\003\340A\002\"\177\n*DeleteDisplayVideo360Ad" - + "vertiserLinkRequest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A" - + "=\n;analyticsadmin.googleapis.com/Display" - + "Video360AdvertiserLink\"\314\001\n*UpdateDisplay" - + "Video360AdvertiserLinkRequest\022h\n!display" - + "_video_360_advertiser_link\030\001 \001(\0132=.googl" - + "e.analytics.admin.v1alpha.DisplayVideo36" - + "0AdvertiserLink\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\"\214\001\n/GetDis" - + "playVideo360AdvertiserLinkProposalReques" - + "t\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin." - + "googleapis.com/DisplayVideo360Advertiser" - + "LinkProposal\"\267\001\n1ListDisplayVideo360Adve" - + "rtiserLinkProposalsRequest\022[\n\006parent\030\001 \001" - + "(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis.co" - + "m/DisplayVideo360AdvertiserLinkProposal\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\311" - + "\001\n2ListDisplayVideo360AdvertiserLinkProp" - + "osalsResponse\022z\n+display_video_360_adver" - + "tiser_link_proposals\030\001 \003(\0132E.google.anal" - + "ytics.admin.v1alpha.DisplayVideo360Adver" - + "tiserLinkProposal\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\221\002\n2CreateDisplayVideo360AdvertiserLi" - + "nkProposalRequest\022[\n\006parent\030\001 \001(\tBK\340A\002\372A" - + "E\022Canalyticsadmin.googleapis.com/Display" - + "Video360AdvertiserLinkProposal\022~\n*displa" - + "y_video_360_advertiser_link_proposal\030\002 \001" - + "(\0132E.google.analytics.admin.v1alpha.Disp" - + "layVideo360AdvertiserLinkProposalB\003\340A\002\"\217" - + "\001\n2DeleteDisplayVideo360AdvertiserLinkPr" - + "oposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCana" - + "lyticsadmin.googleapis.com/DisplayVideo3" - + "60AdvertiserLinkProposal\"\220\001\n3ApproveDisp" - + "layVideo360AdvertiserLinkProposalRequest" - + "\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin.g" - + "oogleapis.com/DisplayVideo360AdvertiserL" - + "inkProposal\"\240\001\n4ApproveDisplayVideo360Ad" - + "vertiserLinkProposalResponse\022h\n!display_" - + "video_360_advertiser_link\030\001 \001(\0132=.google" - + ".analytics.admin.v1alpha.DisplayVideo360" - + "AdvertiserLink\"\217\001\n2CancelDisplayVideo360" - + "AdvertiserLinkProposalRequest\022Y\n\004name\030\001 " - + "\001(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.c" - + "om/DisplayVideo360AdvertiserLinkProposal" - + "\"\265\001\n\034CreateCustomDimensionRequest\022E\n\006par" - + "ent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.google" - + "apis.com/CustomDimension\022N\n\020custom_dimen" - + "sion\030\002 \001(\0132/.google.analytics.admin.v1al" - + "pha.CustomDimensionB\003\340A\002\"\237\001\n\034UpdateCusto" - + "mDimensionRequest\022I\n\020custom_dimension\030\001 " - + "\001(\0132/.google.analytics.admin.v1alpha.Cus" - + "tomDimension\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033ListCusto" - + "mDimensionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372" - + "A/\022-analyticsadmin.googleapis.com/Custom" - + "Dimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"\203\001\n\034ListCustomDimensionsRespons" - + "e\022J\n\021custom_dimensions\030\001 \003(\0132/.google.an" - + "alytics.admin.v1alpha.CustomDimension\022\027\n" - + "\017next_page_token\030\002 \001(\t\"d\n\035ArchiveCustomD" - + "imensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-a" - + "nalyticsadmin.googleapis.com/CustomDimen" - + "sion\"`\n\031GetCustomDimensionRequest\022C\n\004nam" - + "e\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googleap" - + "is.com/CustomDimension\"\251\001\n\031CreateCustomM" - + "etricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*an" - + "alyticsadmin.googleapis.com/CustomMetric" - + "\022H\n\rcustom_metric\030\002 \001(\0132,.google.analyti" - + "cs.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n\031U" - + "pdateCustomMetricRequest\022C\n\rcustom_metri" - + "c\030\001 \001(\0132,.google.analytics.admin.v1alpha" - + ".CustomMetric\0224\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030ListCust" - + "omMetricsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A," - + "\022*analyticsadmin.googleapis.com/CustomMe" - + "tric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"z\n\031ListCustomMetricsResponse\022D\n\016cust" - + "om_metrics\030\001 \003(\0132,.google.analytics.admi" - + "n.v1alpha.CustomMetric\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"^\n\032ArchiveCustomMetricRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goog" - + "leapis.com/CustomMetric\"Z\n\026GetCustomMetr" - + "icRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyti" - + "csadmin.googleapis.com/CustomMetric\"l\n\037G" - + "etDataRetentionSettingsRequest\022I\n\004name\030\001" - + " \001(\tB;\340A\002\372A5\n3analyticsadmin.googleapis." - + "com/DataRetentionSettings\"\267\001\n\"UpdateData" - + "RetentionSettingsRequest\022[\n\027data_retenti" - + "on_settings\030\001 \001(\01325.google.analytics.adm" - + "in.v1alpha.DataRetentionSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\002\"\241\001\n\027CreateDataStreamRequest\022" - + "@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin." - + "googleapis.com/DataStream\022D\n\013data_stream" - + "\030\002 \001(\0132*.google.analytics.admin.v1alpha." - + "DataStreamB\003\340A\002\"Y\n\027DeleteDataStreamReque" - + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin" - + ".googleapis.com/DataStream\"\220\001\n\027UpdateDat" - + "aStreamRequest\022?\n\013data_stream\030\001 \001(\0132*.go" - + "ogle.analytics.admin.v1alpha.DataStream\022" + + "1alpha\032-google/analytics/admin/v1alpha/a" + + "udience.proto\032.google/analytics/admin/v1" + + "alpha/resources.proto\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032\033google/protobuf/empty." + + "proto\032 google/protobuf/field_mask.proto\032" + + "\037google/protobuf/timestamp.proto\"P\n\021GetA" + + "ccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%ana" + + "lyticsadmin.googleapis.com/Account\"R\n\023Li" + + "stAccountsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\n" + + "page_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 \001(\010\"j" + + "\n\024ListAccountsResponse\0229\n\010accounts\030\001 \003(\013" + + "2\'.google.analytics.admin.v1alpha.Accoun" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024DeleteAcco" + + "untRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyt" + + "icsadmin.googleapis.com/Account\"\213\001\n\024Upda" + + "teAccountRequest\022=\n\007account\030\001 \001(\0132\'.goog" + + "le.analytics.admin.v1alpha.AccountB\003\340A\002\022" + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"\201\001\n\026ListDataStreamsRequest" - + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin" - + ".googleapis.com/DataStream\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListDataStr" - + "eamsResponse\022@\n\014data_streams\030\001 \003(\0132*.goo" - + "gle.analytics.admin.v1alpha.DataStream\022\027" - + "\n\017next_page_token\030\002 \001(\t\"V\n\024GetDataStream" - + "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analytics" - + "admin.googleapis.com/DataStream2\312\200\001\n\025Ana" - + "lyticsAdminService\022\223\001\n\nGetAccount\0221.goog" - + "le.analytics.admin.v1alpha.GetAccountReq" - + "uest\032\'.google.analytics.admin.v1alpha.Ac" - + "count\")\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*" - + "}\332A\004name\022\224\001\n\014ListAccounts\0223.google.analy" - + "tics.admin.v1alpha.ListAccountsRequest\0324" - + ".google.analytics.admin.v1alpha.ListAcco" - + "untsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022" - + "\210\001\n\rDeleteAccount\0224.google.analytics.adm" - + "in.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.g" - + "oogle.analytics.admin.v1alpha.UpdateAcco" - + "untRequest\032\'.google.analytics.admin.v1al" - + "pha.Account\"I\202\323\344\223\002-2\"/v1alpha/{account.n" - + "ame=accounts/*}:\007account\332A\023account,updat" - + "e_mask\022\314\001\n\026ProvisionAccountTicket\022=.goog" - + "le.analytics.admin.v1alpha.ProvisionAcco" - + "untTicketRequest\032>.google.analytics.admi" - + "n.v1alpha.ProvisionAccountTicketResponse" - + "\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisionAcc" - + "ountTicket:\001*\022\264\001\n\024ListAccountSummaries\022;" - + ".google.analytics.admin.v1alpha.ListAcco" - + "untSummariesRequest\032<.google.analytics.a" - + "dmin.v1alpha.ListAccountSummariesRespons" - + "e\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230\001\n" - + "\013GetProperty\0222.google.analytics.admin.v1" - + "alpha.GetPropertyRequest\032(.google.analyt" - + "ics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034/v1a" - + "lpha/{name=properties/*}\332A\004name\022\234\001\n\016List" - + "Properties\0225.google.analytics.admin.v1al" - + "pha.ListPropertiesRequest\0326.google.analy" - + "tics.admin.v1alpha.ListPropertiesRespons" - + "e\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016Creat" - + "eProperty\0225.google.analytics.admin.v1alp" - + "ha.CreatePropertyRequest\032(.google.analyt" - + "ics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1a" - + "lpha/properties:\010property\332A\010property\022\236\001\n" - + "\016DeleteProperty\0225.google.analytics.admin" - + ".v1alpha.DeletePropertyRequest\032(.google." - + "analytics.admin.v1alpha.Property\"+\202\323\344\223\002\036" - + "*\034/v1alpha/{name=properties/*}\332A\004name\022\301\001" - + "\n\016UpdateProperty\0225.google.analytics.admi" - + "n.v1alpha.UpdatePropertyRequest\032(.google" - + ".analytics.admin.v1alpha.Property\"N\202\323\344\223\002" - + "12%/v1alpha/{property.name=properties/*}" - + ":\010property\332A\024property,update_mask\022\316\001\n\013Ge" - + "tUserLink\0222.google.analytics.admin.v1alp" - + "ha.GetUserLinkRequest\032(.google.analytics" - + ".admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1alph" - + "a/{name=accounts/*/userLinks/*}Z*\022(/v1al" - + "pha/{name=properties/*/userLinks/*}\332A\004na" - + "me\022\366\001\n\021BatchGetUserLinks\0228.google.analyt" - + "ics.admin.v1alpha.BatchGetUserLinksReque" - + "st\0329.google.analytics.admin.v1alpha.Batc" - + "hGetUserLinksResponse\"l\202\323\344\223\002f\022//v1alpha/" - + "{parent=accounts/*}/userLinks:batchGetZ3" - + "\0221/v1alpha/{parent=properties/*}/userLin" - + "ks:batchGet\022\341\001\n\rListUserLinks\0224.google.a" - + "nalytics.admin.v1alpha.ListUserLinksRequ" - + "est\0325.google.analytics.admin.v1alpha.Lis" - + "tUserLinksResponse\"c\202\323\344\223\002T\022&/v1alpha/{pa" - + "rent=accounts/*}/userLinksZ*\022(/v1alpha/{" - + "parent=properties/*}/userLinks\332A\006parent\022" - + "\355\001\n\016AuditUserLinks\0225.google.analytics.ad" - + "min.v1alpha.AuditUserLinksRequest\0326.goog" - + "le.analytics.admin.v1alpha.AuditUserLink" - + "sResponse\"l\202\323\344\223\002f\",/v1alpha/{parent=acco" - + "unts/*}/userLinks:audit:\001*Z3\"./v1alpha/{" - + "parent=properties/*}/userLinks:audit:\001*\022" - + "\367\001\n\016CreateUserLink\0225.google.analytics.ad" - + "min.v1alpha.CreateUserLinkRequest\032(.goog" - + "le.analytics.admin.v1alpha.UserLink\"\203\001\202\323", - "\344\223\002j\"&/v1alpha/{parent=accounts/*}/userL" - + "inks:\tuser_linkZ5\"(/v1alpha/{parent=prop" - + "erties/*}/userLinks:\tuser_link\332A\020parent," - + "user_link\022\213\002\n\024BatchCreateUserLinks\022;.goo" - + "gle.analytics.admin.v1alpha.BatchCreateU" - + "serLinksRequest\032<.google.analytics.admin" - + ".v1alpha.BatchCreateUserLinksResponse\"x\202" - + "\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/user" - + "Links:batchCreate:\001*Z9\"4/v1alpha/{parent" - + "=properties/*}/userLinks:batchCreate:\001*\022" - + "\204\002\n\016UpdateUserLink\0225.google.analytics.ad" - + "min.v1alpha.UpdateUserLinkRequest\032(.goog" - + "le.analytics.admin.v1alpha.UserLink\"\220\001\202\323" - + "\344\223\002~20/v1alpha/{user_link.name=accounts/" - + "*/userLinks/*}:\tuser_linkZ?22/v1alpha/{u" - + "ser_link.name=properties/*/userLinks/*}:" - + "\tuser_link\332A\tuser_link\022\213\002\n\024BatchUpdateUs" - + "erLinks\022;.google.analytics.admin.v1alpha" - + ".BatchUpdateUserLinksRequest\032<.google.an" - + "alytics.admin.v1alpha.BatchUpdateUserLin" - + "ksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=acc" - + "ounts/*}/userLinks:batchUpdate:\001*Z9\"4/v1" - + "alpha/{parent=properties/*}/userLinks:ba" - + "tchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225.google" - + ".analytics.admin.v1alpha.DeleteUserLinkR" - + "equest\032\026.google.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;.goo" - + "gle.analytics.admin.v1alpha.BatchDeleteU" - + "serLinksRequest\032\026.google.protobuf.Empty\"" + + "ieldMaskB\003\340A\002\"o\n\035ProvisionAccountTicketR" + + "equest\0228\n\007account\030\001 \001(\0132\'.google.analyti" + + "cs.admin.v1alpha.Account\022\024\n\014redirect_uri" + + "\030\002 \001(\t\";\n\036ProvisionAccountTicketResponse" + + "\022\031\n\021account_ticket_id\030\001 \001(\t\"R\n\022GetProper" + + "tyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyti" + + "csadmin.googleapis.com/Property\"i\n\025ListP" + + "ropertiesRequest\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" + + "show_deleted\030\004 \001(\010\"o\n\026ListPropertiesResp" + + "onse\022<\n\nproperties\030\001 \003(\0132(.google.analyt" + + "ics.admin.v1alpha.Property\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\216\001\n\025UpdatePropertyRequest\022?\n" + + "\010property\030\001 \001(\0132(.google.analytics.admin" + + ".v1alpha.PropertyB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"X\n\025" + + "CreatePropertyRequest\022?\n\010property\030\001 \001(\0132" + + "(.google.analytics.admin.v1alpha.Propert" + + "yB\003\340A\002\"U\n\025DeletePropertyRequest\022<\n\004name\030" + + "\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googleapis" + + ".com/Property\"R\n\022GetUserLinkRequest\022<\n\004n" + + "ame\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.google" + + "apis.com/UserLink\"\231\001\n\030BatchGetUserLinksR" + + "equest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analytic" + + "sadmin.googleapis.com/UserLink\022=\n\005names\030" + + "\002 \003(\tB.\340A\002\372A(\n&analyticsadmin.googleapis" + + ".com/UserLink\"Y\n\031BatchGetUserLinksRespon" + + "se\022<\n\nuser_links\030\001 \003(\0132(.google.analytic" + + "s.admin.v1alpha.UserLink\"}\n\024ListUserLink" + + "sRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyt" + + "icsadmin.googleapis.com/UserLink\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025ListU" + + "serLinksResponse\022<\n\nuser_links\030\001 \003(\0132(.g" + + "oogle.analytics.admin.v1alpha.UserLink\022\027" + + "\n\017next_page_token\030\002 \001(\t\"~\n\025AuditUserLink" + + "sRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyt" + + "icsadmin.googleapis.com/UserLink\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026Audit" + + "UserLinksResponse\022A\n\nuser_links\030\001 \003(\0132-." + + "google.analytics.admin.v1alpha.AuditUser" + + "Link\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\025Create" + + "UserLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022" + + "&analyticsadmin.googleapis.com/UserLink\022" + + "\034\n\017notify_new_user\030\002 \001(\010B\003\340A\001\022@\n\tuser_li" + + "nk\030\003 \001(\0132(.google.analytics.admin.v1alph" + + "a.UserLinkB\003\340A\002\"\312\001\n\033BatchCreateUserLinks" + + "Request\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyti" + + "csadmin.googleapis.com/UserLink\022\035\n\020notif" + + "y_new_users\030\002 \001(\010B\003\340A\001\022L\n\010requests\030\003 \003(\013" + + "25.google.analytics.admin.v1alpha.Create" + + "UserLinkRequestB\003\340A\002\"\\\n\034BatchCreateUserL" + + "inksResponse\022<\n\nuser_links\030\001 \003(\0132(.googl" + + "e.analytics.admin.v1alpha.UserLink\"Y\n\025Up" + + "dateUserLinkRequest\022@\n\tuser_link\030\001 \001(\0132(" + + ".google.analytics.admin.v1alpha.UserLink" + + "B\003\340A\002\"\253\001\n\033BatchUpdateUserLinksRequest\022>\n" + + "\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.go" + + "ogleapis.com/UserLink\022L\n\010requests\030\002 \003(\0132" + + "5.google.analytics.admin.v1alpha.UpdateU" + + "serLinkRequestB\003\340A\002\"\\\n\034BatchUpdateUserLi" + + "nksResponse\022<\n\nuser_links\030\001 \003(\0132(.google" + + ".analytics.admin.v1alpha.UserLink\"U\n\025Del" + + "eteUserLinkRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(" + + "\n&analyticsadmin.googleapis.com/UserLink" + + "\"\253\001\n\033BatchDeleteUserLinksRequest\022>\n\006pare" + + "nt\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googlea" + + "pis.com/UserLink\022L\n\010requests\030\002 \003(\01325.goo" + + "gle.analytics.admin.v1alpha.DeleteUserLi" + + "nkRequestB\003\340A\002\"\251\001\n\031CreateFirebaseLinkReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsa" + + "dmin.googleapis.com/FirebaseLink\022H\n\rfire" + + "base_link\030\002 \001(\0132,.google.analytics.admin" + + ".v1alpha.FirebaseLinkB\003\340A\002\"]\n\031DeleteFire" + + "baseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*a" + + "nalyticsadmin.googleapis.com/FirebaseLin" + + "k\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006parent" + + "\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapi" + + "s.com/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\"z\n\031ListFirebaseLinksRe" + + "sponse\022D\n\016firebase_links\030\001 \003(\0132,.google." + + "analytics.admin.v1alpha.FirebaseLink\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTa" + + "gRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analytic" + + "sadmin.googleapis.com/GlobalSiteTag\"\256\001\n\032" + + "CreateGoogleAdsLinkRequest\022C\n\006parent\030\001 \001" + + "(\tB3\340A\002\372A-\022+analyticsadmin.googleapis.co" + + "m/GoogleAdsLink\022K\n\017google_ads_link\030\002 \001(\013" + + "2-.google.analytics.admin.v1alpha.Google" + + "AdsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequ" + + "est\022F\n\017google_ads_link\030\001 \001(\0132-.google.an" + + "alytics.admin.v1alpha.GoogleAdsLink\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022" + + "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.go" + + "ogleapis.com/GoogleAdsLink\"\207\001\n\031ListGoogl" + + "eAdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-" + + "\022+analyticsadmin.googleapis.com/GoogleAd" + + "sLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020go" + + "ogle_ads_links\030\001 \003(\0132-.google.analytics." + + "admin.v1alpha.GoogleAdsLink\022\027\n\017next_page" + + "_token\030\002 \001(\t\"h\n\035GetDataSharingSettingsRe" + + "quest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsad" + + "min.googleapis.com/DataSharingSettings\"D" + + "\n\033ListAccountSummariesRequest\022\021\n\tpage_si" + + "ze\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAcc" + + "ountSummariesResponse\022I\n\021account_summari" + + "es\030\001 \003(\0132..google.analytics.admin.v1alph" + + "a.AccountSummary\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\206\001\n$AcknowledgeUserDataCollectionReque" + + "st\022@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analyticsa" + + "dmin.googleapis.com/Property\022\034\n\017acknowle" + + "dgement\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUserDat" + + "aCollectionResponse\"\203\004\n SearchChangeHist" + + "oryEventsRequest\022>\n\007account\030\001 \001(\tB-\340A\002\372A" + + "\'\n%analyticsadmin.googleapis.com/Account" + + "\022@\n\010property\030\002 \001(\tB.\340A\001\372A(\n&analyticsadm" + + "in.googleapis.com/Property\022U\n\rresource_t" + + "ype\030\003 \003(\01629.google.analytics.admin.v1alp" + + "ha.ChangeHistoryResourceTypeB\003\340A\001\022?\n\006act" + + "ion\030\004 \003(\0162*.google.analytics.admin.v1alp" + + "ha.ActionTypeB\003\340A\001\022\030\n\013actor_email\030\005 \003(\tB" + + "\003\340A\001\022=\n\024earliest_change_time\030\006 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\001\022;\n\022latest_ch" + + "ange_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\t \001(\tB\003\340A\001\"\217\001\n!SearchChangeHistor" + + "yEventsResponse\022Q\n\025change_history_events" + + "\030\001 \003(\01322.google.analytics.admin.v1alpha." + + "ChangeHistoryEvent\022\027\n\017next_page_token\030\002 " + + "\001(\t\"t\n#GetMeasurementProtocolSecretReque" + + "st\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin" + + ".googleapis.com/MeasurementProtocolSecre" + + "t\"\336\001\n&CreateMeasurementProtocolSecretReq" + + "uest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsa" + + "dmin.googleapis.com/MeasurementProtocolS" + + "ecret\022c\n\033measurement_protocol_secret\030\002 \001" + + "(\01329.google.analytics.admin.v1alpha.Meas" + + "urementProtocolSecretB\003\340A\002\"w\n&DeleteMeas" + + "urementProtocolSecretRequest\022M\n\004name\030\001 \001" + + "(\tB?\340A\002\372A9\n7analyticsadmin.googleapis.co" + + "m/MeasurementProtocolSecret\"\276\001\n&UpdateMe" + + "asurementProtocolSecretRequest\022c\n\033measur" + + "ement_protocol_secret\030\001 \001(\01329.google.ana" + + "lytics.admin.v1alpha.MeasurementProtocol" + + "SecretB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"\237\001\n%ListMeasurement" + + "ProtocolSecretsRequest\022O\n\006parent\030\001 \001(\tB?" + + "\340A\002\372A9\0227analyticsadmin.googleapis.com/Me" + + "asurementProtocolSecret\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n&ListMeasureme" + + "ntProtocolSecretsResponse\022_\n\034measurement" + + "_protocol_secrets\030\001 \003(\01329.google.analyti" + + "cs.admin.v1alpha.MeasurementProtocolSecr" + + "et\022\027\n\017next_page_token\030\002 \001(\t\"l\n\037GetGoogle" + + "SignalsSettingsRequest\022I\n\004name\030\001 \001(\tB;\340A" + + "\002\372A5\n3analyticsadmin.googleapis.com/Goog" + + "leSignalsSettings\"\267\001\n\"UpdateGoogleSignal" + + "sSettingsRequest\022[\n\027google_signals_setti" + + "ngs\030\001 \001(\01325.google.analytics.admin.v1alp" + + "ha.GoogleSignalsSettingsB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\"\265\001\n\034CreateConversionEventRequest\022N\n\020" + + "conversion_event\030\001 \001(\0132/.google.analytic" + + "s.admin.v1alpha.ConversionEventB\003\340A\002\022E\n\006" + + "parent\030\002 \001(\tB5\340A\002\372A/\022-analyticsadmin.goo" + + "gleapis.com/ConversionEvent\"`\n\031GetConver" + + "sionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" + + "analyticsadmin.googleapis.com/Conversion" + + "Event\"c\n\034DeleteConversionEventRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.goog" + + "leapis.com/ConversionEvent\"\213\001\n\033ListConve" + + "rsionEventsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372" + + "A/\022-analyticsadmin.googleapis.com/Conver" + + "sionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"\203\001\n\034ListConversionEventsRespons" + + "e\022J\n\021conversion_events\030\001 \003(\0132/.google.an" + + "alytics.admin.v1alpha.ConversionEvent\022\027\n" + + "\017next_page_token\030\002 \001(\t\"|\n\'GetDisplayVide" + + "o360AdvertiserLinkRequest\022Q\n\004name\030\001 \001(\tB" + + "C\340A\002\372A=\n;analyticsadmin.googleapis.com/D" + + "isplayVideo360AdvertiserLink\"\247\001\n)ListDis" + + "playVideo360AdvertiserLinksRequest\022S\n\006pa" + + "rent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin.googl" + + "eapis.com/DisplayVideo360AdvertiserLink\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260" + + "\001\n*ListDisplayVideo360AdvertiserLinksRes" + + "ponse\022i\n\"display_video_360_advertiser_li" + + "nks\030\001 \003(\0132=.google.analytics.admin.v1alp" + + "ha.DisplayVideo360AdvertiserLink\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\360\001\n*CreateDisplayVideo" + + "360AdvertiserLinkRequest\022S\n\006parent\030\001 \001(\t" + + "BC\340A\002\372A=\022;analyticsadmin.googleapis.com/" + + "DisplayVideo360AdvertiserLink\022m\n!display" + + "_video_360_advertiser_link\030\002 \001(\0132=.googl" + + "e.analytics.admin.v1alpha.DisplayVideo36" + + "0AdvertiserLinkB\003\340A\002\"\177\n*DeleteDisplayVid" + + "eo360AdvertiserLinkRequest\022Q\n\004name\030\001 \001(\t" + + "BC\340A\002\372A=\n;analyticsadmin.googleapis.com/" + + "DisplayVideo360AdvertiserLink\"\314\001\n*Update" + + "DisplayVideo360AdvertiserLinkRequest\022h\n!" + + "display_video_360_advertiser_link\030\001 \001(\0132" + + "=.google.analytics.admin.v1alpha.Display" + + "Video360AdvertiserLink\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\214\001\n" + + "/GetDisplayVideo360AdvertiserLinkProposa" + + "lRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalytic" + + "sadmin.googleapis.com/DisplayVideo360Adv" + + "ertiserLinkProposal\"\267\001\n1ListDisplayVideo" + + "360AdvertiserLinkProposalsRequest\022[\n\006par" + + "ent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.google" + + "apis.com/DisplayVideo360AdvertiserLinkPr" + + "oposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"\311\001\n2ListDisplayVideo360AdvertiserL" + + "inkProposalsResponse\022z\n+display_video_36" + + "0_advertiser_link_proposals\030\001 \003(\0132E.goog" + + "le.analytics.admin.v1alpha.DisplayVideo3" + + "60AdvertiserLinkProposal\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\221\002\n2CreateDisplayVideo360Adver" + + "tiserLinkProposalRequest\022[\n\006parent\030\001 \001(\t" + + "BK\340A\002\372AE\022Canalyticsadmin.googleapis.com/" + + "DisplayVideo360AdvertiserLinkProposal\022~\n" + + "*display_video_360_advertiser_link_propo" + + "sal\030\002 \001(\0132E.google.analytics.admin.v1alp" + + "ha.DisplayVideo360AdvertiserLinkProposal" + + "B\003\340A\002\"\217\001\n2DeleteDisplayVideo360Advertise" + + "rLinkProposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372" + + "AE\nCanalyticsadmin.googleapis.com/Displa" + + "yVideo360AdvertiserLinkProposal\"\220\001\n3Appr" + + "oveDisplayVideo360AdvertiserLinkProposal" + + "Request\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLinkProposal\"\240\001\n4ApproveDisplayVid" + + "eo360AdvertiserLinkProposalResponse\022h\n!d" + + "isplay_video_360_advertiser_link\030\001 \001(\0132=" + + ".google.analytics.admin.v1alpha.DisplayV" + + "ideo360AdvertiserLink\"\217\001\n2CancelDisplayV" + + "ideo360AdvertiserLinkProposalRequest\022Y\n\004" + + "name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin.googl" + + "eapis.com/DisplayVideo360AdvertiserLinkP" + + "roposal\"\265\001\n\034CreateCustomDimensionRequest" + + "\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin" + + ".googleapis.com/CustomDimension\022N\n\020custo" + + "m_dimension\030\002 \001(\0132/.google.analytics.adm" + + "in.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n\034Upda" + + "teCustomDimensionRequest\022I\n\020custom_dimen" + + "sion\030\001 \001(\0132/.google.analytics.admin.v1al" + + "pha.CustomDimension\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033Li" + + "stCustomDimensionsRequest\022E\n\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com" + + "/CustomDimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\203\001\n\034ListCustomDimensions" + + "Response\022J\n\021custom_dimensions\030\001 \003(\0132/.go" + + "ogle.analytics.admin.v1alpha.CustomDimen" + + "sion\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035Archive" + + "CustomDimensionRequest\022C\n\004name\030\001 \001(\tB5\340A" + + "\002\372A/\n-analyticsadmin.googleapis.com/Cust" + + "omDimension\"`\n\031GetCustomDimensionRequest" + + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.g" + + "oogleapis.com/CustomDimension\"\251\001\n\031Create" + + "CustomMetricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002" + + "\372A,\022*analyticsadmin.googleapis.com/Custo" + + "mMetric\022H\n\rcustom_metric\030\002 \001(\0132,.google." + + "analytics.admin.v1alpha.CustomMetricB\003\340A" + + "\002\"\226\001\n\031UpdateCustomMetricRequest\022C\n\rcusto" + + "m_metric\030\001 \001(\0132,.google.analytics.admin." + + "v1alpha.CustomMetric\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030L" + + "istCustomMetricsRequest\022B\n\006parent\030\001 \001(\tB" + + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/C" + + "ustomMetric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"z\n\031ListCustomMetricsResponse\022" + + "D\n\016custom_metrics\030\001 \003(\0132,.google.analyti" + + "cs.admin.v1alpha.CustomMetric\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"^\n\032ArchiveCustomMetricReq" + + "uest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadm" + + "in.googleapis.com/CustomMetric\"Z\n\026GetCus" + + "tomMetricRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" + + "analyticsadmin.googleapis.com/CustomMetr" + + "ic\"l\n\037GetDataRetentionSettingsRequest\022I\n" + + "\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin.goog" + + "leapis.com/DataRetentionSettings\"\267\001\n\"Upd" + + "ateDataRetentionSettingsRequest\022[\n\027data_" + + "retention_settings\030\001 \001(\01325.google.analyt" + + "ics.admin.v1alpha.DataRetentionSettingsB" + + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002\"\241\001\n\027CreateDataStreamR" + + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analytic" + + "sadmin.googleapis.com/DataStream\022D\n\013data" + + "_stream\030\002 \001(\0132*.google.analytics.admin.v" + + "1alpha.DataStreamB\003\340A\002\"Y\n\027DeleteDataStre" + + "amRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyti" + + "csadmin.googleapis.com/DataStream\"\220\001\n\027Up" + + "dateDataStreamRequest\022?\n\013data_stream\030\001 \001" + + "(\0132*.google.analytics.admin.v1alpha.Data" + + "Stream\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\002\"\201\001\n\026ListDataStreams" + + "Request\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyti" + + "csadmin.googleapis.com/DataStream\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027List" + + "DataStreamsResponse\022@\n\014data_streams\030\001 \003(" + + "\0132*.google.analytics.admin.v1alpha.DataS" + + "tream\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024GetDat" + + "aStreamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(an" + + "alyticsadmin.googleapis.com/DataStream\"R" + + "\n\022GetAudienceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372" + + "A(\n&analyticsadmin.googleapis.com/Audien" + + "ce\"}\n\024ListAudiencesRequest\022>\n\006parent\030\001 \001" + + "(\tB.\340A\002\372A(\022&analyticsadmin.googleapis.co" + + "m/Audience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\tau" + + "diences\030\001 \003(\0132(.google.analytics.admin.v" + + "1alpha.Audience\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\230\001\n\025CreateAudienceRequest\022>\n\006parent\030\001 \001" + + "(\tB.\340A\002\372A(\022&analyticsadmin.googleapis.co" + + "m/Audience\022?\n\010audience\030\002 \001(\0132(.google.an" + + "alytics.admin.v1alpha.AudienceB\003\340A\002\"\216\001\n\025" + + "UpdateAudienceRequest\022?\n\010audience\030\001 \001(\0132" + + "(.google.analytics.admin.v1alpha.Audienc" + + "eB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\003\340A\002\"V\n\026ArchiveAudienceR" + + "equest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&analyticsa" + + "dmin.googleapis.com/Audience\"h\n\035GetAttri" + + "butionSettingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002" + + "\372A3\n1analyticsadmin.googleapis.com/Attri" + + "butionSettings\"\260\001\n UpdateAttributionSett" + + "ingsRequest\022V\n\024attribution_settings\030\001 \001(" + + "\01323.google.analytics.admin.v1alpha.Attri" + + "butionSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\0022\314\213\001\n\025A" + + "nalyticsAdminService\022\223\001\n\nGetAccount\0221.go" + + "ogle.analytics.admin.v1alpha.GetAccountR" + + "equest\032\'.google.analytics.admin.v1alpha." + + "Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=accounts" + + "/*}\332A\004name\022\224\001\n\014ListAccounts\0223.google.ana" + + "lytics.admin.v1alpha.ListAccountsRequest" + + "\0324.google.analytics.admin.v1alpha.ListAc" + + "countsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/account" + + "s\022\210\001\n\rDeleteAccount\0224.google.analytics.a" + + "dmin.v1alpha.DeleteAccountRequest\032\026.goog" + + "le.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{nam" + + "e=accounts/*}\332A\004name\022\271\001\n\rUpdateAccount\0224" + + ".google.analytics.admin.v1alpha.UpdateAc" + + "countRequest\032\'.google.analytics.admin.v1" + + "alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{account" + + ".name=accounts/*}:\007account\332A\023account,upd" + + "ate_mask\022\314\001\n\026ProvisionAccountTicket\022=.go" + + "ogle.analytics.admin.v1alpha.ProvisionAc" + + "countTicketRequest\032>.google.analytics.ad" + + "min.v1alpha.ProvisionAccountTicketRespon" + + "se\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisionA" + + "ccountTicket:\001*\022\264\001\n\024ListAccountSummaries" + + "\022;.google.analytics.admin.v1alpha.ListAc" + + "countSummariesRequest\032<.google.analytics" + + ".admin.v1alpha.ListAccountSummariesRespo" + + "nse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230" + + "\001\n\013GetProperty\0222.google.analytics.admin." + + "v1alpha.GetPropertyRequest\032(.google.anal" + + "ytics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034/v" + + "1alpha/{name=properties/*}\332A\004name\022\234\001\n\016Li" + + "stProperties\0225.google.analytics.admin.v1" + + "alpha.ListPropertiesRequest\0326.google.ana" + + "lytics.admin.v1alpha.ListPropertiesRespo" + + "nse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016Cre" + + "ateProperty\0225.google.analytics.admin.v1a" + + "lpha.CreatePropertyRequest\032(.google.anal" + + "ytics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023/v" + + "1alpha/properties:\010property\332A\010property\022\236" + + "\001\n\016DeleteProperty\0225.google.analytics.adm" + + "in.v1alpha.DeletePropertyRequest\032(.googl" + + "e.analytics.admin.v1alpha.Property\"+\202\323\344\223" + + "\002\036*\034/v1alpha/{name=properties/*}\332A\004name\022" + + "\301\001\n\016UpdateProperty\0225.google.analytics.ad" + + "min.v1alpha.UpdatePropertyRequest\032(.goog" + + "le.analytics.admin.v1alpha.Property\"N\202\323\344" + + "\223\00212%/v1alpha/{property.name=properties/" + + "*}:\010property\332A\024property,update_mask\022\316\001\n\013", + "GetUserLink\0222.google.analytics.admin.v1a" + + "lpha.GetUserLinkRequest\032(.google.analyti" + + "cs.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1al" + + "pha/{name=accounts/*/userLinks/*}Z*\022(/v1" + + "alpha/{name=properties/*/userLinks/*}\332A\004" + + "name\022\366\001\n\021BatchGetUserLinks\0228.google.anal" + + "ytics.admin.v1alpha.BatchGetUserLinksReq" + + "uest\0329.google.analytics.admin.v1alpha.Ba" + + "tchGetUserLinksResponse\"l\202\323\344\223\002f\022//v1alph" + + "a/{parent=accounts/*}/userLinks:batchGet" + + "Z3\0221/v1alpha/{parent=properties/*}/userL" + + "inks:batchGet\022\341\001\n\rListUserLinks\0224.google" + + ".analytics.admin.v1alpha.ListUserLinksRe" + + "quest\0325.google.analytics.admin.v1alpha.L" + + "istUserLinksResponse\"c\202\323\344\223\002T\022&/v1alpha/{" + + "parent=accounts/*}/userLinksZ*\022(/v1alpha" + + "/{parent=properties/*}/userLinks\332A\006paren" + + "t\022\355\001\n\016AuditUserLinks\0225.google.analytics." + + "admin.v1alpha.AuditUserLinksRequest\0326.go" + + "ogle.analytics.admin.v1alpha.AuditUserLi" + + "nksResponse\"l\202\323\344\223\002f\",/v1alpha/{parent=ac" + + "counts/*}/userLinks:audit:\001*Z3\"./v1alpha" + + "/{parent=properties/*}/userLinks:audit:\001" + + "*\022\367\001\n\016CreateUserLink\0225.google.analytics." + + "admin.v1alpha.CreateUserLinkRequest\032(.go" + + "ogle.analytics.admin.v1alpha.UserLink\"\203\001" + + "\202\323\344\223\002j\"&/v1alpha/{parent=accounts/*}/use" + + "rLinks:\tuser_linkZ5\"(/v1alpha/{parent=pr" + + "operties/*}/userLinks:\tuser_link\332A\020paren" + + "t,user_link\022\213\002\n\024BatchCreateUserLinks\022;.g" + + "oogle.analytics.admin.v1alpha.BatchCreat" + + "eUserLinksRequest\032<.google.analytics.adm" + + "in.v1alpha.BatchCreateUserLinksResponse\"" + "x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/us" - + "erLinks:batchDelete:\001*Z9\"4/v1alpha/{pare" - + "nt=properties/*}/userLinks:batchDelete:\001" - + "*\022\331\001\n\022CreateFirebaseLink\0229.google.analyt" - + "ics.admin.v1alpha.CreateFirebaseLinkRequ" - + "est\032,.google.analytics.admin.v1alpha.Fir" - + "ebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=prop" - + "erties/*}/firebaseLinks:\rfirebase_link\332A" - + "\024parent,firebase_link\022\244\001\n\022DeleteFirebase" - + "Link\0229.google.analytics.admin.v1alpha.De" - + "leteFirebaseLinkRequest\032\026.google.protobu" - + "f.Empty\";\202\323\344\223\002.*,/v1alpha/{name=properti" - + "es/*/firebaseLinks/*}\332A\004name\022\307\001\n\021ListFir" - + "ebaseLinks\0228.google.analytics.admin.v1al" - + "pha.ListFirebaseLinksRequest\0329.google.an" - + "alytics.admin.v1alpha.ListFirebaseLinksR" - + "esponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=proper" - + "ties/*}/firebaseLinks\332A\006parent\022\303\001\n\020GetGl" - + "obalSiteTag\0227.google.analytics.admin.v1a" - + "lpha.GetGlobalSiteTagRequest\032-.google.an" - + "alytics.admin.v1alpha.GlobalSiteTag\"G\202\323\344" - + "\223\002:\0228/v1alpha/{name=properties/*/dataStr" - + "eams/*/globalSiteTag}\332A\004name\022\341\001\n\023CreateG" - + "oogleAdsLink\022:.google.analytics.admin.v1" - + "alpha.CreateGoogleAdsLinkRequest\032-.googl" - + "e.analytics.admin.v1alpha.GoogleAdsLink\"" - + "_\202\323\344\223\002@\"-/v1alpha/{parent=properties/*}/" - + "googleAdsLinks:\017google_ads_link\332A\026parent" - + ",google_ads_link\022\366\001\n\023UpdateGoogleAdsLink" - + "\022:.google.analytics.admin.v1alpha.Update" - + "GoogleAdsLinkRequest\032-.google.analytics." - + "admin.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/v1" - + "alpha/{google_ads_link.name=properties/*" - + "/googleAdsLinks/*}:\017google_ads_link\332A\033go" - + "ogle_ads_link,update_mask\022\247\001\n\023DeleteGoog" - + "leAdsLink\022:.google.analytics.admin.v1alp" - + "ha.DeleteGoogleAdsLinkRequest\032\026.google.p" - + "rotobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=pr" - + "operties/*/googleAdsLinks/*}\332A\004name\022\313\001\n\022" - + "ListGoogleAdsLinks\0229.google.analytics.ad" - + "min.v1alpha.ListGoogleAdsLinksRequest\032:." - + "google.analytics.admin.v1alpha.ListGoogl" - + "eAdsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{par" - + "ent=properties/*}/googleAdsLinks\332A\006paren" - + "t\022\313\001\n\026GetDataSharingSettings\022=.google.an" - + "alytics.admin.v1alpha.GetDataSharingSett" - + "ingsRequest\0323.google.analytics.admin.v1a" - + "lpha.DataSharingSettings\"=\202\323\344\223\0020\022./v1alp" - + "ha/{name=accounts/*/dataSharingSettings}" - + "\332A\004name\022\366\001\n\034GetMeasurementProtocolSecret" - + "\022C.google.analytics.admin.v1alpha.GetMea" - + "surementProtocolSecretRequest\0329.google.a" - + "nalytics.admin.v1alpha.MeasurementProtoc" - + "olSecret\"V\202\323\344\223\002I\022G/v1alpha/{name=propert" - + "ies/*/dataStreams/*/measurementProtocolS" - + "ecrets/*}\332A\004name\022\211\002\n\036ListMeasurementProt" - + "ocolSecrets\022E.google.analytics.admin.v1a" - + "lpha.ListMeasurementProtocolSecretsReque" - + "st\032F.google.analytics.admin.v1alpha.List" - + "MeasurementProtocolSecretsResponse\"X\202\323\344\223" - + "\002I\022G/v1alpha/{parent=properties/*/dataSt" - + "reams/*}/measurementProtocolSecrets\332A\006pa" - + "rent\022\270\002\n\037CreateMeasurementProtocolSecret" - + "\022F.google.analytics.admin.v1alpha.Create" - + "MeasurementProtocolSecretRequest\0329.googl" - + "e.analytics.admin.v1alpha.MeasurementPro" - + "tocolSecret\"\221\001\202\323\344\223\002f\"G/v1alpha/{parent=p" - + "roperties/*/dataStreams/*}/measurementPr" - + "otocolSecrets:\033measurement_protocol_secr" - + "et\332A\"parent,measurement_protocol_secret\022" - + "\331\001\n\037DeleteMeasurementProtocolSecret\022F.go" - + "ogle.analytics.admin.v1alpha.DeleteMeasu" - + "rementProtocolSecretRequest\032\026.google.pro" - + "tobuf.Empty\"V\202\323\344\223\002I*G/v1alpha/{name=prop" - + "erties/*/dataStreams/*/measurementProtoc" - + "olSecrets/*}\332A\004name\022\332\002\n\037UpdateMeasuremen" - + "tProtocolSecret\022F.google.analytics.admin" - + ".v1alpha.UpdateMeasurementProtocolSecret" - + "Request\0329.google.analytics.admin.v1alpha" - + ".MeasurementProtocolSecret\"\263\001\202\323\344\223\002\202\0012c/v" - + "1alpha/{measurement_protocol_secret.name" - + "=properties/*/dataStreams/*/measurementP" - + "rotocolSecrets/*}:\033measurement_protocol_" - + "secret\332A\'measurement_protocol_secret,upd" - + "ate_mask\022\367\001\n\035AcknowledgeUserDataCollecti" - + "on\022D.google.analytics.admin.v1alpha.Ackn" - + "owledgeUserDataCollectionRequest\032E.googl" - + "e.analytics.admin.v1alpha.AcknowledgeUse" - + "rDataCollectionResponse\"I\202\323\344\223\002C\">/v1alph" - + "a/{property=properties/*}:acknowledgeUse" - + "rDataCollection:\001*\022\344\001\n\031SearchChangeHisto" - + "ryEvents\022@.google.analytics.admin.v1alph" - + "a.SearchChangeHistoryEventsRequest\032A.goo" - + "gle.analytics.admin.v1alpha.SearchChange" - + "HistoryEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/" - + "{account=accounts/*}:searchChangeHistory" - + "Events:\001*\022\325\001\n\030GetGoogleSignalsSettings\022?" - + ".google.analytics.admin.v1alpha.GetGoogl" - + "eSignalsSettingsRequest\0325.google.analyti" - + "cs.admin.v1alpha.GoogleSignalsSettings\"A" - + "\202\323\344\223\0024\0222/v1alpha/{name=properties/*/goog" - + "leSignalsSettings}\332A\004name\022\254\002\n\033UpdateGoog" - + "leSignalsSettings\022B.google.analytics.adm" - + "in.v1alpha.UpdateGoogleSignalsSettingsRe" - + "quest\0325.google.analytics.admin.v1alpha.G" - + "oogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v1alpha/" - + "{google_signals_settings.name=properties" - + "/*/googleSignalsSettings}:\027google_signal" - + "s_settings\332A#google_signals_settings,upd" - + "ate_mask\022\353\001\n\025CreateConversionEvent\022<.goo" - + "gle.analytics.admin.v1alpha.CreateConver" - + "sionEventRequest\032/.google.analytics.admi" - + "n.v1alpha.ConversionEvent\"c\202\323\344\223\002C\"//v1al" - + "pha/{parent=properties/*}/conversionEven" - + "ts:\020conversion_event\332A\027parent,conversion" - + "_event\022\300\001\n\022GetConversionEvent\0229.google.a" - + "nalytics.admin.v1alpha.GetConversionEven" - + "tRequest\032/.google.analytics.admin.v1alph" - + "a.ConversionEvent\">\202\323\344\223\0021\022//v1alpha/{nam" - + "e=properties/*/conversionEvents/*}\332A\004nam" - + "e\022\255\001\n\025DeleteConversionEvent\022<.google.ana" - + "lytics.admin.v1alpha.DeleteConversionEve" - + "ntRequest\032\026.google.protobuf.Empty\">\202\323\344\223\002" - + "1*//v1alpha/{name=properties/*/conversio" - + "nEvents/*}\332A\004name\022\323\001\n\024ListConversionEven" - + "ts\022;.google.analytics.admin.v1alpha.List" - + "ConversionEventsRequest\032<.google.analyti" - + "cs.admin.v1alpha.ListConversionEventsRes" - + "ponse\"@\202\323\344\223\0021\022//v1alpha/{parent=properti" - + "es/*}/conversionEvents\332A\006parent\022\370\001\n GetD" - + "isplayVideo360AdvertiserLink\022G.google.an" - + "alytics.admin.v1alpha.GetDisplayVideo360" - + "AdvertiserLinkRequest\032=.google.analytics" - + ".admin.v1alpha.DisplayVideo360Advertiser" - + "Link\"L\202\323\344\223\002?\022=/v1alpha/{name=properties/" - + "*/displayVideo360AdvertiserLinks/*}\332A\004na" - + "me\022\213\002\n\"ListDisplayVideo360AdvertiserLink" - + "s\022I.google.analytics.admin.v1alpha.ListD" - + "isplayVideo360AdvertiserLinksRequest\032J.g" - + "oogle.analytics.admin.v1alpha.ListDispla" - + "yVideo360AdvertiserLinksResponse\"N\202\323\344\223\002?" - + "\022=/v1alpha/{parent=properties/*}/display" - + "Video360AdvertiserLinks\332A\006parent\022\306\002\n#Cre" - + "ateDisplayVideo360AdvertiserLink\022J.googl" - + "e.analytics.admin.v1alpha.CreateDisplayV" - + "ideo360AdvertiserLinkRequest\032=.google.an" - + "alytics.admin.v1alpha.DisplayVideo360Adv" - + "ertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{parent=p" - + "roperties/*}/displayVideo360AdvertiserLi" - + "nks:!display_video_360_advertiser_link\332A" - + "(parent,display_video_360_advertiser_lin" - + "k\022\327\001\n#DeleteDisplayVideo360AdvertiserLin" - + "k\022J.google.analytics.admin.v1alpha.Delet" - + "eDisplayVideo360AdvertiserLinkRequest\032\026." - + "google.protobuf.Empty\"L\202\323\344\223\002?*=/v1alpha/" - + "{name=properties/*/displayVideo360Advert" - + "iserLinks/*}\332A\004name\022\356\002\n#UpdateDisplayVid" - + "eo360AdvertiserLink\022J.google.analytics.a" - + "dmin.v1alpha.UpdateDisplayVideo360Advert" - + "iserLinkRequest\032=.google.analytics.admin" - + ".v1alpha.DisplayVideo360AdvertiserLink\"\273" - + "\001\202\323\344\223\002\204\0012_/v1alpha/{display_video_360_ad" - + "vertiser_link.name=properties/*/displayV" - + "ideo360AdvertiserLinks/*}:!display_video" - + "_360_advertiser_link\332A-display_video_360" - + "_advertiser_link,update_mask\022\230\002\n(GetDisp" - + "layVideo360AdvertiserLinkProposal\022O.goog" - + "le.analytics.admin.v1alpha.GetDisplayVid" - + "eo360AdvertiserLinkProposalRequest\032E.goo" - + "gle.analytics.admin.v1alpha.DisplayVideo" - + "360AdvertiserLinkProposal\"T\202\323\344\223\002G\022E/v1al" - + "pha/{name=properties/*/displayVideo360Ad" - + "vertiserLinkProposals/*}\332A\004name\022\253\002\n*List" - + "DisplayVideo360AdvertiserLinkProposals\022Q" + + "erLinks:batchCreate:\001*Z9\"4/v1alpha/{pare" + + "nt=properties/*}/userLinks:batchCreate:\001" + + "*\022\204\002\n\016UpdateUserLink\0225.google.analytics." + + "admin.v1alpha.UpdateUserLinkRequest\032(.go" + + "ogle.analytics.admin.v1alpha.UserLink\"\220\001" + + "\202\323\344\223\002~20/v1alpha/{user_link.name=account" + + "s/*/userLinks/*}:\tuser_linkZ?22/v1alpha/" + + "{user_link.name=properties/*/userLinks/*" + + "}:\tuser_link\332A\tuser_link\022\213\002\n\024BatchUpdate" + + "UserLinks\022;.google.analytics.admin.v1alp" + + "ha.BatchUpdateUserLinksRequest\032<.google." + + "analytics.admin.v1alpha.BatchUpdateUserL" + + "inksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=a" + + "ccounts/*}/userLinks:batchUpdate:\001*Z9\"4/" + + "v1alpha/{parent=properties/*}/userLinks:" + + "batchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225.goog" + + "le.analytics.admin.v1alpha.DeleteUserLin" + + "kRequest\032\026.google.protobuf.Empty\"a\202\323\344\223\002T" + + "*&/v1alpha/{name=accounts/*/userLinks/*}" + + "Z**(/v1alpha/{name=properties/*/userLink" + + "s/*}\332A\004name\022\345\001\n\024BatchDeleteUserLinks\022;.g" + + "oogle.analytics.admin.v1alpha.BatchDelet" + + "eUserLinksRequest\032\026.google.protobuf.Empt" + + "y\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/" + + "userLinks:batchDelete:\001*Z9\"4/v1alpha/{pa" + + "rent=properties/*}/userLinks:batchDelete" + + ":\001*\022\331\001\n\022CreateFirebaseLink\0229.google.anal" + + "ytics.admin.v1alpha.CreateFirebaseLinkRe" + + "quest\032,.google.analytics.admin.v1alpha.F" + + "irebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=pr" + + "operties/*}/firebaseLinks:\rfirebase_link" + + "\332A\024parent,firebase_link\022\244\001\n\022DeleteFireba" + + "seLink\0229.google.analytics.admin.v1alpha." + + "DeleteFirebaseLinkRequest\032\026.google.proto" + + "buf.Empty\";\202\323\344\223\002.*,/v1alpha/{name=proper" + + "ties/*/firebaseLinks/*}\332A\004name\022\307\001\n\021ListF" + + "irebaseLinks\0228.google.analytics.admin.v1" + + "alpha.ListFirebaseLinksRequest\0329.google." + + "analytics.admin.v1alpha.ListFirebaseLink" + + "sResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=prop" + + "erties/*}/firebaseLinks\332A\006parent\022\303\001\n\020Get" + + "GlobalSiteTag\0227.google.analytics.admin.v" + + "1alpha.GetGlobalSiteTagRequest\032-.google." + + "analytics.admin.v1alpha.GlobalSiteTag\"G\202" + + "\323\344\223\002:\0228/v1alpha/{name=properties/*/dataS" + + "treams/*/globalSiteTag}\332A\004name\022\341\001\n\023Creat" + + "eGoogleAdsLink\022:.google.analytics.admin." + + "v1alpha.CreateGoogleAdsLinkRequest\032-.goo" + + "gle.analytics.admin.v1alpha.GoogleAdsLin" + + "k\"_\202\323\344\223\002@\"-/v1alpha/{parent=properties/*" + + "}/googleAdsLinks:\017google_ads_link\332A\026pare" + + "nt,google_ads_link\022\366\001\n\023UpdateGoogleAdsLi" + + "nk\022:.google.analytics.admin.v1alpha.Upda" + + "teGoogleAdsLinkRequest\032-.google.analytic" + + "s.admin.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/" + + "v1alpha/{google_ads_link.name=properties" + + "/*/googleAdsLinks/*}:\017google_ads_link\332A\033" + + "google_ads_link,update_mask\022\247\001\n\023DeleteGo" + + "ogleAdsLink\022:.google.analytics.admin.v1a" + + "lpha.DeleteGoogleAdsLinkRequest\032\026.google" + + ".protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=" + + "properties/*/googleAdsLinks/*}\332A\004name\022\313\001" + + "\n\022ListGoogleAdsLinks\0229.google.analytics." + + "admin.v1alpha.ListGoogleAdsLinksRequest\032" + + ":.google.analytics.admin.v1alpha.ListGoo" + + "gleAdsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{p" + + "arent=properties/*}/googleAdsLinks\332A\006par" + + "ent\022\313\001\n\026GetDataSharingSettings\022=.google." + + "analytics.admin.v1alpha.GetDataSharingSe" + + "ttingsRequest\0323.google.analytics.admin.v" + + "1alpha.DataSharingSettings\"=\202\323\344\223\0020\022./v1a" + + "lpha/{name=accounts/*/dataSharingSetting" + + "s}\332A\004name\022\366\001\n\034GetMeasurementProtocolSecr" + + "et\022C.google.analytics.admin.v1alpha.GetM" + + "easurementProtocolSecretRequest\0329.google" + + ".analytics.admin.v1alpha.MeasurementProt" + + "ocolSecret\"V\202\323\344\223\002I\022G/v1alpha/{name=prope" + + "rties/*/dataStreams/*/measurementProtoco" + + "lSecrets/*}\332A\004name\022\211\002\n\036ListMeasurementPr" + + "otocolSecrets\022E.google.analytics.admin.v" + + "1alpha.ListMeasurementProtocolSecretsReq" + + "uest\032F.google.analytics.admin.v1alpha.Li" + + "stMeasurementProtocolSecretsResponse\"X\202\323" + + "\344\223\002I\022G/v1alpha/{parent=properties/*/data" + + "Streams/*}/measurementProtocolSecrets\332A\006" + + "parent\022\270\002\n\037CreateMeasurementProtocolSecr" + + "et\022F.google.analytics.admin.v1alpha.Crea" + + "teMeasurementProtocolSecretRequest\0329.goo" + + "gle.analytics.admin.v1alpha.MeasurementP" + + "rotocolSecret\"\221\001\202\323\344\223\002f\"G/v1alpha/{parent" + + "=properties/*/dataStreams/*}/measurement" + + "ProtocolSecrets:\033measurement_protocol_se" + + "cret\332A\"parent,measurement_protocol_secre" + + "t\022\331\001\n\037DeleteMeasurementProtocolSecret\022F." + + "google.analytics.admin.v1alpha.DeleteMea" + + "surementProtocolSecretRequest\032\026.google.p" + + "rotobuf.Empty\"V\202\323\344\223\002I*G/v1alpha/{name=pr" + + "operties/*/dataStreams/*/measurementProt" + + "ocolSecrets/*}\332A\004name\022\332\002\n\037UpdateMeasurem" + + "entProtocolSecret\022F.google.analytics.adm" + + "in.v1alpha.UpdateMeasurementProtocolSecr" + + "etRequest\0329.google.analytics.admin.v1alp" + + "ha.MeasurementProtocolSecret\"\263\001\202\323\344\223\002\202\0012c" + + "/v1alpha/{measurement_protocol_secret.na" + + "me=properties/*/dataStreams/*/measuremen" + + "tProtocolSecrets/*}:\033measurement_protoco" + + "l_secret\332A\'measurement_protocol_secret,u" + + "pdate_mask\022\367\001\n\035AcknowledgeUserDataCollec" + + "tion\022D.google.analytics.admin.v1alpha.Ac" + + "knowledgeUserDataCollectionRequest\032E.goo" + + "gle.analytics.admin.v1alpha.AcknowledgeU" + + "serDataCollectionResponse\"I\202\323\344\223\002C\">/v1al" + + "pha/{property=properties/*}:acknowledgeU" + + "serDataCollection:\001*\022\344\001\n\031SearchChangeHis" + + "toryEvents\022@.google.analytics.admin.v1al" + + "pha.SearchChangeHistoryEventsRequest\032A.g" + + "oogle.analytics.admin.v1alpha.SearchChan" + + "geHistoryEventsResponse\"B\202\323\344\223\002<\"7/v1alph" + + "a/{account=accounts/*}:searchChangeHisto" + + "ryEvents:\001*\022\325\001\n\030GetGoogleSignalsSettings" + + "\022?.google.analytics.admin.v1alpha.GetGoo" + + "gleSignalsSettingsRequest\0325.google.analy" + + "tics.admin.v1alpha.GoogleSignalsSettings" + + "\"A\202\323\344\223\0024\0222/v1alpha/{name=properties/*/go" + + "ogleSignalsSettings}\332A\004name\022\254\002\n\033UpdateGo" + + "ogleSignalsSettings\022B.google.analytics.a" + + "dmin.v1alpha.UpdateGoogleSignalsSettings" + + "Request\0325.google.analytics.admin.v1alpha" + + ".GoogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v1alph" + + "a/{google_signals_settings.name=properti" + + "es/*/googleSignalsSettings}:\027google_sign" + + "als_settings\332A#google_signals_settings,u" + + "pdate_mask\022\353\001\n\025CreateConversionEvent\022<.g" + + "oogle.analytics.admin.v1alpha.CreateConv" + + "ersionEventRequest\032/.google.analytics.ad" + + "min.v1alpha.ConversionEvent\"c\202\323\344\223\002C\"//v1" + + "alpha/{parent=properties/*}/conversionEv" + + "ents:\020conversion_event\332A\027parent,conversi" + + "on_event\022\300\001\n\022GetConversionEvent\0229.google" + + ".analytics.admin.v1alpha.GetConversionEv" + + "entRequest\032/.google.analytics.admin.v1al" + + "pha.ConversionEvent\">\202\323\344\223\0021\022//v1alpha/{n" + + "ame=properties/*/conversionEvents/*}\332A\004n" + + "ame\022\255\001\n\025DeleteConversionEvent\022<.google.a" + + "nalytics.admin.v1alpha.DeleteConversionE" + + "ventRequest\032\026.google.protobuf.Empty\">\202\323\344" + + "\223\0021*//v1alpha/{name=properties/*/convers" + + "ionEvents/*}\332A\004name\022\323\001\n\024ListConversionEv" + + "ents\022;.google.analytics.admin.v1alpha.Li" + + "stConversionEventsRequest\032<.google.analy" + + "tics.admin.v1alpha.ListConversionEventsR" + + "esponse\"@\202\323\344\223\0021\022//v1alpha/{parent=proper" + + "ties/*}/conversionEvents\332A\006parent\022\370\001\n Ge" + + "tDisplayVideo360AdvertiserLink\022G.google." + + "analytics.admin.v1alpha.GetDisplayVideo3" + + "60AdvertiserLinkRequest\032=.google.analyti" + + "cs.admin.v1alpha.DisplayVideo360Advertis" + + "erLink\"L\202\323\344\223\002?\022=/v1alpha/{name=propertie" + + "s/*/displayVideo360AdvertiserLinks/*}\332A\004" + + "name\022\213\002\n\"ListDisplayVideo360AdvertiserLi" + + "nks\022I.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinksRequest\032J" + ".google.analytics.admin.v1alpha.ListDisp" - + "layVideo360AdvertiserLinkProposalsReques" - + "t\032R.google.analytics.admin.v1alpha.ListD" - + "isplayVideo360AdvertiserLinkProposalsRes" - + "ponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=properti" - + "es/*}/displayVideo360AdvertiserLinkPropo" - + "sals\332A\006parent\022\370\002\n+CreateDisplayVideo360A" - + "dvertiserLinkProposal\022R.google.analytics" - + ".admin.v1alpha.CreateDisplayVideo360Adve" - + "rtiserLinkProposalRequest\032E.google.analy" - + "tics.admin.v1alpha.DisplayVideo360Advert" - + "iserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alpha/{par" - + "ent=properties/*}/displayVideo360Adverti" - + "serLinkProposals:*display_video_360_adve" - + "rtiser_link_proposal\332A1parent,display_vi" - + "deo_360_advertiser_link_proposal\022\357\001\n+Del" - + "eteDisplayVideo360AdvertiserLinkProposal" - + "\022R.google.analytics.admin.v1alpha.Delete" - + "DisplayVideo360AdvertiserLinkProposalReq" - + "uest\032\026.google.protobuf.Empty\"T\202\323\344\223\002G*E/v" - + "1alpha/{name=properties/*/displayVideo36" - + "0AdvertiserLinkProposals/*}\332A\004name\022\263\002\n,A" - + "pproveDisplayVideo360AdvertiserLinkPropo" - + "sal\022S.google.analytics.admin.v1alpha.App" - + "roveDisplayVideo360AdvertiserLinkProposa" - + "lRequest\032T.google.analytics.admin.v1alph" - + "a.ApproveDisplayVideo360AdvertiserLinkPr" - + "oposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name=p" - + "roperties/*/displayVideo360AdvertiserLin" - + "kProposals/*}:approve:\001*\022\241\002\n+CancelDispl" - + "ayVideo360AdvertiserLinkProposal\022R.googl" - + "e.analytics.admin.v1alpha.CancelDisplayV" + + "layVideo360AdvertiserLinksResponse\"N\202\323\344\223" + + "\002?\022=/v1alpha/{parent=properties/*}/displ" + + "ayVideo360AdvertiserLinks\332A\006parent\022\306\002\n#C" + + "reateDisplayVideo360AdvertiserLink\022J.goo" + + "gle.analytics.admin.v1alpha.CreateDispla" + + "yVideo360AdvertiserLinkRequest\032=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{parent" + + "=properties/*}/displayVideo360Advertiser" + + "Links:!display_video_360_advertiser_link" + + "\332A(parent,display_video_360_advertiser_l" + + "ink\022\327\001\n#DeleteDisplayVideo360AdvertiserL" + + "ink\022J.google.analytics.admin.v1alpha.Del" + + "eteDisplayVideo360AdvertiserLinkRequest\032" + + "\026.google.protobuf.Empty\"L\202\323\344\223\002?*=/v1alph" + + "a/{name=properties/*/displayVideo360Adve" + + "rtiserLinks/*}\332A\004name\022\356\002\n#UpdateDisplayV" + + "ideo360AdvertiserLink\022J.google.analytics" + + ".admin.v1alpha.UpdateDisplayVideo360Adve" + + "rtiserLinkRequest\032=.google.analytics.adm" + + "in.v1alpha.DisplayVideo360AdvertiserLink" + + "\"\273\001\202\323\344\223\002\204\0012_/v1alpha/{display_video_360_" + + "advertiser_link.name=properties/*/displa" + + "yVideo360AdvertiserLinks/*}:!display_vid" + + "eo_360_advertiser_link\332A-display_video_3" + + "60_advertiser_link,update_mask\022\230\002\n(GetDi" + + "splayVideo360AdvertiserLinkProposal\022O.go" + + "ogle.analytics.admin.v1alpha.GetDisplayV" + "ideo360AdvertiserLinkProposalRequest\032E.g" + "oogle.analytics.admin.v1alpha.DisplayVid" - + "eo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/v1" + + "eo360AdvertiserLinkProposal\"T\202\323\344\223\002G\022E/v1" + "alpha/{name=properties/*/displayVideo360" - + "AdvertiserLinkProposals/*}:cancel:\001*\022\353\001\n" - + "\025CreateCustomDimension\022<.google.analytic" - + "s.admin.v1alpha.CreateCustomDimensionReq" + + "AdvertiserLinkProposals/*}\332A\004name\022\253\002\n*Li" + + "stDisplayVideo360AdvertiserLinkProposals" + + "\022Q.google.analytics.admin.v1alpha.ListDi" + + "splayVideo360AdvertiserLinkProposalsRequ" + + "est\032R.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinkProposalsR" + + "esponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=proper" + + "ties/*}/displayVideo360AdvertiserLinkPro" + + "posals\332A\006parent\022\370\002\n+CreateDisplayVideo36" + + "0AdvertiserLinkProposal\022R.google.analyti" + + "cs.admin.v1alpha.CreateDisplayVideo360Ad" + + "vertiserLinkProposalRequest\032E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alpha/{p" + + "arent=properties/*}/displayVideo360Adver" + + "tiserLinkProposals:*display_video_360_ad" + + "vertiser_link_proposal\332A1parent,display_" + + "video_360_advertiser_link_proposal\022\357\001\n+D" + + "eleteDisplayVideo360AdvertiserLinkPropos" + + "al\022R.google.analytics.admin.v1alpha.Dele" + + "teDisplayVideo360AdvertiserLinkProposalR" + + "equest\032\026.google.protobuf.Empty\"T\202\323\344\223\002G*E" + + "/v1alpha/{name=properties/*/displayVideo" + + "360AdvertiserLinkProposals/*}\332A\004name\022\263\002\n" + + ",ApproveDisplayVideo360AdvertiserLinkPro" + + "posal\022S.google.analytics.admin.v1alpha.A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "salRequest\032T.google.analytics.admin.v1al" + + "pha.ApproveDisplayVideo360AdvertiserLink" + + "ProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name" + + "=properties/*/displayVideo360AdvertiserL" + + "inkProposals/*}:approve:\001*\022\241\002\n+CancelDis" + + "playVideo360AdvertiserLinkProposal\022R.goo" + + "gle.analytics.admin.v1alpha.CancelDispla" + + "yVideo360AdvertiserLinkProposalRequest\032E" + + ".google.analytics.admin.v1alpha.DisplayV" + + "ideo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/" + + "v1alpha/{name=properties/*/displayVideo3" + + "60AdvertiserLinkProposals/*}:cancel:\001*\022\353" + + "\001\n\025CreateCustomDimension\022<.google.analyt" + + "ics.admin.v1alpha.CreateCustomDimensionR" + + "equest\032/.google.analytics.admin.v1alpha." + + "CustomDimension\"c\202\323\344\223\002C\"//v1alpha/{paren" + + "t=properties/*}/customDimensions:\020custom" + + "_dimension\332A\027parent,custom_dimension\022\201\002\n" + + "\025UpdateCustomDimension\022<.google.analytic" + + "s.admin.v1alpha.UpdateCustomDimensionReq" + "uest\032/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\"c\202\323\344\223\002C\"//v1alpha/{parent=" - + "properties/*}/customDimensions:\020custom_d" - + "imension\332A\027parent,custom_dimension\022\201\002\n\025U" - + "pdateCustomDimension\022<.google.analytics." - + "admin.v1alpha.UpdateCustomDimensionReque" - + "st\032/.google.analytics.admin.v1alpha.Cust" - + "omDimension\"y\202\323\344\223\002T2@/v1alpha/{custom_di" - + "mension.name=properties/*/customDimensio" - + "ns/*}:\020custom_dimension\332A\034custom_dimensi" - + "on,update_mask\022\323\001\n\024ListCustomDimensions\022" - + ";.google.analytics.admin.v1alpha.ListCus" - + "tomDimensionsRequest\032<.google.analytics." - + "admin.v1alpha.ListCustomDimensionsRespon" - + "se\"@\202\323\344\223\0021\022//v1alpha/{parent=properties/" - + "*}/customDimensions\332A\006parent\022\272\001\n\026Archive" - + "CustomDimension\022=.google.analytics.admin" - + ".v1alpha.ArchiveCustomDimensionRequest\032\026" - + ".google.protobuf.Empty\"I\202\323\344\223\002<\"7/v1alpha" - + "/{name=properties/*/customDimensions/*}:" - + "archive:\001*\332A\004name\022\300\001\n\022GetCustomDimension" - + "\0229.google.analytics.admin.v1alpha.GetCus" - + "tomDimensionRequest\032/.google.analytics.a" - + "dmin.v1alpha.CustomDimension\">\202\323\344\223\0021\022//v" - + "1alpha/{name=properties/*/customDimensio" - + "ns/*}\332A\004name\022\331\001\n\022CreateCustomMetric\0229.go" - + "ogle.analytics.admin.v1alpha.CreateCusto" - + "mMetricRequest\032,.google.analytics.admin." - + "v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1alpha/{" - + "parent=properties/*}/customMetrics:\rcust" - + "om_metric\332A\024parent,custom_metric\022\354\001\n\022Upd" - + "ateCustomMetric\0229.google.analytics.admin" - + ".v1alpha.UpdateCustomMetricRequest\032,.goo" - + "gle.analytics.admin.v1alpha.CustomMetric" - + "\"m\202\323\344\223\002K2:/v1alpha/{custom_metric.name=p" - + "roperties/*/customMetrics/*}:\rcustom_met" - + "ric\332A\031custom_metric,update_mask\022\307\001\n\021List" - + "CustomMetrics\0228.google.analytics.admin.v" - + "1alpha.ListCustomMetricsRequest\0329.google" - + ".analytics.admin.v1alpha.ListCustomMetri" - + "csResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=pro" - + "perties/*}/customMetrics\332A\006parent\022\261\001\n\023Ar" - + "chiveCustomMetric\022:.google.analytics.adm" - + "in.v1alpha.ArchiveCustomMetricRequest\032\026." - + "google.protobuf.Empty\"F\202\323\344\223\0029\"4/v1alpha/" - + "{name=properties/*/customMetrics/*}:arch" - + "ive:\001*\332A\004name\022\264\001\n\017GetCustomMetric\0226.goog" - + "le.analytics.admin.v1alpha.GetCustomMetr" - + "icRequest\032,.google.analytics.admin.v1alp" - + "ha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha/{name=" - + "properties/*/customMetrics/*}\332A\004name\022\325\001\n" - + "\030GetDataRetentionSettings\022?.google.analy" - + "tics.admin.v1alpha.GetDataRetentionSetti" - + "ngsRequest\0325.google.analytics.admin.v1al" - + "pha.DataRetentionSettings\"A\202\323\344\223\0024\0222/v1al" - + "pha/{name=properties/*/dataRetentionSett" - + "ings}\332A\004name\022\254\002\n\033UpdateDataRetentionSett" - + "ings\022B.google.analytics.admin.v1alpha.Up" - + "dateDataRetentionSettingsRequest\0325.googl" - + "e.analytics.admin.v1alpha.DataRetentionS" - + "ettings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_retenti" - + "on_settings.name=properties/*/dataRetent" - + "ionSettings}:\027data_retention_settings\332A#" - + "data_retention_settings,update_mask\022\315\001\n\020" - + "CreateDataStream\0227.google.analytics.admi" - + "n.v1alpha.CreateDataStreamRequest\032*.goog" - + "le.analytics.admin.v1alpha.DataStream\"T\202" - + "\323\344\223\0029\"*/v1alpha/{parent=properties/*}/da" - + "taStreams:\013data_stream\332A\022parent,data_str" - + "eam\022\236\001\n\020DeleteDataStream\0227.google.analyt" - + "ics.admin.v1alpha.DeleteDataStreamReques" - + "t\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v1al" - + "pha/{name=properties/*/dataStreams/*}\332A\004" - + "name\022\336\001\n\020UpdateDataStream\0227.google.analy" - + "tics.admin.v1alpha.UpdateDataStreamReque" - + "st\032*.google.analytics.admin.v1alpha.Data" - + "Stream\"e\202\323\344\223\002E26/v1alpha/{data_stream.na" - + "me=properties/*/dataStreams/*}:\013data_str" - + "eam\332A\027data_stream,update_mask\022\277\001\n\017ListDa" - + "taStreams\0226.google.analytics.admin.v1alp" - + "ha.ListDataStreamsRequest\0327.google.analy" - + "tics.admin.v1alpha.ListDataStreamsRespon" - + "se\";\202\323\344\223\002,\022*/v1alpha/{parent=properties/" - + "*}/dataStreams\332A\006parent\022\254\001\n\rGetDataStrea" - + "m\0224.google.analytics.admin.v1alpha.GetDa" - + "taStreamRequest\032*.google.analytics.admin" - + ".v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1alpha/{n" - + "ame=properties/*/dataStreams/*}\332A\004name\032\374" - + "\001\312A\035analyticsadmin.googleapis.com\322A\330\001htt" - + "ps://www.googleapis.com/auth/analytics.e" - + "dit,https://www.googleapis.com/auth/anal" - + "ytics.manage.users,https://www.googleapi" - + "s.com/auth/analytics.manage.users.readon" - + "ly,https://www.googleapis.com/auth/analy" - + "tics.readonlyB\200\001\n\"com.google.analytics.a" - + "dmin.v1alphaB\023AnalyticsAdminProtoP\001ZCgoo" - + "gle.golang.org/genproto/googleapis/analy" - + "tics/admin/v1alpha;adminb\006proto3" + + "stomDimension\"y\202\323\344\223\002T2@/v1alpha/{custom_" + + "dimension.name=properties/*/customDimens" + + "ions/*}:\020custom_dimension\332A\034custom_dimen" + + "sion,update_mask\022\323\001\n\024ListCustomDimension" + + "s\022;.google.analytics.admin.v1alpha.ListC" + + "ustomDimensionsRequest\032<.google.analytic" + + "s.admin.v1alpha.ListCustomDimensionsResp" + + "onse\"@\202\323\344\223\0021\022//v1alpha/{parent=propertie" + + "s/*}/customDimensions\332A\006parent\022\272\001\n\026Archi" + + "veCustomDimension\022=.google.analytics.adm" + + "in.v1alpha.ArchiveCustomDimensionRequest" + + "\032\026.google.protobuf.Empty\"I\202\323\344\223\002<\"7/v1alp" + + "ha/{name=properties/*/customDimensions/*" + + "}:archive:\001*\332A\004name\022\300\001\n\022GetCustomDimensi" + + "on\0229.google.analytics.admin.v1alpha.GetC" + + "ustomDimensionRequest\032/.google.analytics" + + ".admin.v1alpha.CustomDimension\">\202\323\344\223\0021\022/" + + "/v1alpha/{name=properties/*/customDimens" + + "ions/*}\332A\004name\022\331\001\n\022CreateCustomMetric\0229." + + "google.analytics.admin.v1alpha.CreateCus" + + "tomMetricRequest\032,.google.analytics.admi" + + "n.v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1alpha" + + "/{parent=properties/*}/customMetrics:\rcu" + + "stom_metric\332A\024parent,custom_metric\022\354\001\n\022U" + + "pdateCustomMetric\0229.google.analytics.adm" + + "in.v1alpha.UpdateCustomMetricRequest\032,.g" + + "oogle.analytics.admin.v1alpha.CustomMetr" + + "ic\"m\202\323\344\223\002K2:/v1alpha/{custom_metric.name" + + "=properties/*/customMetrics/*}:\rcustom_m" + + "etric\332A\031custom_metric,update_mask\022\307\001\n\021Li" + + "stCustomMetrics\0228.google.analytics.admin" + + ".v1alpha.ListCustomMetricsRequest\0329.goog" + + "le.analytics.admin.v1alpha.ListCustomMet" + + "ricsResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=p" + + "roperties/*}/customMetrics\332A\006parent\022\261\001\n\023" + + "ArchiveCustomMetric\022:.google.analytics.a" + + "dmin.v1alpha.ArchiveCustomMetricRequest\032" + + "\026.google.protobuf.Empty\"F\202\323\344\223\0029\"4/v1alph" + + "a/{name=properties/*/customMetrics/*}:ar" + + "chive:\001*\332A\004name\022\264\001\n\017GetCustomMetric\0226.go" + + "ogle.analytics.admin.v1alpha.GetCustomMe" + + "tricRequest\032,.google.analytics.admin.v1a" + + "lpha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha/{nam" + + "e=properties/*/customMetrics/*}\332A\004name\022\325" + + "\001\n\030GetDataRetentionSettings\022?.google.ana" + + "lytics.admin.v1alpha.GetDataRetentionSet" + + "tingsRequest\0325.google.analytics.admin.v1" + + "alpha.DataRetentionSettings\"A\202\323\344\223\0024\0222/v1" + + "alpha/{name=properties/*/dataRetentionSe" + + "ttings}\332A\004name\022\254\002\n\033UpdateDataRetentionSe" + + "ttings\022B.google.analytics.admin.v1alpha." + + "UpdateDataRetentionSettingsRequest\0325.goo" + + "gle.analytics.admin.v1alpha.DataRetentio" + + "nSettings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_reten" + + "tion_settings.name=properties/*/dataRete" + + "ntionSettings}:\027data_retention_settings\332" + + "A#data_retention_settings,update_mask\022\315\001" + + "\n\020CreateDataStream\0227.google.analytics.ad" + + "min.v1alpha.CreateDataStreamRequest\032*.go" + + "ogle.analytics.admin.v1alpha.DataStream\"" + + "T\202\323\344\223\0029\"*/v1alpha/{parent=properties/*}/" + + "dataStreams:\013data_stream\332A\022parent,data_s" + + "tream\022\236\001\n\020DeleteDataStream\0227.google.anal" + + "ytics.admin.v1alpha.DeleteDataStreamRequ" + + "est\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v1" + + "alpha/{name=properties/*/dataStreams/*}\332" + + "A\004name\022\336\001\n\020UpdateDataStream\0227.google.ana" + + "lytics.admin.v1alpha.UpdateDataStreamReq" + + "uest\032*.google.analytics.admin.v1alpha.Da" + + "taStream\"e\202\323\344\223\002E26/v1alpha/{data_stream." + + "name=properties/*/dataStreams/*}:\013data_s" + + "tream\332A\027data_stream,update_mask\022\277\001\n\017List" + + "DataStreams\0226.google.analytics.admin.v1a" + + "lpha.ListDataStreamsRequest\0327.google.ana" + + "lytics.admin.v1alpha.ListDataStreamsResp" + + "onse\";\202\323\344\223\002,\022*/v1alpha/{parent=propertie" + + "s/*}/dataStreams\332A\006parent\022\254\001\n\rGetDataStr" + + "eam\0224.google.analytics.admin.v1alpha.Get" + + "DataStreamRequest\032*.google.analytics.adm" + + "in.v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1alpha/" + + "{name=properties/*/dataStreams/*}\332A\004name" + + "\022\244\001\n\013GetAudience\0222.google.analytics.admi" + + "n.v1alpha.GetAudienceRequest\032(.google.an" + + "alytics.admin.v1alpha.Audience\"7\202\323\344\223\002*\022(" + + "/v1alpha/{name=properties/*/audiences/*}" + + "\332A\004name\022\267\001\n\rListAudiences\0224.google.analy" + + "tics.admin.v1alpha.ListAudiencesRequest\032" + + "5.google.analytics.admin.v1alpha.ListAud" + + "iencesResponse\"9\202\323\344\223\002*\022(/v1alpha/{parent" + + "=properties/*}/audiences\332A\006parent\022\277\001\n\016Cr" + + "eateAudience\0225.google.analytics.admin.v1" + + "alpha.CreateAudienceRequest\032(.google.ana" + + "lytics.admin.v1alpha.Audience\"L\202\323\344\223\0024\"(/" + + "v1alpha/{parent=properties/*}/audiences:" + + "\010audience\332A\017parent,audience\022\315\001\n\016UpdateAu" + + "dience\0225.google.analytics.admin.v1alpha." + + "UpdateAudienceRequest\032(.google.analytics" + + ".admin.v1alpha.Audience\"Z\202\323\344\223\002=21/v1alph" + + "a/{audience.name=properties/*/audiences/" + + "*}:\010audience\332A\024audience,update_mask\022\236\001\n\017" + + "ArchiveAudience\0226.google.analytics.admin" + + ".v1alpha.ArchiveAudienceRequest\032\026.google" + + ".protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=" + + "properties/*/audiences/*}:archive:\001*\022\315\001\n" + + "\026GetAttributionSettings\022=.google.analyti" + + "cs.admin.v1alpha.GetAttributionSettingsR" + + "equest\0323.google.analytics.admin.v1alpha." + + "AttributionSettings\"?\202\323\344\223\0022\0220/v1alpha/{n" + + "ame=properties/*/attributionSettings}\332A\004" + + "name\022\233\002\n\031UpdateAttributionSettings\022@.goo" + + "gle.analytics.admin.v1alpha.UpdateAttrib" + + "utionSettingsRequest\0323.google.analytics." + + "admin.v1alpha.AttributionSettings\"\206\001\202\323\344\223" + + "\002]2E/v1alpha/{attribution_settings.name=" + + "properties/*/attributionSettings}:\024attri" + + "bution_settings\332A attribution_settings,u" + + "pdate_mask\032\374\001\312A\035analyticsadmin.googleapi" + + "s.com\322A\330\001https://www.googleapis.com/auth" + + "/analytics.edit,https://www.googleapis.c" + + "om/auth/analytics.manage.users,https://w" + + "ww.googleapis.com/auth/analytics.manage." + + "users.readonly,https://www.googleapis.co" + + "m/auth/analytics.readonlyB\200\001\n\"com.google", + ".analytics.admin.v1alphaB\023AnalyticsAdmin" + + "ProtoP\001ZCgoogle.golang.org/genproto/goog" + + "leapis/analytics/admin/v1alpha;adminb\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), @@ -1902,6 +1997,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(92); + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor = + getDescriptor().getMessageTypes().get(93); + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor = + getDescriptor().getMessageTypes().get(94); + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor, + new java.lang.String[] { + "Audiences", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(95); + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor, + new java.lang.String[] { + "Parent", "Audience", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(96); + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor, + new java.lang.String[] { + "Audience", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(97); + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(98); + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(99); + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor, + new java.lang.String[] { + "AttributionSettings", "UpdateMask", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -1912,6 +2071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java new file mode 100644 index 000000000000..a5a03489c429 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java @@ -0,0 +1,653 @@ +/* + * 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 ArchiveAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveAudienceRequest} + */ +public final class ArchiveAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + ArchiveAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveAudienceRequest.newBuilder() to construct. + private ArchiveAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveAudienceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveAudienceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArchiveAudienceRequest( + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_ArchiveAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/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. Example format: properties/1234/audiences/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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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.ArchiveAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest other = + (com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) 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.ArchiveAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest 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.ArchiveAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest 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.ArchiveAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest 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.ArchiveAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest 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.ArchiveAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest 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.ArchiveAudienceRequest 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.ArchiveAudienceRequest 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.ArchiveAudienceRequest 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 ArchiveAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + com.google.analytics.admin.v1alpha.ArchiveAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.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_ArchiveAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest build() { + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result = + new com.google.analytics.admin.v1alpha.ArchiveAudienceRequest(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.ArchiveAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.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.ArchiveAudienceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234/audiences/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. Example format: properties/1234/audiences/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. Example format: properties/1234/audiences/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. Example format: properties/1234/audiences/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. Example format: properties/1234/audiences/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.ArchiveAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArchiveAudienceRequest(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.ArchiveAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..ecf25c7092b8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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 ArchiveAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java new file mode 100644 index 000000000000..d76efcfcec33 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java @@ -0,0 +1,1915 @@ +/* + * 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; + +/** + * + * + *
+ * The attribution settings used for a given property. This is a singleton
+ * resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AttributionSettings} + */ +public final class AttributionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AttributionSettings) + AttributionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttributionSettings.newBuilder() to construct. + private AttributionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttributionSettings() { + name_ = ""; + acquisitionConversionEventLookbackWindow_ = 0; + otherConversionEventLookbackWindow_ = 0; + reportingAttributionModel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttributionSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AttributionSettings( + 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 16: + { + int rawValue = input.readEnum(); + + acquisitionConversionEventLookbackWindow_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + otherConversionEventLookbackWindow_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + reportingAttributionModel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_AttributionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AttributionSettings.class, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder.class); + } + + /** + * + * + *
+   * How far back in time events should be considered for inclusion in a
+   * converting path which leads to the first install of an app or the first
+   * visit to a site.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow} + */ + public enum AcquisitionConversionEventLookbackWindow + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED(0), + /** + * + * + *
+     * 7-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + */ + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS(1), + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + */ + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * 7-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + */ + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS_VALUE = 1; + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + */ + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS_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 AcquisitionConversionEventLookbackWindow 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 AcquisitionConversionEventLookbackWindow forNumber(int value) { + switch (value) { + case 0: + return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + case 1: + return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS; + case 2: + return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap< + AcquisitionConversionEventLookbackWindow> + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap< + AcquisitionConversionEventLookbackWindow>() { + public AcquisitionConversionEventLookbackWindow findValueByNumber(int number) { + return AcquisitionConversionEventLookbackWindow.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.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AcquisitionConversionEventLookbackWindow[] VALUES = values(); + + public static AcquisitionConversionEventLookbackWindow 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 AcquisitionConversionEventLookbackWindow(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow) + } + + /** + * + * + *
+   * How far back in time events should be considered for inclusion in a
+   * converting path for all conversions other than first app install/first site
+   * visit.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow} + */ + public enum OtherConversionEventLookbackWindow + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED(0), + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS(1), + /** + * + * + *
+     * 60-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS(2), + /** + * + * + *
+     * 90-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS_VALUE = 1; + /** + * + * + *
+     * 60-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS_VALUE = 2; + /** + * + * + *
+     * 90-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS_VALUE = 3; + + 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 OtherConversionEventLookbackWindow 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 OtherConversionEventLookbackWindow forNumber(int value) { + switch (value) { + case 0: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + case 1: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS; + case 2: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS; + case 3: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap< + OtherConversionEventLookbackWindow> + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OtherConversionEventLookbackWindow findValueByNumber(int number) { + return OtherConversionEventLookbackWindow.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.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final OtherConversionEventLookbackWindow[] VALUES = values(); + + public static OtherConversionEventLookbackWindow 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 OtherConversionEventLookbackWindow(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow) + } + + /** + * + * + *
+   * The reporting attribution model used to calculate conversion credit in this
+   * property's reports.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel} + */ + public enum ReportingAttributionModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Reporting attribution model unspecified.
+     * 
+ * + * REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED(0), + /** + * + * + *
+     * Data-driven attribution distributes credit for the conversion based on
+     * data for each conversion event. Each Data-driven model is specific to
+     * each advertiser and each conversion event.
+     * 
+ * + * CROSS_CHANNEL_DATA_DRIVEN = 1; + */ + CROSS_CHANNEL_DATA_DRIVEN(1), + /** + * + * + *
+     * Ignores direct traffic and attributes 100% of the conversion value to the
+     * last channel that the customer clicked through (or engaged view through
+     * for YouTube) before converting.
+     * 
+ * + * CROSS_CHANNEL_LAST_CLICK = 2; + */ + CROSS_CHANNEL_LAST_CLICK(2), + /** + * + * + *
+     * Gives all credit for the conversion to the first channel that a customer
+     * clicked (or engaged view through for YouTube) before converting.
+     * 
+ * + * CROSS_CHANNEL_FIRST_CLICK = 3; + */ + CROSS_CHANNEL_FIRST_CLICK(3), + /** + * + * + *
+     * Distributes the credit for the conversion equally across all the channels
+     * a customer clicked (or engaged view through for YouTube) before
+     * converting.
+     * 
+ * + * CROSS_CHANNEL_LINEAR = 4; + */ + CROSS_CHANNEL_LINEAR(4), + /** + * + * + *
+     * Attributes 40% credit to the first and last interaction, and the
+     * remaining 20% credit is distributed evenly to the middle interactions.
+     * 
+ * + * CROSS_CHANNEL_POSITION_BASED = 5; + */ + CROSS_CHANNEL_POSITION_BASED(5), + /** + * + * + *
+     * Gives more credit to the touchpoints that happened closer in time to
+     * the conversion.
+     * 
+ * + * CROSS_CHANNEL_TIME_DECAY = 6; + */ + CROSS_CHANNEL_TIME_DECAY(6), + /** + * + * + *
+     * Attributes 100% of the conversion value to the last Google Ads channel
+     * that the customer clicked through before converting.
+     * 
+ * + * ADS_PREFERRED_LAST_CLICK = 7; + */ + ADS_PREFERRED_LAST_CLICK(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Reporting attribution model unspecified.
+     * 
+ * + * REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + public static final int REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data-driven attribution distributes credit for the conversion based on
+     * data for each conversion event. Each Data-driven model is specific to
+     * each advertiser and each conversion event.
+     * 
+ * + * CROSS_CHANNEL_DATA_DRIVEN = 1; + */ + public static final int CROSS_CHANNEL_DATA_DRIVEN_VALUE = 1; + /** + * + * + *
+     * Ignores direct traffic and attributes 100% of the conversion value to the
+     * last channel that the customer clicked through (or engaged view through
+     * for YouTube) before converting.
+     * 
+ * + * CROSS_CHANNEL_LAST_CLICK = 2; + */ + public static final int CROSS_CHANNEL_LAST_CLICK_VALUE = 2; + /** + * + * + *
+     * Gives all credit for the conversion to the first channel that a customer
+     * clicked (or engaged view through for YouTube) before converting.
+     * 
+ * + * CROSS_CHANNEL_FIRST_CLICK = 3; + */ + public static final int CROSS_CHANNEL_FIRST_CLICK_VALUE = 3; + /** + * + * + *
+     * Distributes the credit for the conversion equally across all the channels
+     * a customer clicked (or engaged view through for YouTube) before
+     * converting.
+     * 
+ * + * CROSS_CHANNEL_LINEAR = 4; + */ + public static final int CROSS_CHANNEL_LINEAR_VALUE = 4; + /** + * + * + *
+     * Attributes 40% credit to the first and last interaction, and the
+     * remaining 20% credit is distributed evenly to the middle interactions.
+     * 
+ * + * CROSS_CHANNEL_POSITION_BASED = 5; + */ + public static final int CROSS_CHANNEL_POSITION_BASED_VALUE = 5; + /** + * + * + *
+     * Gives more credit to the touchpoints that happened closer in time to
+     * the conversion.
+     * 
+ * + * CROSS_CHANNEL_TIME_DECAY = 6; + */ + public static final int CROSS_CHANNEL_TIME_DECAY_VALUE = 6; + /** + * + * + *
+     * Attributes 100% of the conversion value to the last Google Ads channel
+     * that the customer clicked through before converting.
+     * 
+ * + * ADS_PREFERRED_LAST_CLICK = 7; + */ + public static final int ADS_PREFERRED_LAST_CLICK_VALUE = 7; + + 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 ReportingAttributionModel 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 ReportingAttributionModel forNumber(int value) { + switch (value) { + case 0: + return REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; + case 1: + return CROSS_CHANNEL_DATA_DRIVEN; + case 2: + return CROSS_CHANNEL_LAST_CLICK; + case 3: + return CROSS_CHANNEL_FIRST_CLICK; + case 4: + return CROSS_CHANNEL_LINEAR; + case 5: + return CROSS_CHANNEL_POSITION_BASED; + case 6: + return CROSS_CHANNEL_TIME_DECAY; + case 7: + return ADS_PREFERRED_LAST_CLICK; + 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 ReportingAttributionModel findValueByNumber(int number) { + return ReportingAttributionModel.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.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ReportingAttributionModel[] VALUES = values(); + + public static ReportingAttributionModel 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 ReportingAttributionModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * 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 attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * 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 ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER = 2; + private int acquisitionConversionEventLookbackWindow_; + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion events.
+   * The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public int getAcquisitionConversionEventLookbackWindowValue() { + return acquisitionConversionEventLookbackWindow_; + } + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion events.
+   * The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + getAcquisitionConversionEventLookbackWindow() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.valueOf( + acquisitionConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.UNRECOGNIZED + : result; + } + + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER = 3; + private int otherConversionEventLookbackWindow_; + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion events.
+   * The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. + */ + @java.lang.Override + public int getOtherConversionEventLookbackWindowValue() { + return otherConversionEventLookbackWindow_; + } + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion events.
+   * The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The otherConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + getOtherConversionEventLookbackWindow() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .OtherConversionEventLookbackWindow.valueOf(otherConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + .UNRECOGNIZED + : result; + } + + public static final int REPORTING_ATTRIBUTION_MODEL_FIELD_NUMBER = 4; + private int reportingAttributionModel_; + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion credit in this
+   * property's reports.
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportingAttributionModel. + */ + @java.lang.Override + public int getReportingAttributionModelValue() { + return reportingAttributionModel_; + } + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion credit in this
+   * property's reports.
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingAttributionModel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + getReportingAttributionModel() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.valueOf( + reportingAttributionModel_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (acquisitionConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + .ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, acquisitionConversionEventLookbackWindow_); + } + if (otherConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + .OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, otherConversionEventLookbackWindow_); + } + if (reportingAttributionModel_ + != com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, reportingAttributionModel_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (acquisitionConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + .ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, acquisitionConversionEventLookbackWindow_); + } + if (otherConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + .OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, otherConversionEventLookbackWindow_); + } + if (reportingAttributionModel_ + != com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reportingAttributionModel_); + } + 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.AttributionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AttributionSettings other = + (com.google.analytics.admin.v1alpha.AttributionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (acquisitionConversionEventLookbackWindow_ + != other.acquisitionConversionEventLookbackWindow_) return false; + if (otherConversionEventLookbackWindow_ != other.otherConversionEventLookbackWindow_) + return false; + if (reportingAttributionModel_ != other.reportingAttributionModel_) 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) + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + acquisitionConversionEventLookbackWindow_; + hash = (37 * hash) + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + otherConversionEventLookbackWindow_; + hash = (37 * hash) + REPORTING_ATTRIBUTION_MODEL_FIELD_NUMBER; + hash = (53 * hash) + reportingAttributionModel_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings 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.AttributionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings 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.AttributionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings 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.AttributionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings 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.AttributionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings 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.AttributionSettings 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.AttributionSettings 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.AttributionSettings 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; + } + /** + * + * + *
+   * The attribution settings used for a given property. This is a singleton
+   * resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AttributionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AttributionSettings) + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AttributionSettings.class, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AttributionSettings.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_ = ""; + + acquisitionConversionEventLookbackWindow_ = 0; + + otherConversionEventLookbackWindow_ = 0; + + reportingAttributionModel_ = 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_AttributionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings build() { + com.google.analytics.admin.v1alpha.AttributionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings buildPartial() { + com.google.analytics.admin.v1alpha.AttributionSettings result = + new com.google.analytics.admin.v1alpha.AttributionSettings(this); + result.name_ = name_; + result.acquisitionConversionEventLookbackWindow_ = acquisitionConversionEventLookbackWindow_; + result.otherConversionEventLookbackWindow_ = otherConversionEventLookbackWindow_; + result.reportingAttributionModel_ = reportingAttributionModel_; + 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.AttributionSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.AttributionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AttributionSettings other) { + if (other == com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.acquisitionConversionEventLookbackWindow_ != 0) { + setAcquisitionConversionEventLookbackWindowValue( + other.getAcquisitionConversionEventLookbackWindowValue()); + } + if (other.otherConversionEventLookbackWindow_ != 0) { + setOtherConversionEventLookbackWindowValue( + other.getOtherConversionEventLookbackWindowValue()); + } + if (other.reportingAttributionModel_ != 0) { + setReportingAttributionModelValue(other.getReportingAttributionModelValue()); + } + 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.AttributionSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AttributionSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * 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 attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * 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 attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * 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 attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * 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 attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * 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 acquisitionConversionEventLookbackWindow_ = 0; + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion events.
+     * The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public int getAcquisitionConversionEventLookbackWindowValue() { + return acquisitionConversionEventLookbackWindow_; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion events.
+     * The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for acquisitionConversionEventLookbackWindow + * to set. + * @return This builder for chaining. + */ + public Builder setAcquisitionConversionEventLookbackWindowValue(int value) { + + acquisitionConversionEventLookbackWindow_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion events.
+     * The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + getAcquisitionConversionEventLookbackWindow() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.valueOf( + acquisitionConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion events.
+     * The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The acquisitionConversionEventLookbackWindow to set. + * @return This builder for chaining. + */ + public Builder setAcquisitionConversionEventLookbackWindow( + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + value) { + if (value == null) { + throw new NullPointerException(); + } + + acquisitionConversionEventLookbackWindow_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion events.
+     * The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAcquisitionConversionEventLookbackWindow() { + + acquisitionConversionEventLookbackWindow_ = 0; + onChanged(); + return this; + } + + private int otherConversionEventLookbackWindow_ = 0; + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion events.
+     * The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. + */ + @java.lang.Override + public int getOtherConversionEventLookbackWindowValue() { + return otherConversionEventLookbackWindow_; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion events.
+     * The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for otherConversionEventLookbackWindow to + * set. + * @return This builder for chaining. + */ + public Builder setOtherConversionEventLookbackWindowValue(int value) { + + otherConversionEventLookbackWindow_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion events.
+     * The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The otherConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + getOtherConversionEventLookbackWindow() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .OtherConversionEventLookbackWindow.valueOf(otherConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings + .OtherConversionEventLookbackWindow.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion events.
+     * The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The otherConversionEventLookbackWindow to set. + * @return This builder for chaining. + */ + public Builder setOtherConversionEventLookbackWindow( + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + value) { + if (value == null) { + throw new NullPointerException(); + } + + otherConversionEventLookbackWindow_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion events.
+     * The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOtherConversionEventLookbackWindow() { + + otherConversionEventLookbackWindow_ = 0; + onChanged(); + return this; + } + + private int reportingAttributionModel_ = 0; + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion credit in this
+     * property's reports.
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportingAttributionModel. + */ + @java.lang.Override + public int getReportingAttributionModelValue() { + return reportingAttributionModel_; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion credit in this
+     * property's reports.
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for reportingAttributionModel to set. + * @return This builder for chaining. + */ + public Builder setReportingAttributionModelValue(int value) { + + reportingAttributionModel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion credit in this
+     * property's reports.
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingAttributionModel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + getReportingAttributionModel() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.valueOf( + reportingAttributionModel_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion credit in this
+     * property's reports.
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The reportingAttributionModel to set. + * @return This builder for chaining. + */ + public Builder setReportingAttributionModel( + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel value) { + if (value == null) { + throw new NullPointerException(); + } + + reportingAttributionModel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion credit in this
+     * property's reports.
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearReportingAttributionModel() { + + reportingAttributionModel_ = 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.AttributionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AttributionSettings) + private static final com.google.analytics.admin.v1alpha.AttributionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AttributionSettings(); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AttributionSettings(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.AttributionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java new file mode 100644 index 000000000000..2043a8d9b8c9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2022 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 AttributionSettingsName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/attributionSettings"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected AttributionSettingsName() { + property = null; + } + + private AttributionSettingsName(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 AttributionSettingsName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static AttributionSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, "AttributionSettingsName.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 (AttributionSettingsName 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()) { + AttributionSettingsName that = ((AttributionSettingsName) 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}/attributionSettings. */ + 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(AttributionSettingsName attributionSettingsName) { + this.property = attributionSettingsName.property; + } + + public AttributionSettingsName build() { + return new AttributionSettingsName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java new file mode 100644 index 000000000000..2abc0d522871 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java @@ -0,0 +1,156 @@ +/* + * 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 AttributionSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AttributionSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion events.
+   * The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. + */ + int getAcquisitionConversionEventLookbackWindowValue(); + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion events.
+   * The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The acquisitionConversionEventLookbackWindow. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + getAcquisitionConversionEventLookbackWindow(); + + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion events.
+   * The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. + */ + int getOtherConversionEventLookbackWindowValue(); + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion events.
+   * The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The otherConversionEventLookbackWindow. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + getOtherConversionEventLookbackWindow(); + + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion credit in this
+   * property's reports.
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportingAttributionModel. + */ + int getReportingAttributionModelValue(); + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion credit in this
+   * property's reports.
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingAttributionModel. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + getReportingAttributionModel(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java new file mode 100644 index 000000000000..dc7da7e1d00d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java @@ -0,0 +1,2459 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a GA4 Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Audience} + */ +public final class Audience extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Audience) + AudienceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Audience.newBuilder() to construct. + private Audience(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Audience() { + name_ = ""; + displayName_ = ""; + description_ = ""; + exclusionDurationMode_ = 0; + filterClauses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Audience(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Audience( + 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: + { + 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(); + + description_ = s; + break; + } + case 32: + { + membershipDurationDays_ = input.readInt32(); + break; + } + case 40: + { + adsPersonalizationEnabled_ = input.readBool(); + break; + } + case 50: + { + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder subBuilder = null; + if (eventTrigger_ != null) { + subBuilder = eventTrigger_.toBuilder(); + } + eventTrigger_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventTrigger_); + eventTrigger_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + int rawValue = input.readEnum(); + + exclusionDurationMode_ = rawValue; + break; + } + case 66: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + filterClauses_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AudienceFilterClause>(); + mutable_bitField0_ |= 0x00000001; + } + filterClauses_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterClause.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Audience.class, + com.google.analytics.admin.v1alpha.Audience.Builder.class); + } + + /** + * + * + *
+   * Specifies how long an exclusion lasts for users that meet the exclusion
+   * filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} + */ + public enum AudienceExclusionDurationMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + */ + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Exclude users from the Audience during periods when they meet the
+     * filter clause.
+     * 
+ * + * EXCLUDE_TEMPORARILY = 1; + */ + EXCLUDE_TEMPORARILY(1), + /** + * + * + *
+     * Exclude users from the Audience if they've ever met the filter clause.
+     * 
+ * + * EXCLUDE_PERMANENTLY = 2; + */ + EXCLUDE_PERMANENTLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + */ + public static final int AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exclude users from the Audience during periods when they meet the
+     * filter clause.
+     * 
+ * + * EXCLUDE_TEMPORARILY = 1; + */ + public static final int EXCLUDE_TEMPORARILY_VALUE = 1; + /** + * + * + *
+     * Exclude users from the Audience if they've ever met the filter clause.
+     * 
+ * + * EXCLUDE_PERMANENTLY = 2; + */ + public static final int EXCLUDE_PERMANENTLY_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 AudienceExclusionDurationMode 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 AudienceExclusionDurationMode forNumber(int value) { + switch (value) { + case 0: + return AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED; + case 1: + return EXCLUDE_TEMPORARILY; + case 2: + return EXCLUDE_PERMANENTLY; + 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 AudienceExclusionDurationMode findValueByNumber(int number) { + return AudienceExclusionDurationMode.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.Audience.getDescriptor().getEnumTypes().get(0); + } + + private static final AudienceExclusionDurationMode[] VALUES = values(); + + public static AudienceExclusionDurationMode 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 AudienceExclusionDurationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * 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. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * 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. The display name of the Audience.
+   * 
+ * + * 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. The display name of the Audience.
+   * 
+ * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 MEMBERSHIP_DURATION_DAYS_FIELD_NUMBER = 4; + private int membershipDurationDays_; + /** + * + * + *
+   * Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more
+   * than 540 days.
+   * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The membershipDurationDays. + */ + @java.lang.Override + public int getMembershipDurationDays() { + return membershipDurationDays_; + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; + private boolean adsPersonalizationEnabled_; + /** + * + * + *
+   * Output only. It is automatically set by GA to false if this is an NPA Audience and is
+   * excluded from ads personalization.
+   * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public boolean getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_; + } + + public static final int EVENT_TRIGGER_FIELD_NUMBER = 6; + private com.google.analytics.admin.v1alpha.AudienceEventTrigger eventTrigger_; + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+   * event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTrigger field is set. + */ + @java.lang.Override + public boolean hasEventTrigger() { + return eventTrigger_ != null; + } + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+   * event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTrigger. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger() { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+   * event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder + getEventTriggerOrBuilder() { + return getEventTrigger(); + } + + public static final int EXCLUSION_DURATION_MODE_FIELD_NUMBER = 7; + private int exclusionDurationMode_; + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+   * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+   * there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for exclusionDurationMode. + */ + @java.lang.Override + public int getExclusionDurationModeValue() { + return exclusionDurationMode_; + } + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+   * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+   * there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The exclusionDurationMode. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + getExclusionDurationMode() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.valueOf( + exclusionDurationMode_); + return result == null + ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED + : result; + } + + public static final int FILTER_CLAUSES_FIELD_NUMBER = 8; + private java.util.List filterClauses_; + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterClausesList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterClausesOrBuilderList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public int getFilterClausesCount() { + return filterClauses_.size(); + } + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index) { + return filterClauses_.get(index); + } + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( + int index) { + return filterClauses_.get(index); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (membershipDurationDays_ != 0) { + output.writeInt32(4, membershipDurationDays_); + } + if (adsPersonalizationEnabled_ != false) { + output.writeBool(5, adsPersonalizationEnabled_); + } + if (eventTrigger_ != null) { + output.writeMessage(6, getEventTrigger()); + } + if (exclusionDurationMode_ + != com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + .AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, exclusionDurationMode_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + output.writeMessage(8, filterClauses_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (membershipDurationDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, membershipDurationDays_); + } + if (adsPersonalizationEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, adsPersonalizationEnabled_); + } + if (eventTrigger_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEventTrigger()); + } + if (exclusionDurationMode_ + != com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + .AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, exclusionDurationMode_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, filterClauses_.get(i)); + } + 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.Audience)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.Audience other = + (com.google.analytics.admin.v1alpha.Audience) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getMembershipDurationDays() != other.getMembershipDurationDays()) return false; + if (getAdsPersonalizationEnabled() != other.getAdsPersonalizationEnabled()) return false; + if (hasEventTrigger() != other.hasEventTrigger()) return false; + if (hasEventTrigger()) { + if (!getEventTrigger().equals(other.getEventTrigger())) return false; + } + if (exclusionDurationMode_ != other.exclusionDurationMode_) return false; + if (!getFilterClausesList().equals(other.getFilterClausesList())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MEMBERSHIP_DURATION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipDurationDays(); + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdsPersonalizationEnabled()); + if (hasEventTrigger()) { + hash = (37 * hash) + EVENT_TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getEventTrigger().hashCode(); + } + hash = (37 * hash) + EXCLUSION_DURATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + exclusionDurationMode_; + if (getFilterClausesCount() > 0) { + hash = (37 * hash) + FILTER_CLAUSES_FIELD_NUMBER; + hash = (53 * hash) + getFilterClausesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Audience 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.Audience parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Audience 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.Audience parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Audience 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.Audience parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Audience 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.Audience parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Audience 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.Audience 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.Audience 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.Audience 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 resource message representing a GA4 Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Audience} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Audience) + com.google.analytics.admin.v1alpha.AudienceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Audience.class, + com.google.analytics.admin.v1alpha.Audience.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.Audience.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFilterClausesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + displayName_ = ""; + + description_ = ""; + + membershipDurationDays_ = 0; + + adsPersonalizationEnabled_ = false; + + if (eventTriggerBuilder_ == null) { + eventTrigger_ = null; + } else { + eventTrigger_ = null; + eventTriggerBuilder_ = null; + } + exclusionDurationMode_ = 0; + + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + filterClausesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience build() { + com.google.analytics.admin.v1alpha.Audience result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience buildPartial() { + com.google.analytics.admin.v1alpha.Audience result = + new com.google.analytics.admin.v1alpha.Audience(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.displayName_ = displayName_; + result.description_ = description_; + result.membershipDurationDays_ = membershipDurationDays_; + result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; + if (eventTriggerBuilder_ == null) { + result.eventTrigger_ = eventTrigger_; + } else { + result.eventTrigger_ = eventTriggerBuilder_.build(); + } + result.exclusionDurationMode_ = exclusionDurationMode_; + if (filterClausesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterClauses_ = filterClauses_; + } else { + result.filterClauses_ = filterClausesBuilder_.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.Audience) { + return mergeFrom((com.google.analytics.admin.v1alpha.Audience) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.Audience other) { + if (other == com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getMembershipDurationDays() != 0) { + setMembershipDurationDays(other.getMembershipDurationDays()); + } + if (other.getAdsPersonalizationEnabled() != false) { + setAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasEventTrigger()) { + mergeEventTrigger(other.getEventTrigger()); + } + if (other.exclusionDurationMode_ != 0) { + setExclusionDurationModeValue(other.getExclusionDurationModeValue()); + } + if (filterClausesBuilder_ == null) { + if (!other.filterClauses_.isEmpty()) { + if (filterClauses_.isEmpty()) { + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterClausesIsMutable(); + filterClauses_.addAll(other.filterClauses_); + } + onChanged(); + } + } else { + if (!other.filterClauses_.isEmpty()) { + if (filterClausesBuilder_.isEmpty()) { + filterClausesBuilder_.dispose(); + filterClausesBuilder_ = null; + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000001); + filterClausesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterClausesFieldBuilder() + : null; + } else { + filterClausesBuilder_.addAllMessages(other.filterClauses_); + } + } + } + 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.Audience parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.Audience) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * 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. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * 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. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * 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. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * 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. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * 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. The display name of the Audience.
+     * 
+ * + * 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. The display name of the Audience.
+     * 
+ * + * 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. The display name of the Audience.
+     * 
+ * + * 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. The display name of the Audience.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the Audience.
+     * 
+ * + * 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 description_ = ""; + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 membershipDurationDays_; + /** + * + * + *
+     * Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more
+     * than 540 days.
+     * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The membershipDurationDays. + */ + @java.lang.Override + public int getMembershipDurationDays() { + return membershipDurationDays_; + } + /** + * + * + *
+     * Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more
+     * than 540 days.
+     * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The membershipDurationDays to set. + * @return This builder for chaining. + */ + public Builder setMembershipDurationDays(int value) { + + membershipDurationDays_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more
+     * than 540 days.
+     * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearMembershipDurationDays() { + + membershipDurationDays_ = 0; + onChanged(); + return this; + } + + private boolean adsPersonalizationEnabled_; + /** + * + * + *
+     * Output only. It is automatically set by GA to false if this is an NPA Audience and is
+     * excluded from ads personalization.
+     * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public boolean getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_; + } + /** + * + * + *
+     * Output only. It is automatically set by GA to false if this is an NPA Audience and is
+     * excluded from ads personalization.
+     * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The adsPersonalizationEnabled to set. + * @return This builder for chaining. + */ + public Builder setAdsPersonalizationEnabled(boolean value) { + + adsPersonalizationEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. It is automatically set by GA to false if this is an NPA Audience and is
+     * excluded from ads personalization.
+     * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdsPersonalizationEnabled() { + + adsPersonalizationEnabled_ = false; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceEventTrigger eventTrigger_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventTrigger, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder> + eventTriggerBuilder_; + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTrigger field is set. + */ + public boolean hasEventTrigger() { + return eventTriggerBuilder_ != null || eventTrigger_ != null; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTrigger. + */ + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger() { + if (eventTriggerBuilder_ == null) { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } else { + return eventTriggerBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTrigger(com.google.analytics.admin.v1alpha.AudienceEventTrigger value) { + if (eventTriggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTrigger_ = value; + onChanged(); + } else { + eventTriggerBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTrigger( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder builderForValue) { + if (eventTriggerBuilder_ == null) { + eventTrigger_ = builderForValue.build(); + onChanged(); + } else { + eventTriggerBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTrigger( + com.google.analytics.admin.v1alpha.AudienceEventTrigger value) { + if (eventTriggerBuilder_ == null) { + if (eventTrigger_ != null) { + eventTrigger_ = + com.google.analytics.admin.v1alpha.AudienceEventTrigger.newBuilder(eventTrigger_) + .mergeFrom(value) + .buildPartial(); + } else { + eventTrigger_ = value; + } + onChanged(); + } else { + eventTriggerBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTrigger() { + if (eventTriggerBuilder_ == null) { + eventTrigger_ = null; + onChanged(); + } else { + eventTrigger_ = null; + eventTriggerBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder + getEventTriggerBuilder() { + + onChanged(); + return getEventTriggerFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder + getEventTriggerOrBuilder() { + if (eventTriggerBuilder_ != null) { + return eventTriggerBuilder_.getMessageOrBuilder(); + } else { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+     * event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventTrigger, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder> + getEventTriggerFieldBuilder() { + if (eventTriggerBuilder_ == null) { + eventTriggerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventTrigger, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder>( + getEventTrigger(), getParentForChildren(), isClean()); + eventTrigger_ = null; + } + return eventTriggerBuilder_; + } + + private int exclusionDurationMode_ = 0; + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+     * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+     * there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for exclusionDurationMode. + */ + @java.lang.Override + public int getExclusionDurationModeValue() { + return exclusionDurationMode_; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+     * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+     * there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for exclusionDurationMode to set. + * @return This builder for chaining. + */ + public Builder setExclusionDurationModeValue(int value) { + + exclusionDurationMode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+     * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+     * there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The exclusionDurationMode. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + getExclusionDurationMode() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.valueOf( + exclusionDurationMode_); + return result == null + ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+     * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+     * there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The exclusionDurationMode to set. + * @return This builder for chaining. + */ + public Builder setExclusionDurationMode( + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode value) { + if (value == null) { + throw new NullPointerException(); + } + + exclusionDurationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+     * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+     * there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearExclusionDurationMode() { + + exclusionDurationMode_ = 0; + onChanged(); + return this; + } + + private java.util.List filterClauses_ = + java.util.Collections.emptyList(); + + private void ensureFilterClausesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterClauses_ = + new java.util.ArrayList( + filterClauses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterClause, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> + filterClausesBuilder_; + + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesList() { + if (filterClausesBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterClauses_); + } else { + return filterClausesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public int getFilterClausesCount() { + if (filterClausesBuilder_ == null) { + return filterClauses_.size(); + } else { + return filterClausesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, com.google.analytics.admin.v1alpha.AudienceFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.set(index, value); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.set(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses(com.google.analytics.admin.v1alpha.AudienceFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, com.google.analytics.admin.v1alpha.AudienceFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(index, value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addAllFilterClauses( + java.lang.Iterable + values) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterClauses_); + onChanged(); + } else { + filterClausesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder clearFilterClauses() { + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterClausesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder removeFilterClauses(int index) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.remove(index); + onChanged(); + } else { + filterClausesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder getFilterClausesBuilder( + int index) { + return getFilterClausesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder + getFilterClausesOrBuilder(int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> + getFilterClausesOrBuilderList() { + if (filterClausesBuilder_ != null) { + return filterClausesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterClauses_); + } + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder + addFilterClausesBuilder() { + return getFilterClausesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder addFilterClausesBuilder( + int index) { + return getFilterClausesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+     * together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesBuilderList() { + return getFilterClausesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterClause, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> + getFilterClausesFieldBuilder() { + if (filterClausesBuilder_ == null) { + filterClausesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterClause, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder>( + filterClauses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterClauses_ = null; + } + return filterClausesBuilder_; + } + + @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.Audience) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Audience) + private static final com.google.analytics.admin.v1alpha.Audience DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Audience(); + } + + public static com.google.analytics.admin.v1alpha.Audience getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Audience parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Audience(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.Audience getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java new file mode 100644 index 000000000000..6a262276badc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java @@ -0,0 +1,8086 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A specific filter for a single dimension or metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} + */ +public final class AudienceDimensionOrMetricFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + AudienceDimensionOrMetricFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceDimensionOrMetricFilter.newBuilder() to construct. + private AudienceDimensionOrMetricFilter( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceDimensionOrMetricFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceDimensionOrMetricFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceDimensionOrMetricFilter( + 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(); + + fieldName_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder + subBuilder = null; + if (oneFilterCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter) + oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter) + oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder + subBuilder = null; + if (oneFilterCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter) + oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter) + oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder + subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter) + oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter) + oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder + subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter) + oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter) + oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 48: + { + atAnyPointInTime_ = input.readBool(); + break; + } + case 56: + { + inAnyNDayPeriod_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder.class); + } + + public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + getMatchType(); + + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} + */ + public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + StringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFilter.newBuilder() to construct. + private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StringFilter( + 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 8: + { + int rawValue = input.readEnum(); + + matchType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder.class); + } + + /** + * + * + *
+     * The match type for the string filter.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+       * Partial regular expression matches with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+       * Partial regular expression matches with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + 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 MatchType 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 MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + 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 MatchType findValueByNumber(int number) { + return MatchType.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.AudienceDimensionOrMetricFilter.StringFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType 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 MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_; + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + getMatchType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.valueOf(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_; + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + 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 (matchType_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + 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.AudienceDimensionOrMetricFilter.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter + 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.AudienceDimensionOrMetricFilter.StringFilter 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 filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.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(); + matchType_ = 0; + + value_ = ""; + + caseSensitive_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter( + this); + result.matchType_ = matchType_; + result.value_ = value_; + result.caseSensitive_ = caseSensitive_; + 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.AudienceDimensionOrMetricFilter.StringFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance()) return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + 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.AudienceDimensionOrMetricFilter.StringFilter + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int matchType_ = 0; + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + + matchType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType + getMatchType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.valueOf(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + value) { + if (value == null) { + throw new NullPointerException(); + } + + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + + caseSensitive_ = 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.AudienceDimensionOrMetricFilter.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StringFilter(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.AudienceDimensionOrMetricFilter.StringFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of options.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} + */ + public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + InListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use InListFilter.newBuilder() to construct. + private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InListFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InListFilter( + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + case 16: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; + private boolean caseSensitive_; + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + 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 < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (caseSensitive_ != false) { + output.writeBool(2, caseSensitive_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); + } + 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.AudienceDimensionOrMetricFilter.InListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter + 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.AudienceDimensionOrMetricFilter.InListFilter 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 filter for a string dimension that matches a particular list of options.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.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(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + caseSensitive_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter( + this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + result.caseSensitive_ = caseSensitive_; + 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.AudienceDimensionOrMetricFilter.InListFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + 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.AudienceDimensionOrMetricFilter.InListFilter + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + + caseSensitive_ = 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.AudienceDimensionOrMetricFilter.InListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InListFilter(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.AudienceDimensionOrMetricFilter.InListFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NumericValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + long getInt64Value(); + + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .OneValueCase + getOneValueCase(); + } + /** + * + * + *
+   * To represent a number.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} + */ + public static final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + NumericValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericValue.newBuilder() to construct. + private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NumericValue( + 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 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder.class); + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT64_VALUE(1), + DOUBLE_VALUE(2), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return INT64_VALUE; + case 2: + return DOUBLE_VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int INT64_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + + 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 (oneValueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneValueCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) oneValue_)); + } + 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.AudienceDimensionOrMetricFilter.NumericValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) obj; + + if (!getOneValueCase().equals(other.getOneValueCase())) return false; + switch (oneValueCase_) { + case 1: + if (getInt64Value() != other.getInt64Value()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 0: + default: + } + 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(); + switch (oneValueCase_) { + case 1: + hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue + 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.AudienceDimensionOrMetricFilter.NumericValue 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; + } + /** + * + * + *
+     * To represent a number.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.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(); + oneValueCase_ = 0; + oneValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue( + this); + if (oneValueCase_ == 1) { + result.oneValue_ = oneValue_; + } + if (oneValueCase_ == 2) { + result.oneValue_ = oneValue_; + } + result.oneValueCase_ = oneValueCase_; + 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.AudienceDimensionOrMetricFilter.NumericValue) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance()) return this; + switch (other.getOneValueCase()) { + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case ONEVALUE_NOT_SET: + { + break; + } + } + 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.AudienceDimensionOrMetricFilter.NumericValue + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public Builder clearOneValue() { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + oneValueCase_ = 1; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (oneValueCase_ == 1) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + oneValueCase_ = 2; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (oneValueCase_ == 2) { + oneValueCase_ = 0; + oneValue_ = null; + 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.AudienceDimensionOrMetricFilter.NumericValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NumericValue(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.AudienceDimensionOrMetricFilter.NumericValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + getOperation(); + + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getValue(); + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getValueOrBuilder(); + } + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} + */ + public static final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + NumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericFilter.newBuilder() to construct. + private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericFilter() { + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NumericFilter( + 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 8: + { + int rawValue = input.readEnum(); + + operation_ = rawValue; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder + subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValue.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder.class); + } + + /** + * + * + *
+     * The operation applied to a numeric filter.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + OPERATION_UNSPECIFIED(0), + /** + * + * + *
+       * Equal.
+       * 
+ * + * EQUAL = 1; + */ + EQUAL(1), + /** + * + * + *
+       * Less than.
+       * 
+ * + * LESS_THAN = 2; + */ + LESS_THAN(2), + /** + * + * + *
+       * Less than or equal.
+       * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + LESS_THAN_OR_EQUAL(3), + /** + * + * + *
+       * Greater than.
+       * 
+ * + * GREATER_THAN = 4; + */ + GREATER_THAN(4), + /** + * + * + *
+       * Greater than or equal.
+       * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + GREATER_THAN_OR_EQUAL(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + public static final int OPERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Equal.
+       * 
+ * + * EQUAL = 1; + */ + public static final int EQUAL_VALUE = 1; + /** + * + * + *
+       * Less than.
+       * 
+ * + * LESS_THAN = 2; + */ + public static final int LESS_THAN_VALUE = 2; + /** + * + * + *
+       * Less than or equal.
+       * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + public static final int LESS_THAN_OR_EQUAL_VALUE = 3; + /** + * + * + *
+       * Greater than.
+       * 
+ * + * GREATER_THAN = 4; + */ + public static final int GREATER_THAN_VALUE = 4; + /** + * + * + *
+       * Greater than or equal.
+       * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; + + 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 Operation 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 Operation forNumber(int value) { + switch (value) { + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return EQUAL; + case 2: + return LESS_THAN; + case 3: + return LESS_THAN_OR_EQUAL; + case 4: + return GREATER_THAN; + case 5: + return GREATER_THAN_OR_EQUAL; + 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 Operation findValueByNumber(int number) { + return Operation.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.AudienceDimensionOrMetricFilter.NumericFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operation[] VALUES = values(); + + public static Operation 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 Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation) + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private int operation_; + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation + getOperation() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.valueOf(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value_; + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getValue() { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getValueOrBuilder() { + return getValue(); + } + + 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 (operation_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.OPERATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, operation_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operation_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.OPERATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.AudienceDimensionOrMetricFilter.NumericFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) obj; + + if (operation_ != other.operation_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + 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.AudienceDimensionOrMetricFilter.NumericFilter + 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 filter for numeric or date values on a dimension or metric.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.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(); + operation_ = 0; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter( + this); + result.operation_ = operation_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.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.AudienceDimensionOrMetricFilter.NumericFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance()) return this; + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + 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.AudienceDimensionOrMetricFilter.NumericFilter + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operation_ = 0; + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation + getOperation() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.valueOf(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + valueBuilder_; + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .newBuilder(value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder + getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + @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.AudienceDimensionOrMetricFilter.NumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NumericFilter(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.AudienceDimensionOrMetricFilter.NumericFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BetweenFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fromValue field is set. + */ + boolean hasFromValue(); + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fromValue. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getFromValue(); + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getFromValueOrBuilder(); + + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toValue field is set. + */ + boolean hasToValue(); + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toValue. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getToValue(); + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getToValueOrBuilder(); + } + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} + */ + public static final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + BetweenFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use BetweenFilter.newBuilder() to construct. + private BetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BetweenFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BetweenFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BetweenFilter( + 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.AudienceDimensionOrMetricFilter.NumericValue + .Builder + subBuilder = null; + if (fromValue_ != null) { + subBuilder = fromValue_.toBuilder(); + } + fromValue_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValue.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fromValue_); + fromValue_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder + subBuilder = null; + if (toValue_ != null) { + subBuilder = toValue_.toBuilder(); + } + toValue_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValue.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(toValue_); + toValue_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + fromValue_; + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fromValue field is set. + */ + @java.lang.Override + public boolean hasFromValue() { + return fromValue_ != null; + } + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fromValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getFromValue() { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getFromValueOrBuilder() { + return getFromValue(); + } + + public static final int TO_VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + toValue_; + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toValue field is set. + */ + @java.lang.Override + public boolean hasToValue() { + return toValue_ != null; + } + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getToValue() { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getToValueOrBuilder() { + return getToValue(); + } + + 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 (fromValue_ != null) { + output.writeMessage(1, getFromValue()); + } + if (toValue_ != null) { + output.writeMessage(2, getToValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fromValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue()); + } + if (toValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); + } + 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.AudienceDimensionOrMetricFilter.BetweenFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) obj; + + if (hasFromValue() != other.hasFromValue()) return false; + if (hasFromValue()) { + if (!getFromValue().equals(other.getFromValue())) return false; + } + if (hasToValue() != other.hasToValue()) return false; + if (hasToValue()) { + if (!getToValue().equals(other.getToValue())) 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 (hasFromValue()) { + hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getFromValue().hashCode(); + } + if (hasToValue()) { + hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getToValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + 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.AudienceDimensionOrMetricFilter.BetweenFilter + 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 filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.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 (fromValueBuilder_ == null) { + fromValue_ = null; + } else { + fromValue_ = null; + fromValueBuilder_ = null; + } + if (toValueBuilder_ == null) { + toValue_ = null; + } else { + toValue_ = null; + toValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter( + this); + if (fromValueBuilder_ == null) { + result.fromValue_ = fromValue_; + } else { + result.fromValue_ = fromValueBuilder_.build(); + } + if (toValueBuilder_ == null) { + result.toValue_ = toValue_; + } else { + result.toValue_ = toValueBuilder_.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.AudienceDimensionOrMetricFilter.BetweenFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance()) return this; + if (other.hasFromValue()) { + mergeFromValue(other.getFromValue()); + } + if (other.hasToValue()) { + mergeToValue(other.getToValue()); + } + 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.AudienceDimensionOrMetricFilter.BetweenFilter + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + fromValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + fromValueBuilder_; + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fromValue field is set. + */ + public boolean hasFromValue() { + return fromValueBuilder_ != null || fromValue_ != null; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fromValue. + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getFromValue() { + if (fromValueBuilder_ == null) { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } else { + return fromValueBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFromValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (fromValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fromValue_ = value; + onChanged(); + } else { + fromValueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFromValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + builderForValue) { + if (fromValueBuilder_ == null) { + fromValue_ = builderForValue.build(); + onChanged(); + } else { + fromValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFromValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (fromValueBuilder_ == null) { + if (fromValue_ != null) { + fromValue_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .newBuilder(fromValue_) + .mergeFrom(value) + .buildPartial(); + } else { + fromValue_ = value; + } + onChanged(); + } else { + fromValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFromValue() { + if (fromValueBuilder_ == null) { + fromValue_ = null; + onChanged(); + } else { + fromValue_ = null; + fromValueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + getFromValueBuilder() { + + onChanged(); + return getFromValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder + getFromValueOrBuilder() { + if (fromValueBuilder_ != null) { + return fromValueBuilder_.getMessageOrBuilder(); + } else { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + getFromValueFieldBuilder() { + if (fromValueBuilder_ == null) { + fromValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder>(getFromValue(), getParentForChildren(), isClean()); + fromValue_ = null; + } + return fromValueBuilder_; + } + + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + toValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + toValueBuilder_; + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toValue field is set. + */ + public boolean hasToValue() { + return toValueBuilder_ != null || toValue_ != null; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toValue. + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getToValue() { + if (toValueBuilder_ == null) { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } else { + return toValueBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (toValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toValue_ = value; + onChanged(); + } else { + toValueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + builderForValue) { + if (toValueBuilder_ == null) { + toValue_ = builderForValue.build(); + onChanged(); + } else { + toValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeToValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (toValueBuilder_ == null) { + if (toValue_ != null) { + toValue_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .newBuilder(toValue_) + .mergeFrom(value) + .buildPartial(); + } else { + toValue_ = value; + } + onChanged(); + } else { + toValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToValue() { + if (toValueBuilder_ == null) { + toValue_ = null; + onChanged(); + } else { + toValue_ = null; + toValueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + getToValueBuilder() { + + onChanged(); + return getToValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder + getToValueOrBuilder() { + if (toValueBuilder_ != null) { + return toValueBuilder_.getMessageOrBuilder(); + } else { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + getToValueFieldBuilder() { + if (toValueBuilder_ == null) { + toValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder>(getToValue(), getParentForChildren(), isClean()); + toValue_ = null; + } + return toValueBuilder_; + } + + @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.AudienceDimensionOrMetricFilter.BetweenFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BetweenFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BetweenFilter(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.AudienceDimensionOrMetricFilter.BetweenFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getNumericFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder + getNumericFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getBetweenFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fieldName_; + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + 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(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AT_ANY_POINT_IN_TIME_FIELD_NUMBER = 6; + private boolean atAnyPointInTime_; + /** + * + * + *
+   * Optional. Indicates whether this filter needs dynamic evaluation or not. If set to
+   * true, users join the Audience if they ever met the condition (static
+   * evaluation). If unset or set to false, user evaluation for an Audience is
+   * dynamic; users are added to an Audience when they meet the conditions and
+   * then removed when they no longer meet them.
+   * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+   * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The atAnyPointInTime. + */ + @java.lang.Override + public boolean getAtAnyPointInTime() { + return atAnyPointInTime_; + } + + public static final int IN_ANY_N_DAY_PERIOD_FIELD_NUMBER = 7; + private int inAnyNDayPeriod_; + /** + * + * + *
+   * Optional. If set, specifies the time window for which to evaluate data in number of
+   * days. If not set, then audience data is evaluated against lifetime data
+   * (i.e., infinite time window).
+   * For example, if set to 1 day, only the current day's data is evaluated. The
+   * reference point is the current day when at_any_point_in_time is unset or
+   * false.
+   * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+   * greater than 60 days.
+   * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inAnyNDayPeriod. + */ + @java.lang.Override + public int getInAnyNDayPeriod() { + return inAnyNDayPeriod_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeMessage( + 2, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage( + 3, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage( + 4, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage( + 5, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_); + } + if (atAnyPointInTime_ != false) { + output.writeBool(6, atAnyPointInTime_); + } + if (inAnyNDayPeriod_ != 0) { + output.writeInt32(7, inAnyNDayPeriod_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_); + } + if (atAnyPointInTime_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, atAnyPointInTime_); + } + if (inAnyNDayPeriod_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, inAnyNDayPeriod_); + } + 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.AudienceDimensionOrMetricFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (getAtAnyPointInTime() != other.getAtAnyPointInTime()) return false; + if (getInAnyNDayPeriod() != other.getInAnyNDayPeriod()) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 4: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 5: + if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; + break; + case 0: + default: + } + 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) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + AT_ANY_POINT_IN_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAtAnyPointInTime()); + hash = (37 * hash) + IN_ANY_N_DAY_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getInAnyNDayPeriod(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getBetweenFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter 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.AudienceDimensionOrMetricFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter 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.AudienceDimensionOrMetricFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter 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.AudienceDimensionOrMetricFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter 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.AudienceDimensionOrMetricFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + 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.AudienceDimensionOrMetricFilter 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.AudienceDimensionOrMetricFilter 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.AudienceDimensionOrMetricFilter 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 specific filter for a single dimension or metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.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(); + fieldName_ = ""; + + atAnyPointInTime_ = false; + + inAnyNDayPeriod_ = 0; + + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(this); + if (oneFilterCase_ == 2) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 3) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 4) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + if (betweenFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + result.fieldName_ = fieldName_; + result.atAnyPointInTime_ = atAnyPointInTime_; + result.inAnyNDayPeriod_ = inAnyNDayPeriod_; + result.oneFilterCase_ = oneFilterCase_; + 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.AudienceDimensionOrMetricFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + onChanged(); + } + if (other.getAtAnyPointInTime() != false) { + setAtAnyPointInTime(other.getAtAnyPointInTime()); + } + if (other.getInAnyNDayPeriod() != 0) { + setInAnyNDayPeriod(other.getInAnyNDayPeriod()); + } + switch (other.getOneFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case NUMERIC_FILTER: + { + mergeNumericFilter(other.getNumericFilter()); + break; + } + case BETWEEN_FILTER: + { + mergeBetweenFilter(other.getBetweenFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + 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.AudienceDimensionOrMetricFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder + builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder mergeStringFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder + getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder + builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder mergeInListFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder + getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder + builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder mergeNumericFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder + getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder + getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder + builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder mergeBetweenFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder + getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + ; + return betweenFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + + fieldName_ = getDefaultInstance().getFieldName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fieldName_ = value; + onChanged(); + return this; + } + + private boolean atAnyPointInTime_; + /** + * + * + *
+     * Optional. Indicates whether this filter needs dynamic evaluation or not. If set to
+     * true, users join the Audience if they ever met the condition (static
+     * evaluation). If unset or set to false, user evaluation for an Audience is
+     * dynamic; users are added to an Audience when they meet the conditions and
+     * then removed when they no longer meet them.
+     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+     * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The atAnyPointInTime. + */ + @java.lang.Override + public boolean getAtAnyPointInTime() { + return atAnyPointInTime_; + } + /** + * + * + *
+     * Optional. Indicates whether this filter needs dynamic evaluation or not. If set to
+     * true, users join the Audience if they ever met the condition (static
+     * evaluation). If unset or set to false, user evaluation for an Audience is
+     * dynamic; users are added to an Audience when they meet the conditions and
+     * then removed when they no longer meet them.
+     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+     * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The atAnyPointInTime to set. + * @return This builder for chaining. + */ + public Builder setAtAnyPointInTime(boolean value) { + + atAnyPointInTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether this filter needs dynamic evaluation or not. If set to
+     * true, users join the Audience if they ever met the condition (static
+     * evaluation). If unset or set to false, user evaluation for an Audience is
+     * dynamic; users are added to an Audience when they meet the conditions and
+     * then removed when they no longer meet them.
+     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+     * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAtAnyPointInTime() { + + atAnyPointInTime_ = false; + onChanged(); + return this; + } + + private int inAnyNDayPeriod_; + /** + * + * + *
+     * Optional. If set, specifies the time window for which to evaluate data in number of
+     * days. If not set, then audience data is evaluated against lifetime data
+     * (i.e., infinite time window).
+     * For example, if set to 1 day, only the current day's data is evaluated. The
+     * reference point is the current day when at_any_point_in_time is unset or
+     * false.
+     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+     * greater than 60 days.
+     * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inAnyNDayPeriod. + */ + @java.lang.Override + public int getInAnyNDayPeriod() { + return inAnyNDayPeriod_; + } + /** + * + * + *
+     * Optional. If set, specifies the time window for which to evaluate data in number of
+     * days. If not set, then audience data is evaluated against lifetime data
+     * (i.e., infinite time window).
+     * For example, if set to 1 day, only the current day's data is evaluated. The
+     * reference point is the current day when at_any_point_in_time is unset or
+     * false.
+     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+     * greater than 60 days.
+     * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inAnyNDayPeriod to set. + * @return This builder for chaining. + */ + public Builder setInAnyNDayPeriod(int value) { + + inAnyNDayPeriod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, specifies the time window for which to evaluate data in number of
+     * days. If not set, then audience data is evaluated against lifetime data
+     * (i.e., infinite time window).
+     * For example, if set to 1 day, only the current day's data is evaluated. The
+     * reference point is the current day when at_any_point_in_time is unset or
+     * false.
+     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+     * greater than 60 days.
+     * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInAnyNDayPeriod() { + + inAnyNDayPeriod_ = 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.AudienceDimensionOrMetricFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceDimensionOrMetricFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceDimensionOrMetricFilter(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.AudienceDimensionOrMetricFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java new file mode 100644 index 000000000000..6e04c71f5d85 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java @@ -0,0 +1,271 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceDimensionOrMetricFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder + getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder + getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return The numericFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder + getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return The betweenFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getBetweenFilter(); + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder + getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
+   * Optional. Indicates whether this filter needs dynamic evaluation or not. If set to
+   * true, users join the Audience if they ever met the condition (static
+   * evaluation). If unset or set to false, user evaluation for an Audience is
+   * dynamic; users are added to an Audience when they meet the conditions and
+   * then removed when they no longer meet them.
+   * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+   * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The atAnyPointInTime. + */ + boolean getAtAnyPointInTime(); + + /** + * + * + *
+   * Optional. If set, specifies the time window for which to evaluate data in number of
+   * days. If not set, then audience data is evaluated against lifetime data
+   * (i.e., infinite time window).
+   * For example, if set to 1 day, only the current day's data is evaluated. The
+   * reference point is the current day when at_any_point_in_time is unset or
+   * false.
+   * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+   * greater than 60 days.
+   * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inAnyNDayPeriod. + */ + int getInAnyNDayPeriod(); + + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.OneFilterCase + getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java new file mode 100644 index 000000000000..605d23bb2fc0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java @@ -0,0 +1,1047 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A filter that matches events of a single event name. If an event parameter
+ * is specified, only the subset of events that match both the single event name
+ * and the parameter filter expressions match this event filter.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventFilter} + */ +public final class AudienceEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceEventFilter) + AudienceEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceEventFilter.newBuilder() to construct. + private AudienceEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceEventFilter() { + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceEventFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceEventFilter( + 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(); + + eventName_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder subBuilder = null; + if (eventParameterFilterExpression_ != null) { + subBuilder = eventParameterFilterExpression_.toBuilder(); + } + eventParameterFilterExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventParameterFilterExpression_); + eventParameterFilterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventFilter.class, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder.class); + } + + public static final int EVENT_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object eventName_; + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.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 EVENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceFilterExpression + eventParameterFilterExpression_; + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the single
+   * event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (i.e., nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventParameterFilterExpression field is set. + */ + @java.lang.Override + public boolean hasEventParameterFilterExpression() { + return eventParameterFilterExpression_ != null; + } + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the single
+   * event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (i.e., nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventParameterFilterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression + getEventParameterFilterExpression() { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the single
+   * event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (i.e., nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getEventParameterFilterExpressionOrBuilder() { + return getEventParameterFilterExpression(); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (eventParameterFilterExpression_ != null) { + output.writeMessage(2, getEventParameterFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); + } + if (eventParameterFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getEventParameterFilterExpression()); + } + 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.AudienceEventFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceEventFilter other = + (com.google.analytics.admin.v1alpha.AudienceEventFilter) obj; + + if (!getEventName().equals(other.getEventName())) return false; + if (hasEventParameterFilterExpression() != other.hasEventParameterFilterExpression()) + return false; + if (hasEventParameterFilterExpression()) { + if (!getEventParameterFilterExpression().equals(other.getEventParameterFilterExpression())) + 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasEventParameterFilterExpression()) { + hash = (37 * hash) + EVENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getEventParameterFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter 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.AudienceEventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter 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.AudienceEventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter 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.AudienceEventFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter 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.AudienceEventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter 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.AudienceEventFilter 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.AudienceEventFilter 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.AudienceEventFilter 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 filter that matches events of a single event name. If an event parameter
+   * is specified, only the subset of events that match both the single event name
+   * and the parameter filter expressions match this event filter.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceEventFilter) + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventFilter.class, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceEventFilter.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(); + eventName_ = ""; + + if (eventParameterFilterExpressionBuilder_ == null) { + eventParameterFilterExpression_ = null; + } else { + eventParameterFilterExpression_ = null; + eventParameterFilterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter build() { + com.google.analytics.admin.v1alpha.AudienceEventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceEventFilter result = + new com.google.analytics.admin.v1alpha.AudienceEventFilter(this); + result.eventName_ = eventName_; + if (eventParameterFilterExpressionBuilder_ == null) { + result.eventParameterFilterExpression_ = eventParameterFilterExpression_; + } else { + result.eventParameterFilterExpression_ = eventParameterFilterExpressionBuilder_.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.AudienceEventFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceEventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceEventFilter other) { + if (other == com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance()) + return this; + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + onChanged(); + } + if (other.hasEventParameterFilterExpression()) { + mergeEventParameterFilterExpression(other.getEventParameterFilterExpression()); + } + 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.AudienceEventFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceEventFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.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.analytics.admin.v1alpha.AudienceFilterExpression + eventParameterFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + eventParameterFilterExpressionBuilder_; + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventParameterFilterExpression field is set. + */ + public boolean hasEventParameterFilterExpression() { + return eventParameterFilterExpressionBuilder_ != null + || eventParameterFilterExpression_ != null; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventParameterFilterExpression. + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression + getEventParameterFilterExpression() { + if (eventParameterFilterExpressionBuilder_ == null) { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } else { + return eventParameterFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventParameterFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (eventParameterFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventParameterFilterExpression_ = value; + onChanged(); + } else { + eventParameterFilterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventParameterFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (eventParameterFilterExpressionBuilder_ == null) { + eventParameterFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + eventParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventParameterFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (eventParameterFilterExpressionBuilder_ == null) { + if (eventParameterFilterExpression_ != null) { + eventParameterFilterExpression_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( + eventParameterFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + eventParameterFilterExpression_ = value; + } + onChanged(); + } else { + eventParameterFilterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventParameterFilterExpression() { + if (eventParameterFilterExpressionBuilder_ == null) { + eventParameterFilterExpression_ = null; + onChanged(); + } else { + eventParameterFilterExpression_ = null; + eventParameterFilterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getEventParameterFilterExpressionBuilder() { + + onChanged(); + return getEventParameterFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getEventParameterFilterExpressionOrBuilder() { + if (eventParameterFilterExpressionBuilder_ != null) { + return eventParameterFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the single
+     * event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (i.e., nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getEventParameterFilterExpressionFieldBuilder() { + if (eventParameterFilterExpressionBuilder_ == null) { + eventParameterFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + getEventParameterFilterExpression(), getParentForChildren(), isClean()); + eventParameterFilterExpression_ = null; + } + return eventParameterFilterExpressionBuilder_; + } + + @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.AudienceEventFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceEventFilter) + private static final com.google.analytics.admin.v1alpha.AudienceEventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceEventFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceEventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceEventFilter(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.AudienceEventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java new file mode 100644 index 000000000000..1725afaacb1a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceEventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceEventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the single
+   * event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (i.e., nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventParameterFilterExpression field is set. + */ + boolean hasEventParameterFilterExpression(); + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the single
+   * event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (i.e., nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventParameterFilterExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getEventParameterFilterExpression(); + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the single
+   * event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (i.e., nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getEventParameterFilterExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java new file mode 100644 index 000000000000..7a933c6cdb9e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java @@ -0,0 +1,976 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Specifies an event to log when a user joins the Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventTrigger} + */ +public final class AudienceEventTrigger extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceEventTrigger) + AudienceEventTriggerOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceEventTrigger.newBuilder() to construct. + private AudienceEventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceEventTrigger() { + eventName_ = ""; + logCondition_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceEventTrigger(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceEventTrigger( + 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(); + + eventName_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + logCondition_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.class, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder.class); + } + + /** + * + * + *
+   * Determines when to log the event.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} + */ + public enum LogCondition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Log condition is not specified.
+     * 
+ * + * LOG_CONDITION_UNSPECIFIED = 0; + */ + LOG_CONDITION_UNSPECIFIED(0), + /** + * + * + *
+     * The event should be logged only when a user is joined.
+     * 
+ * + * AUDIENCE_JOINED = 1; + */ + AUDIENCE_JOINED(1), + /** + * + * + *
+     * The event should be logged whenever the Audience condition is met, even
+     * if the user is already a member of the Audience.
+     * 
+ * + * AUDIENCE_MEMBERSHIP_RENEWED = 2; + */ + AUDIENCE_MEMBERSHIP_RENEWED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Log condition is not specified.
+     * 
+ * + * LOG_CONDITION_UNSPECIFIED = 0; + */ + public static final int LOG_CONDITION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The event should be logged only when a user is joined.
+     * 
+ * + * AUDIENCE_JOINED = 1; + */ + public static final int AUDIENCE_JOINED_VALUE = 1; + /** + * + * + *
+     * The event should be logged whenever the Audience condition is met, even
+     * if the user is already a member of the Audience.
+     * 
+ * + * AUDIENCE_MEMBERSHIP_RENEWED = 2; + */ + public static final int AUDIENCE_MEMBERSHIP_RENEWED_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 LogCondition 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 LogCondition forNumber(int value) { + switch (value) { + case 0: + return LOG_CONDITION_UNSPECIFIED; + case 1: + return AUDIENCE_JOINED; + case 2: + return AUDIENCE_MEMBERSHIP_RENEWED; + 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 LogCondition findValueByNumber(int number) { + return LogCondition.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.AudienceEventTrigger.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LogCondition[] VALUES = values(); + + public static LogCondition 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 LogCondition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition) + } + + public static final int EVENT_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object eventName_; + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 LOG_CONDITION_FIELD_NUMBER = 2; + private int logCondition_; + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for logCondition. + */ + @java.lang.Override + public int getLogConditionValue() { + return logCondition_; + } + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.valueOf(logCondition_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (logCondition_ + != com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + .LOG_CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, logCondition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); + } + if (logCondition_ + != com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + .LOG_CONDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, logCondition_); + } + 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.AudienceEventTrigger)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceEventTrigger other = + (com.google.analytics.admin.v1alpha.AudienceEventTrigger) obj; + + if (!getEventName().equals(other.getEventName())) return false; + if (logCondition_ != other.logCondition_) 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + hash = (37 * hash) + LOG_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + logCondition_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger 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.AudienceEventTrigger parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger 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.AudienceEventTrigger parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger 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.AudienceEventTrigger parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger 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.AudienceEventTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger 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.AudienceEventTrigger 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.AudienceEventTrigger 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.AudienceEventTrigger 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; + } + /** + * + * + *
+   * Specifies an event to log when a user joins the Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventTrigger} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceEventTrigger) + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.class, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceEventTrigger.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(); + eventName_ = ""; + + logCondition_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger build() { + com.google.analytics.admin.v1alpha.AudienceEventTrigger result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger buildPartial() { + com.google.analytics.admin.v1alpha.AudienceEventTrigger result = + new com.google.analytics.admin.v1alpha.AudienceEventTrigger(this); + result.eventName_ = eventName_; + result.logCondition_ = logCondition_; + 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.AudienceEventTrigger) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceEventTrigger) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceEventTrigger other) { + if (other == com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance()) + return this; + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + onChanged(); + } + if (other.logCondition_ != 0) { + setLogConditionValue(other.getLogConditionValue()); + } + 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.AudienceEventTrigger parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceEventTrigger) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 int logCondition_ = 0; + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for logCondition. + */ + @java.lang.Override + public int getLogConditionValue() { + return logCondition_; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for logCondition to set. + * @return This builder for chaining. + */ + public Builder setLogConditionValue(int value) { + + logCondition_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.valueOf( + logCondition_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The logCondition to set. + * @return This builder for chaining. + */ + public Builder setLogCondition( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition value) { + if (value == null) { + throw new NullPointerException(); + } + + logCondition_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLogCondition() { + + logCondition_ = 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.AudienceEventTrigger) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceEventTrigger) + private static final com.google.analytics.admin.v1alpha.AudienceEventTrigger DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceEventTrigger(); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceEventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceEventTrigger(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.AudienceEventTrigger getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java new file mode 100644 index 000000000000..82fda45faf2d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceEventTriggerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceEventTrigger) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for logCondition. + */ + int getLogConditionValue(); + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logCondition. + */ + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java new file mode 100644 index 000000000000..4c78a5a09cee --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java @@ -0,0 +1,1524 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A clause for defining either a simple or sequence filter. A filter can be
+ * inclusive (i.e., users satisfying the filter clause are included in the
+ * Audience) or exclusive (i.e., users satisfying the filter clause are
+ * excluded from the Audience).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterClause} + */ +public final class AudienceFilterClause extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterClause) + AudienceFilterClauseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceFilterClause.newBuilder() to construct. + private AudienceFilterClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceFilterClause() { + clauseType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceFilterClause(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceFilterClause( + 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 8: + { + int rawValue = input.readEnum(); + + clauseType_ = rawValue; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder subBuilder = null; + if (filterCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_).toBuilder(); + } + filter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); + filter_ = subBuilder.buildPartial(); + } + filterCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder subBuilder = null; + if (filterCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_) + .toBuilder(); + } + filter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); + filter_ = subBuilder.buildPartial(); + } + filterCase_ = 3; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterClause.class, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder.class); + } + + /** + * + * + *
+   * Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} + */ + public enum AudienceClauseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified clause type.
+     * 
+ * + * AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Users will be included in the Audience if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + INCLUDE(1), + /** + * + * + *
+     * Users will be excluded from the Audience if the filter clause is met.
+     * 
+ * + * EXCLUDE = 2; + */ + EXCLUDE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified clause type.
+     * 
+ * + * AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + public static final int AUDIENCE_CLAUSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Users will be included in the Audience if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + public static final int INCLUDE_VALUE = 1; + /** + * + * + *
+     * Users will be excluded from the Audience if the filter clause is met.
+     * 
+ * + * EXCLUDE = 2; + */ + public static final int EXCLUDE_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 AudienceClauseType 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 AudienceClauseType forNumber(int value) { + switch (value) { + case 0: + return AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; + case 1: + return INCLUDE; + case 2: + return EXCLUDE; + 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 AudienceClauseType findValueByNumber(int number) { + return AudienceClauseType.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.AudienceFilterClause.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AudienceClauseType[] VALUES = values(); + + public static AudienceClauseType 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 AudienceClauseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType) + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + + public enum FilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SIMPLE_FILTER(2), + SEQUENCE_FILTER(3), + FILTER_NOT_SET(0); + private final int value; + + private FilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 2: + return SIMPLE_FILTER; + case 3: + return SEQUENCE_FILTER; + case 0: + return FILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public static final int SIMPLE_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return Whether the simpleFilter field is set. + */ + @java.lang.Override + public boolean hasSimpleFilter() { + return filterCase_ == 2; + } + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return The simpleFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter() { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder + getSimpleFilterOrBuilder() { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + + public static final int SEQUENCE_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return Whether the sequenceFilter field is set. + */ + @java.lang.Override + public boolean hasSequenceFilter() { + return filterCase_ == 3; + } + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return The sequenceFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter() { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder + getSequenceFilterOrBuilder() { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + + public static final int CLAUSE_TYPE_FIELD_NUMBER = 1; + private int clauseType_; + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for clauseType. + */ + @java.lang.Override + public int getClauseTypeValue() { + return clauseType_; + } + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + getClauseType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.valueOf( + clauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.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 (clauseType_ + != com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + .AUDIENCE_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, clauseType_); + } + if (filterCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); + } + if (filterCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clauseType_ + != com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + .AUDIENCE_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clauseType_); + } + if (filterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); + } + if (filterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); + } + 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.AudienceFilterClause)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceFilterClause other = + (com.google.analytics.admin.v1alpha.AudienceFilterClause) obj; + + if (clauseType_ != other.clauseType_) return false; + if (!getFilterCase().equals(other.getFilterCase())) return false; + switch (filterCase_) { + case 2: + if (!getSimpleFilter().equals(other.getSimpleFilter())) return false; + break; + case 3: + if (!getSequenceFilter().equals(other.getSequenceFilter())) return false; + break; + case 0: + default: + } + 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) + CLAUSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clauseType_; + switch (filterCase_) { + case 2: + hash = (37 * hash) + SIMPLE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSimpleFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + SEQUENCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSequenceFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause 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.AudienceFilterClause parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause 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.AudienceFilterClause parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause 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.AudienceFilterClause parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause 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.AudienceFilterClause parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause 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.AudienceFilterClause 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.AudienceFilterClause 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.AudienceFilterClause 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 clause for defining either a simple or sequence filter. A filter can be
+   * inclusive (i.e., users satisfying the filter clause are included in the
+   * Audience) or exclusive (i.e., users satisfying the filter clause are
+   * excluded from the Audience).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterClause} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterClause) + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterClause.class, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceFilterClause.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(); + clauseType_ = 0; + + filterCase_ = 0; + filter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause build() { + com.google.analytics.admin.v1alpha.AudienceFilterClause result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause buildPartial() { + com.google.analytics.admin.v1alpha.AudienceFilterClause result = + new com.google.analytics.admin.v1alpha.AudienceFilterClause(this); + if (filterCase_ == 2) { + if (simpleFilterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = simpleFilterBuilder_.build(); + } + } + if (filterCase_ == 3) { + if (sequenceFilterBuilder_ == null) { + result.filter_ = filter_; + } else { + result.filter_ = sequenceFilterBuilder_.build(); + } + } + result.clauseType_ = clauseType_; + result.filterCase_ = filterCase_; + 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.AudienceFilterClause) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterClause) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterClause other) { + if (other == com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()) + return this; + if (other.clauseType_ != 0) { + setClauseTypeValue(other.getClauseTypeValue()); + } + switch (other.getFilterCase()) { + case SIMPLE_FILTER: + { + mergeSimpleFilter(other.getSimpleFilter()); + break; + } + case SEQUENCE_FILTER: + { + mergeSequenceFilter(other.getSequenceFilter()); + break; + } + case FILTER_NOT_SET: + { + break; + } + } + 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.AudienceFilterClause parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceFilterClause) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSimpleFilter, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder> + simpleFilterBuilder_; + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return Whether the simpleFilter field is set. + */ + @java.lang.Override + public boolean hasSimpleFilter() { + return filterCase_ == 2; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return The simpleFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter() { + if (simpleFilterBuilder_ == null) { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } else { + if (filterCase_ == 2) { + return simpleFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder setSimpleFilter(com.google.analytics.admin.v1alpha.AudienceSimpleFilter value) { + if (simpleFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + simpleFilterBuilder_.setMessage(value); + } + filterCase_ = 2; + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder setSimpleFilter( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder builderForValue) { + if (simpleFilterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + simpleFilterBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 2; + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder mergeSimpleFilter( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter value) { + if (simpleFilterBuilder_ == null) { + if (filterCase_ == 2 + && filter_ + != com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance()) { + filter_ = + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 2) { + simpleFilterBuilder_.mergeFrom(value); + } else { + simpleFilterBuilder_.setMessage(value); + } + } + filterCase_ = 2; + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder clearSimpleFilter() { + if (simpleFilterBuilder_ == null) { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + } + simpleFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder + getSimpleFilterBuilder() { + return getSimpleFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder + getSimpleFilterOrBuilder() { + if ((filterCase_ == 2) && (simpleFilterBuilder_ != null)) { + return simpleFilterBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSimpleFilter, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder> + getSimpleFilterFieldBuilder() { + if (simpleFilterBuilder_ == null) { + if (!(filterCase_ == 2)) { + filter_ = com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + simpleFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSimpleFilter, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 2; + onChanged(); + ; + return simpleFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder> + sequenceFilterBuilder_; + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return Whether the sequenceFilter field is set. + */ + @java.lang.Override + public boolean hasSequenceFilter() { + return filterCase_ == 3; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return The sequenceFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter() { + if (sequenceFilterBuilder_ == null) { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } else { + if (filterCase_ == 3) { + return sequenceFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder setSequenceFilter( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter value) { + if (sequenceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + sequenceFilterBuilder_.setMessage(value); + } + filterCase_ = 3; + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder setSequenceFilter( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder builderForValue) { + if (sequenceFilterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + sequenceFilterBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 3; + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder mergeSequenceFilter( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter value) { + if (sequenceFilterBuilder_ == null) { + if (filterCase_ == 3 + && filter_ + != com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance()) { + filter_ = + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 3) { + sequenceFilterBuilder_.mergeFrom(value); + } else { + sequenceFilterBuilder_.setMessage(value); + } + } + filterCase_ = 3; + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder clearSequenceFilter() { + if (sequenceFilterBuilder_ == null) { + if (filterCase_ == 3) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 3) { + filterCase_ = 0; + filter_ = null; + } + sequenceFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder + getSequenceFilterBuilder() { + return getSequenceFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder + getSequenceFilterOrBuilder() { + if ((filterCase_ == 3) && (sequenceFilterBuilder_ != null)) { + return sequenceFilterBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder> + getSequenceFilterFieldBuilder() { + if (sequenceFilterBuilder_ == null) { + if (!(filterCase_ == 3)) { + filter_ = com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + sequenceFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 3; + onChanged(); + ; + return sequenceFilterBuilder_; + } + + private int clauseType_ = 0; + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for clauseType. + */ + @java.lang.Override + public int getClauseTypeValue() { + return clauseType_; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for clauseType to set. + * @return This builder for chaining. + */ + public Builder setClauseTypeValue(int value) { + + clauseType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + getClauseType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.valueOf( + clauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clauseType to set. + * @return This builder for chaining. + */ + public Builder setClauseType( + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType value) { + if (value == null) { + throw new NullPointerException(); + } + + clauseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearClauseType() { + + clauseType_ = 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.AudienceFilterClause) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterClause) + private static final com.google.analytics.admin.v1alpha.AudienceFilterClause DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterClause(); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceFilterClause parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceFilterClause(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.AudienceFilterClause getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java new file mode 100644 index 000000000000..7f05d1b20485 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceFilterClauseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterClause) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return Whether the simpleFilter field is set. + */ + boolean hasSimpleFilter(); + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return The simpleFilter. + */ + com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter(); + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder getSimpleFilterOrBuilder(); + + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return Whether the sequenceFilter field is set. + */ + boolean hasSequenceFilter(); + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return The sequenceFilter. + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter(); + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder getSequenceFilterOrBuilder(); + + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for clauseType. + */ + int getClauseTypeValue(); + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clauseType. + */ + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType getClauseType(); + + public com.google.analytics.admin.v1alpha.AudienceFilterClause.FilterCase getFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java new file mode 100644 index 000000000000..8285c2f603ff --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java @@ -0,0 +1,2240 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A logical expression of Audience dimension, metric, or event filters.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpression} + */ +public final class AudienceFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterExpression) + AudienceFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceFilterExpression.newBuilder() to construct. + private AudienceFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceFilterExpression( + 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.AudienceFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder + subBuilder = null; + if (exprCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 4; + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder subBuilder = null; + if (exprCase_ == 5) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceEventFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + DIMENSION_OR_METRIC_FILTER(4), + EVENT_FILTER(5), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return DIMENSION_OR_METRIC_FILTER; + case 5: + return EVENT_FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + + public static final int DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return Whether the dimensionOrMetricFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionOrMetricFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return The dimensionOrMetricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDimensionOrMetricFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder + getDimensionOrMetricFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); + } + + public static final int EVENT_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return Whether the eventFilter field is set. + */ + @java.lang.Override + public boolean hasEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return The eventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter() { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder getEventFilterOrBuilder() { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.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 (exprCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage( + 4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); + } + if (exprCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); + } + if (exprCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); + } + 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.AudienceFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceFilterExpression other = + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 3: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 4: + if (!getDimensionOrMetricFilter().equals(other.getDimensionOrMetricFilter())) return false; + break; + case 5: + if (!getEventFilter().equals(other.getEventFilter())) return false; + break; + case 0: + default: + } + 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(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 3: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 4: + hash = (37 * hash) + DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionOrMetricFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getEventFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression 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.AudienceFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression 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.AudienceFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression 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.AudienceFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression 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.AudienceFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression 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.AudienceFilterExpression 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.AudienceFilterExpression 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.AudienceFilterExpression 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 logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterExpression) + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceFilterExpression.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(); + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression build() { + com.google.analytics.admin.v1alpha.AudienceFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.AudienceFilterExpression result = + new com.google.analytics.admin.v1alpha.AudienceFilterExpression(this); + if (exprCase_ == 1) { + if (andGroupBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = andGroupBuilder_.build(); + } + } + if (exprCase_ == 2) { + if (orGroupBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = orGroupBuilder_.build(); + } + } + if (exprCase_ == 3) { + if (notExpressionBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = notExpressionBuilder_.build(); + } + } + if (exprCase_ == 4) { + if (dimensionOrMetricFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = dimensionOrMetricFilterBuilder_.build(); + } + } + if (exprCase_ == 5) { + if (eventFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = eventFilterBuilder_.build(); + } + } + result.exprCase_ = exprCase_; + 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.AudienceFilterExpression) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterExpression other) { + if (other == com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) + return this; + switch (other.getExprCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case DIMENSION_OR_METRIC_FILTER: + { + mergeDimensionOrMetricFilter(other.getDimensionOrMetricFilter()); + break; + } + case EVENT_FILTER: + { + mergeEventFilter(other.getEventFilter()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + 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.AudienceFilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder> + dimensionOrMetricFilterBuilder_; + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return Whether the dimensionOrMetricFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionOrMetricFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return The dimensionOrMetricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDimensionOrMetricFilter() { + if (dimensionOrMetricFilterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return dimensionOrMetricFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder setDimensionOrMetricFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter value) { + if (dimensionOrMetricFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + dimensionOrMetricFilterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder setDimensionOrMetricFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder + builderForValue) { + if (dimensionOrMetricFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + dimensionOrMetricFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder mergeDimensionOrMetricFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter value) { + if (dimensionOrMetricFilterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + dimensionOrMetricFilterBuilder_.mergeFrom(value); + } else { + dimensionOrMetricFilterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder clearDimensionOrMetricFilter() { + if (dimensionOrMetricFilterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + dimensionOrMetricFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder + getDimensionOrMetricFilterBuilder() { + return getDimensionOrMetricFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder + getDimensionOrMetricFilterOrBuilder() { + if ((exprCase_ == 4) && (dimensionOrMetricFilterBuilder_ != null)) { + return dimensionOrMetricFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder> + getDimensionOrMetricFilterFieldBuilder() { + if (dimensionOrMetricFilterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + dimensionOrMetricFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + ; + return dimensionOrMetricFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventFilter, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder> + eventFilterBuilder_; + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return Whether the eventFilter field is set. + */ + @java.lang.Override + public boolean hasEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return The eventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter() { + if (eventFilterBuilder_ == null) { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } else { + if (exprCase_ == 5) { + return eventFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder setEventFilter(com.google.analytics.admin.v1alpha.AudienceEventFilter value) { + if (eventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + eventFilterBuilder_.setMessage(value); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder setEventFilter( + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder builderForValue) { + if (eventFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + eventFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder mergeEventFilter(com.google.analytics.admin.v1alpha.AudienceEventFilter value) { + if (eventFilterBuilder_ == null) { + if (exprCase_ == 5 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceEventFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 5) { + eventFilterBuilder_.mergeFrom(value); + } else { + eventFilterBuilder_.setMessage(value); + } + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder clearEventFilter() { + if (eventFilterBuilder_ == null) { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + } + eventFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder getEventFilterBuilder() { + return getEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder + getEventFilterOrBuilder() { + if ((exprCase_ == 5) && (eventFilterBuilder_ != null)) { + return eventFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventFilter, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder> + getEventFilterFieldBuilder() { + if (eventFilterBuilder_ == null) { + if (!(exprCase_ == 5)) { + expr_ = com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + eventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventFilter, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 5; + onChanged(); + ; + return eventFilterBuilder_; + } + + @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.AudienceFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterExpression) + private static final com.google.analytics.admin.v1alpha.AudienceFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceFilterExpression(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.AudienceFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java new file mode 100644 index 000000000000..e16cf4d560f7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java @@ -0,0 +1,1031 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of Audience filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpressionList} + */ +public final class AudienceFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + AudienceFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceFilterExpressionList.newBuilder() to construct. + private AudienceFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceFilterExpressionList() { + filterExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceFilterExpressionList( + 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)) { + filterExpressions_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AudienceFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + filterExpressions_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder.class); + } + + public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List + filterExpressions_; + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List + getFilterExpressionsList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public int getFilterExpressionsCount() { + return filterExpressions_.size(); + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions( + int index) { + return filterExpressions_.get(index); + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + return filterExpressions_.get(index); + } + + 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 < filterExpressions_.size(); i++) { + output.writeMessage(1, filterExpressions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < filterExpressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, filterExpressions_.get(i)); + } + 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.AudienceFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList other = + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) obj; + + if (!getFilterExpressionsList().equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { + hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpressionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList 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.AudienceFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList 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.AudienceFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList 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.AudienceFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList 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.AudienceFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList 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.AudienceFilterExpressionList 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.AudienceFilterExpressionList 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.AudienceFilterExpressionList 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 list of Audience filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFilterExpressionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList build() { + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result = + new com.google.analytics.admin.v1alpha.AudienceFilterExpressionList(this); + int from_bitField0_ = bitField0_; + if (filterExpressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterExpressions_ = filterExpressions_; + } else { + result.filterExpressions_ = filterExpressionsBuilder_.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.AudienceFilterExpressionList) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance()) + return this; + if (filterExpressionsBuilder_ == null) { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressions_.isEmpty()) { + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterExpressionsIsMutable(); + filterExpressions_.addAll(other.filterExpressions_); + } + onChanged(); + } + } else { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressionsBuilder_.isEmpty()) { + filterExpressionsBuilder_.dispose(); + filterExpressionsBuilder_ = null; + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + filterExpressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterExpressionsFieldBuilder() + : null; + } else { + filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); + } + } + } + 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.AudienceFilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + filterExpressions_ = java.util.Collections.emptyList(); + + private void ensureFilterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = + new java.util.ArrayList( + filterExpressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + filterExpressionsBuilder_; + + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsList() { + if (filterExpressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterExpressions_); + } else { + return filterExpressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public int getFilterExpressionsCount() { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.size(); + } else { + return filterExpressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions( + int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addAllFilterExpressions( + java.lang.Iterable + values) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterExpressions_); + onChanged(); + } else { + filterExpressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder clearFilterExpressions() { + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder removeFilterExpressions(int index) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.remove(index); + onChanged(); + } else { + filterExpressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + if (filterExpressionsBuilder_ != null) { + return filterExpressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterExpressions_); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + addFilterExpressionsBuilder() { + return getFilterExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + addFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsBuilderList() { + return getFilterExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionsFieldBuilder() { + if (filterExpressionsBuilder_ == null) { + filterExpressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + filterExpressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterExpressions_ = null; + } + return filterExpressionsBuilder_; + } + + @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.AudienceFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceFilterExpressionList(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.AudienceFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..db0aaaec09d6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsList(); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions(int index); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + int getFilterExpressionsCount(); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java new file mode 100644 index 000000000000..739242ab8c3b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java @@ -0,0 +1,230 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup(); + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup(); + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression(); + /** + * + * + *
+   * A filter expression to be NOT'ed (i.e., inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return Whether the dimensionOrMetricFilter field is set. + */ + boolean hasDimensionOrMetricFilter(); + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return The dimensionOrMetricFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDimensionOrMetricFilter(); + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder + getDimensionOrMetricFilterOrBuilder(); + + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return Whether the eventFilter field is set. + */ + boolean hasEventFilter(); + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return The eventFilter. + */ + com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter(); + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder getEventFilterOrBuilder(); + + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.ExprCase getExprCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java new file mode 100644 index 000000000000..4c2c4041ebfd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Specifies how to evaluate users for joining an Audience.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceFilterScope} + */ +public enum AudienceFilterScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Scope is not specified.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + */ + AUDIENCE_FILTER_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * event.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + */ + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT(1), + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + */ + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION(2), + /** + * + * + *
+   * User joins the Audience if the filter condition is met by any event
+   * across any session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; + */ + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Scope is not specified.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + */ + public static final int AUDIENCE_FILTER_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * event.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + */ + public static final int AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT_VALUE = 1; + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + */ + public static final int AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION_VALUE = 2; + /** + * + * + *
+   * User joins the Audience if the filter condition is met by any event
+   * across any session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; + */ + public static final int AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS_VALUE = 3; + + 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 AudienceFilterScope 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 AudienceFilterScope forNumber(int value) { + switch (value) { + case 0: + return AUDIENCE_FILTER_SCOPE_UNSPECIFIED; + case 1: + return AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT; + case 2: + return AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION; + case 3: + return AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS; + 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 AudienceFilterScope findValueByNumber(int number) { + return AudienceFilterScope.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.AudienceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AudienceFilterScope[] VALUES = values(); + + public static AudienceFilterScope 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 AudienceFilterScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceFilterScope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java new file mode 100644 index 000000000000..8656d2d518c5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2022 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 AudienceName implements ResourceName { + private static final PathTemplate PROPERTY_AUDIENCE = + PathTemplate.createWithoutUrlEncoding("properties/{property}/audiences/{audience}"); + private volatile Map fieldValuesMap; + private final String property; + private final String audience; + + @Deprecated + protected AudienceName() { + property = null; + audience = null; + } + + private AudienceName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + audience = Preconditions.checkNotNull(builder.getAudience()); + } + + public String getProperty() { + return property; + } + + public String getAudience() { + return audience; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AudienceName of(String property, String audience) { + return newBuilder().setProperty(property).setAudience(audience).build(); + } + + public static String format(String property, String audience) { + return newBuilder().setProperty(property).setAudience(audience).build().toString(); + } + + public static AudienceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_AUDIENCE.validatedMatch( + formattedString, "AudienceName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("audience")); + } + + 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 (AudienceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_AUDIENCE.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 (audience != null) { + fieldMapBuilder.put("audience", audience); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_AUDIENCE.instantiate("property", property, "audience", audience); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + AudienceName that = ((AudienceName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.audience, that.audience); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(audience); + return h; + } + + /** Builder for properties/{property}/audiences/{audience}. */ + public static class Builder { + private String property; + private String audience; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getAudience() { + return audience; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setAudience(String audience) { + this.audience = audience; + return this; + } + + private Builder(AudienceName audienceName) { + this.property = audienceName.property; + this.audience = audienceName.audience; + } + + public AudienceName build() { + return new AudienceName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java new file mode 100644 index 000000000000..9fe4d5443e74 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java @@ -0,0 +1,278 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Audience) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the Audience.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the Audience.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more
+   * than 540 days.
+   * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The membershipDurationDays. + */ + int getMembershipDurationDays(); + + /** + * + * + *
+   * Output only. It is automatically set by GA to false if this is an NPA Audience and is
+   * excluded from ads personalization.
+   * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adsPersonalizationEnabled. + */ + boolean getAdsPersonalizationEnabled(); + + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+   * event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTrigger field is set. + */ + boolean hasEventTrigger(); + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+   * event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTrigger. + */ + com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger(); + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not set, no
+   * event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder getEventTriggerOrBuilder(); + + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+   * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+   * there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for exclusionDurationMode. + */ + int getExclusionDurationModeValue(); + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the exclusion
+   * filter. It is applied to all EXCLUDE filter clauses and is ignored when
+   * there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The exclusionDurationMode. + */ + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + getExclusionDurationMode(); + + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List getFilterClausesList(); + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index); + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + int getFilterClausesCount(); + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterClausesOrBuilderList(); + /** + * + * + *
+   * Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed
+   * together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java new file mode 100644 index 000000000000..9e9ce4dca0a6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java @@ -0,0 +1,394 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public final class AudienceProto { + private AudienceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/analytics/admin/v1alpha/audienc" + + "e.proto\022\036google.analytics.admin.v1alpha\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\036google/protobuf/dur" + + "ation.proto\"\305\014\n\037AudienceDimensionOrMetri" + + "cFilter\022e\n\rstring_filter\030\002 \001(\0132L.google." + + "analytics.admin.v1alpha.AudienceDimensio" + + "nOrMetricFilter.StringFilterH\000\022f\n\016in_lis" + + "t_filter\030\003 \001(\0132L.google.analytics.admin." + + "v1alpha.AudienceDimensionOrMetricFilter." + + "InListFilterH\000\022g\n\016numeric_filter\030\004 \001(\0132M" + + ".google.analytics.admin.v1alpha.Audience" + + "DimensionOrMetricFilter.NumericFilterH\000\022" + + "g\n\016between_filter\030\005 \001(\0132M.google.analyti" + + "cs.admin.v1alpha.AudienceDimensionOrMetr" + + "icFilter.BetweenFilterH\000\022\032\n\nfield_name\030\001" + + " \001(\tB\006\340A\002\340A\005\022!\n\024at_any_point_in_time\030\006 \001" + + "(\010B\003\340A\001\022 \n\023in_any_n_day_period\030\007 \001(\005B\003\340A" + + "\001\032\270\002\n\014StringFilter\022o\n\nmatch_type\030\001 \001(\0162V" + + ".google.analytics.admin.v1alpha.Audience" + + "DimensionOrMetricFilter.StringFilter.Mat" + + "chTypeB\003\340A\002\022\022\n\005value\030\002 \001(\tB\003\340A\002\022\033\n\016case_" + + "sensitive\030\003 \001(\010B\003\340A\001\"\205\001\n\tMatchType\022\032\n\026MA" + + "TCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEG" + + "INS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022" + + "\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\032@\n\014" + + "InListFilter\022\023\n\006values\030\001 \003(\tB\003\340A\002\022\033\n\016cas" + + "e_sensitive\030\002 \001(\010B\003\340A\001\032J\n\014NumericValue\022\025" + + "\n\013int64_value\030\001 \001(\003H\000\022\026\n\014double_value\030\002 " + + "\001(\001H\000B\013\n\tone_value\032\352\002\n\rNumericFilter\022o\n\t" + + "operation\030\001 \001(\0162W.google.analytics.admin" + + ".v1alpha.AudienceDimensionOrMetricFilter" + + ".NumericFilter.OperationB\003\340A\002\022`\n\005value\030\002" + + " \001(\0132L.google.analytics.admin.v1alpha.Au" + + "dienceDimensionOrMetricFilter.NumericVal" + + "ueB\003\340A\002\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPE" + + "CIFIED\020\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LE" + + "SS_THAN_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025" + + "GREATER_THAN_OR_EQUAL\020\005\032\333\001\n\rBetweenFilte" + + "r\022e\n\nfrom_value\030\001 \001(\0132L.google.analytics" + + ".admin.v1alpha.AudienceDimensionOrMetric" + + "Filter.NumericValueB\003\340A\002\022c\n\010to_value\030\002 \001" + + "(\0132L.google.analytics.admin.v1alpha.Audi" + + "enceDimensionOrMetricFilter.NumericValue" + + "B\003\340A\002B\014\n\none_filter\"\233\001\n\023AudienceEventFil" + + "ter\022\032\n\nevent_name\030\001 \001(\tB\006\340A\002\340A\005\022h\n!event" + + "_parameter_filter_expression\030\002 \001(\01328.goo" + + "gle.analytics.admin.v1alpha.AudienceFilt" + + "erExpressionB\003\340A\001\"\317\003\n\030AudienceFilterExpr" + + "ession\022Q\n\tand_group\030\001 \001(\0132<.google.analy" + + "tics.admin.v1alpha.AudienceFilterExpress" + + "ionListH\000\022P\n\010or_group\030\002 \001(\0132<.google.ana" + + "lytics.admin.v1alpha.AudienceFilterExpre" + + "ssionListH\000\022R\n\016not_expression\030\003 \001(\01328.go" + + "ogle.analytics.admin.v1alpha.AudienceFil" + + "terExpressionH\000\022e\n\032dimension_or_metric_f" + + "ilter\030\004 \001(\0132?.google.analytics.admin.v1a" + + "lpha.AudienceDimensionOrMetricFilterH\000\022K" + + "\n\014event_filter\030\005 \001(\01323.google.analytics." + + "admin.v1alpha.AudienceEventFilterH\000B\006\n\004e" + + "xpr\"t\n\034AudienceFilterExpressionList\022T\n\022f" + + "ilter_expressions\030\001 \003(\01328.google.analyti" + + "cs.admin.v1alpha.AudienceFilterExpressio" + + "n\"\277\001\n\024AudienceSimpleFilter\022J\n\005scope\030\001 \001(" + + "\01623.google.analytics.admin.v1alpha.Audie" + + "nceFilterScopeB\006\340A\002\340A\005\022[\n\021filter_express" + + "ion\030\002 \001(\01328.google.analytics.admin.v1alp" + + "ha.AudienceFilterExpressionB\006\340A\002\340A\005\"\262\004\n\026" + + "AudienceSequenceFilter\022J\n\005scope\030\001 \001(\01623." + + "google.analytics.admin.v1alpha.AudienceF" + + "ilterScopeB\006\340A\002\340A\005\022A\n\031sequence_maximum_d" + + "uration\030\002 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\022h\n\016sequence_steps\030\003 \003(\0132K.google.a" + + "nalytics.admin.v1alpha.AudienceSequenceF" + + "ilter.AudienceSequenceStepB\003\340A\002\032\236\002\n\024Audi" + + "enceSequenceStep\022J\n\005scope\030\001 \001(\01623.google" + + ".analytics.admin.v1alpha.AudienceFilterS" + + "copeB\006\340A\002\340A\005\022 \n\023immediately_follows\030\002 \001(" + + "\010B\003\340A\001\022;\n\023constraint_duration\030\003 \001(\0132\031.go" + + "ogle.protobuf.DurationB\003\340A\001\022[\n\021filter_ex" + + "pression\030\004 \001(\01328.google.analytics.admin." + + "v1alpha.AudienceFilterExpressionB\006\340A\002\340A\005" + + "\"\373\002\n\024AudienceFilterClause\022M\n\rsimple_filt" + + "er\030\002 \001(\01324.google.analytics.admin.v1alph" + + "a.AudienceSimpleFilterH\000\022Q\n\017sequence_fil" + + "ter\030\003 \001(\01326.google.analytics.admin.v1alp" + + "ha.AudienceSequenceFilterH\000\022a\n\013clause_ty" + + "pe\030\001 \001(\0162G.google.analytics.admin.v1alph" + + "a.AudienceFilterClause.AudienceClauseTyp" + + "eB\003\340A\002\"T\n\022AudienceClauseType\022$\n AUDIENCE" + + "_CLAUSE_TYPE_UNSPECIFIED\020\000\022\013\n\007INCLUDE\020\001\022" + + "\013\n\007EXCLUDE\020\002B\010\n\006filter\"\363\001\n\024AudienceEvent" + + "Trigger\022\027\n\nevent_name\030\001 \001(\tB\003\340A\002\022]\n\rlog_" + + "condition\030\002 \001(\0162A.google.analytics.admin" + + ".v1alpha.AudienceEventTrigger.LogConditi" + + "onB\003\340A\002\"c\n\014LogCondition\022\035\n\031LOG_CONDITION" + + "_UNSPECIFIED\020\000\022\023\n\017AUDIENCE_JOINED\020\001\022\037\n\033A" + + "UDIENCE_MEMBERSHIP_RENEWED\020\002\"\236\005\n\010Audienc" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001" + + "(\tB\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\002\022(\n\030mem" + + "bership_duration_days\030\004 \001(\005B\006\340A\002\340A\005\022(\n\033a" + + "ds_personalization_enabled\030\005 \001(\010B\003\340A\003\022P\n" + + "\revent_trigger\030\006 \001(\01324.google.analytics." + + "admin.v1alpha.AudienceEventTriggerB\003\340A\001\022" + + "l\n\027exclusion_duration_mode\030\007 \001(\0162F.googl" + + "e.analytics.admin.v1alpha.Audience.Audie" + + "nceExclusionDurationModeB\003\340A\005\022W\n\016filter_" + + "clauses\030\010 \003(\01324.google.analytics.admin.v" + + "1alpha.AudienceFilterClauseB\t\340A\005\340A\002\340A\006\"\203" + + "\001\n\035AudienceExclusionDurationMode\0220\n,AUDI" + + "ENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" + + "\020\000\022\027\n\023EXCLUDE_TEMPORARILY\020\001\022\027\n\023EXCLUDE_P" + + "ERMANENTLY\020\002:W\352AT\n&analyticsadmin.google" + + "apis.com/Audience\022*properties/{property}" + + "/audiences/{audience}*\307\001\n\023AudienceFilter" + + "Scope\022%\n!AUDIENCE_FILTER_SCOPE_UNSPECIFI" + + "ED\020\000\022+\n\'AUDIENCE_FILTER_SCOPE_WITHIN_SAM" + + "E_EVENT\020\001\022-\n)AUDIENCE_FILTER_SCOPE_WITHI" + + "N_SAME_SESSION\020\002\022-\n)AUDIENCE_FILTER_SCOP" + + "E_ACROSS_ALL_SESSIONS\020\003Bz\n\"com.google.an" + + "alytics.admin.v1alphaB\rAudienceProtoP\001ZC" + + "google.golang.org/genproto/googleapis/an" + + "alytics/admin/v1alpha;adminb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor, + new java.lang.String[] { + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FieldName", + "AtAnyPointInTime", + "InAnyNDayPeriod", + "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(2); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor, + new java.lang.String[] { + "Int64Value", "DoubleValue", "OneValue", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(3); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor, + new java.lang.String[] { + "Operation", "Value", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(4); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor, + new java.lang.String[] { + "FromValue", "ToValue", + }); + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor, + new java.lang.String[] { + "EventName", "EventParameterFilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", + "OrGroup", + "NotExpression", + "DimensionOrMetricFilter", + "EventFilter", + "Expr", + }); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor, + new java.lang.String[] { + "FilterExpressions", + }); + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor, + new java.lang.String[] { + "Scope", "FilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor, + new java.lang.String[] { + "Scope", "SequenceMaximumDuration", "SequenceSteps", + }); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor, + new java.lang.String[] { + "Scope", "ImmediatelyFollows", "ConstraintDuration", "FilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor, + new java.lang.String[] { + "SimpleFilter", "SequenceFilter", "ClauseType", "Filter", + }); + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor, + new java.lang.String[] { + "EventName", "LogCondition", + }); + internal_static_google_analytics_admin_v1alpha_Audience_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_Audience_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "MembershipDurationDays", + "AdsPersonalizationEnabled", + "EventTrigger", + "ExclusionDurationMode", + "FilterClauses", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java new file mode 100644 index 000000000000..d9321396c451 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java @@ -0,0 +1,3116 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Defines filters that must occur in a specific order for the user to be a
+ * member of the Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter} + */ +public final class AudienceSequenceFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter) + AudienceSequenceFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceSequenceFilter.newBuilder() to construct. + private AudienceSequenceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSequenceFilter() { + scope_ = 0; + sequenceSteps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSequenceFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceSequenceFilter( + 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 8: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (sequenceMaximumDuration_ != null) { + subBuilder = sequenceMaximumDuration_.toBuilder(); + } + sequenceMaximumDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sequenceMaximumDuration_); + sequenceMaximumDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sequenceSteps_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStep>(); + mutable_bitField0_ |= 0x00000001; + } + sequenceSteps_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + sequenceSteps_ = java.util.Collections.unmodifiableList(sequenceSteps_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder.class); + } + + public interface AudienceSequenceStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); + + /** + * + * + *
+     * Optional. If true, the event satisfying this step must be the very next event
+     * after the event satisfying the last step. If unset or false, this
+     * step indirectly follows the prior step; for example, there may be
+     * events between the prior step and this step. It is ignored for the
+     * first step.
+     * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The immediatelyFollows. + */ + boolean getImmediatelyFollows(); + + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the constraint_duration of
+     * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+     * set, there is no duration requirement (the duration is effectively
+     * unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the constraintDuration field is set. + */ + boolean hasConstraintDuration(); + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the constraint_duration of
+     * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+     * set, there is no duration requirement (the duration is effectively
+     * unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The constraintDuration. + */ + com.google.protobuf.Duration getConstraintDuration(); + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the constraint_duration of
+     * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+     * set, there is no duration requirement (the duration is effectively
+     * unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder(); + + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+     * each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+     * each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression(); + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+     * each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder(); + } + /** + * + * + *
+   * A condition that must occur in the specified step order for this user
+   * to match the sequence.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} + */ + public static final class AudienceSequenceStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + AudienceSequenceStepOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceSequenceStep.newBuilder() to construct. + private AudienceSequenceStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSequenceStep() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSequenceStep(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceSequenceStep( + 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 8: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 16: + { + immediatelyFollows_ = input.readBool(); + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (constraintDuration_ != null) { + subBuilder = constraintDuration_.toBuilder(); + } + constraintDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(constraintDuration_); + constraintDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder subBuilder = + null; + if (filterExpression_ != null) { + subBuilder = filterExpression_.toBuilder(); + } + filterExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterExpression_); + filterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + .class); + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + + public static final int IMMEDIATELY_FOLLOWS_FIELD_NUMBER = 2; + private boolean immediatelyFollows_; + /** + * + * + *
+     * Optional. If true, the event satisfying this step must be the very next event
+     * after the event satisfying the last step. If unset or false, this
+     * step indirectly follows the prior step; for example, there may be
+     * events between the prior step and this step. It is ignored for the
+     * first step.
+     * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The immediatelyFollows. + */ + @java.lang.Override + public boolean getImmediatelyFollows() { + return immediatelyFollows_; + } + + public static final int CONSTRAINT_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration constraintDuration_; + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the constraint_duration of
+     * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+     * set, there is no duration requirement (the duration is effectively
+     * unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the constraintDuration field is set. + */ + @java.lang.Override + public boolean hasConstraintDuration() { + return constraintDuration_ != null; + } + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the constraint_duration of
+     * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+     * set, there is no duration requirement (the duration is effectively
+     * unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The constraintDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getConstraintDuration() { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the constraint_duration of
+     * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+     * set, there is no duration requirement (the duration is effectively
+     * unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder() { + return getConstraintDuration(); + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+     * each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+     * each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+     * each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return getFilterExpression(); + } + + 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 (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope + .AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + if (immediatelyFollows_ != false) { + output.writeBool(2, immediatelyFollows_); + } + if (constraintDuration_ != null) { + output.writeMessage(3, getConstraintDuration()); + } + if (filterExpression_ != null) { + output.writeMessage(4, getFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope + .AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + if (immediatelyFollows_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, immediatelyFollows_); + } + if (constraintDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConstraintDuration()); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilterExpression()); + } + 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.AudienceSequenceFilter.AudienceSequenceStep)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep other = + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) obj; + + if (scope_ != other.scope_) return false; + if (getImmediatelyFollows() != other.getImmediatelyFollows()) return false; + if (hasConstraintDuration() != other.hasConstraintDuration()) return false; + if (hasConstraintDuration()) { + if (!getConstraintDuration().equals(other.getConstraintDuration())) return false; + } + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + IMMEDIATELY_FOLLOWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImmediatelyFollows()); + if (hasConstraintDuration()) { + hash = (37 * hash) + CONSTRAINT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getConstraintDuration().hashCode(); + } + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep + 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.AudienceSequenceFilter.AudienceSequenceStep 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 condition that must occur in the specified step order for this user
+     * to match the sequence.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.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(); + scope_ = 0; + + immediatelyFollows_ = false; + + if (constraintDurationBuilder_ == null) { + constraintDuration_ = null; + } else { + constraintDuration_ = null; + constraintDurationBuilder_ = null; + } + if (filterExpressionBuilder_ == null) { + filterExpression_ = null; + } else { + filterExpression_ = null; + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + build() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result = + new com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep( + this); + result.scope_ = scope_; + result.immediatelyFollows_ = immediatelyFollows_; + if (constraintDurationBuilder_ == null) { + result.constraintDuration_ = constraintDuration_; + } else { + result.constraintDuration_ = constraintDurationBuilder_.build(); + } + if (filterExpressionBuilder_ == null) { + result.filterExpression_ = filterExpression_; + } else { + result.filterExpression_ = filterExpressionBuilder_.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.AudienceSequenceFilter.AudienceSequenceStep) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance()) return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.getImmediatelyFollows() != false) { + setImmediatelyFollows(other.getImmediatelyFollows()); + } + if (other.hasConstraintDuration()) { + mergeConstraintDuration(other.getConstraintDuration()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + 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.AudienceSequenceFilter.AudienceSequenceStep + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int scope_ = 0; + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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.AudienceFilterScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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 immediatelyFollows_; + /** + * + * + *
+       * Optional. If true, the event satisfying this step must be the very next event
+       * after the event satisfying the last step. If unset or false, this
+       * step indirectly follows the prior step; for example, there may be
+       * events between the prior step and this step. It is ignored for the
+       * first step.
+       * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The immediatelyFollows. + */ + @java.lang.Override + public boolean getImmediatelyFollows() { + return immediatelyFollows_; + } + /** + * + * + *
+       * Optional. If true, the event satisfying this step must be the very next event
+       * after the event satisfying the last step. If unset or false, this
+       * step indirectly follows the prior step; for example, there may be
+       * events between the prior step and this step. It is ignored for the
+       * first step.
+       * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The immediatelyFollows to set. + * @return This builder for chaining. + */ + public Builder setImmediatelyFollows(boolean value) { + + immediatelyFollows_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the event satisfying this step must be the very next event
+       * after the event satisfying the last step. If unset or false, this
+       * step indirectly follows the prior step; for example, there may be
+       * events between the prior step and this step. It is ignored for the
+       * first step.
+       * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearImmediatelyFollows() { + + immediatelyFollows_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration constraintDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + constraintDurationBuilder_; + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the constraintDuration field is set. + */ + public boolean hasConstraintDuration() { + return constraintDurationBuilder_ != null || constraintDuration_ != null; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The constraintDuration. + */ + public com.google.protobuf.Duration getConstraintDuration() { + if (constraintDurationBuilder_ == null) { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } else { + return constraintDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConstraintDuration(com.google.protobuf.Duration value) { + if (constraintDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + constraintDuration_ = value; + onChanged(); + } else { + constraintDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConstraintDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (constraintDurationBuilder_ == null) { + constraintDuration_ = builderForValue.build(); + onChanged(); + } else { + constraintDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConstraintDuration(com.google.protobuf.Duration value) { + if (constraintDurationBuilder_ == null) { + if (constraintDuration_ != null) { + constraintDuration_ = + com.google.protobuf.Duration.newBuilder(constraintDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + constraintDuration_ = value; + } + onChanged(); + } else { + constraintDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConstraintDuration() { + if (constraintDurationBuilder_ == null) { + constraintDuration_ = null; + onChanged(); + } else { + constraintDuration_ = null; + constraintDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getConstraintDurationBuilder() { + + onChanged(); + return getConstraintDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder() { + if (constraintDurationBuilder_ != null) { + return constraintDurationBuilder_.getMessageOrBuilder(); + } else { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the constraint_duration of
+       * the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not
+       * set, there is no duration requirement (the duration is effectively
+       * unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getConstraintDurationFieldBuilder() { + if (constraintDurationBuilder_ == null) { + constraintDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getConstraintDuration(), getParentForChildren(), isClean()); + constraintDuration_ = null; + } + return constraintDurationBuilder_; + } + + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return filterExpressionBuilder_ != null || filterExpression_ != null; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + onChanged(); + } else { + filterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + onChanged(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (filterExpression_ != null) { + filterExpression_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( + filterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + filterExpression_ = value; + } + onChanged(); + } else { + filterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearFilterExpression() { + if (filterExpressionBuilder_ == null) { + filterExpression_ = null; + onChanged(); + } else { + filterExpression_ = null; + filterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getFilterExpressionBuilder() { + + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric, or event filters in
+       * each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @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.AudienceSequenceFilter.AudienceSequenceStep) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + private static final com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStep + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSequenceStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceSequenceStep(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.AudienceSequenceFilter.AudienceSequenceStep + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + + public static final int SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration sequenceMaximumDuration_; + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sequenceMaximumDuration field is set. + */ + @java.lang.Override + public boolean hasSequenceMaximumDuration() { + return sequenceMaximumDuration_ != null; + } + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sequenceMaximumDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getSequenceMaximumDuration() { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { + return getSequenceMaximumDuration(); + } + + public static final int SEQUENCE_STEPS_FIELD_NUMBER = 3; + private java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + sequenceSteps_; + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + getSequenceStepsList() { + return sequenceSteps_; + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder> + getSequenceStepsOrBuilderList() { + return sequenceSteps_; + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSequenceStepsCount() { + return sequenceSteps_.size(); + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getSequenceSteps(int index) { + return sequenceSteps_.get(index); + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder + getSequenceStepsOrBuilder(int index) { + return sequenceSteps_.get(index); + } + + 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 (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + if (sequenceMaximumDuration_ != null) { + output.writeMessage(2, getSequenceMaximumDuration()); + } + for (int i = 0; i < sequenceSteps_.size(); i++) { + output.writeMessage(3, sequenceSteps_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + if (sequenceMaximumDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSequenceMaximumDuration()); + } + for (int i = 0; i < sequenceSteps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sequenceSteps_.get(i)); + } + 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.AudienceSequenceFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceSequenceFilter other = + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) obj; + + if (scope_ != other.scope_) return false; + if (hasSequenceMaximumDuration() != other.hasSequenceMaximumDuration()) return false; + if (hasSequenceMaximumDuration()) { + if (!getSequenceMaximumDuration().equals(other.getSequenceMaximumDuration())) return false; + } + if (!getSequenceStepsList().equals(other.getSequenceStepsList())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (hasSequenceMaximumDuration()) { + hash = (37 * hash) + SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getSequenceMaximumDuration().hashCode(); + } + if (getSequenceStepsCount() > 0) { + hash = (37 * hash) + SEQUENCE_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getSequenceStepsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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.AudienceSequenceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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.AudienceSequenceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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.AudienceSequenceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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.AudienceSequenceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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.AudienceSequenceFilter 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.AudienceSequenceFilter 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.AudienceSequenceFilter 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; + } + /** + * + * + *
+   * Defines filters that must occur in a specific order for the user to be a
+   * member of the Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter) + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceSequenceFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSequenceStepsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + scope_ = 0; + + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = null; + } else { + sequenceMaximumDuration_ = null; + sequenceMaximumDurationBuilder_ = null; + } + if (sequenceStepsBuilder_ == null) { + sequenceSteps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + sequenceStepsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter build() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter result = + new com.google.analytics.admin.v1alpha.AudienceSequenceFilter(this); + int from_bitField0_ = bitField0_; + result.scope_ = scope_; + if (sequenceMaximumDurationBuilder_ == null) { + result.sequenceMaximumDuration_ = sequenceMaximumDuration_; + } else { + result.sequenceMaximumDuration_ = sequenceMaximumDurationBuilder_.build(); + } + if (sequenceStepsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sequenceSteps_ = java.util.Collections.unmodifiableList(sequenceSteps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sequenceSteps_ = sequenceSteps_; + } else { + result.sequenceSteps_ = sequenceStepsBuilder_.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.AudienceSequenceFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSequenceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSequenceFilter other) { + if (other == com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.hasSequenceMaximumDuration()) { + mergeSequenceMaximumDuration(other.getSequenceMaximumDuration()); + } + if (sequenceStepsBuilder_ == null) { + if (!other.sequenceSteps_.isEmpty()) { + if (sequenceSteps_.isEmpty()) { + sequenceSteps_ = other.sequenceSteps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSequenceStepsIsMutable(); + sequenceSteps_.addAll(other.sequenceSteps_); + } + onChanged(); + } + } else { + if (!other.sequenceSteps_.isEmpty()) { + if (sequenceStepsBuilder_.isEmpty()) { + sequenceStepsBuilder_.dispose(); + sequenceStepsBuilder_ = null; + sequenceSteps_ = other.sequenceSteps_; + bitField0_ = (bitField0_ & ~0x00000001); + sequenceStepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSequenceStepsFieldBuilder() + : null; + } else { + sequenceStepsBuilder_.addAllMessages(other.sequenceSteps_); + } + } + } + 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.AudienceSequenceFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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.AudienceFilterScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration sequenceMaximumDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + sequenceMaximumDurationBuilder_; + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sequenceMaximumDuration field is set. + */ + public boolean hasSequenceMaximumDuration() { + return sequenceMaximumDurationBuilder_ != null || sequenceMaximumDuration_ != null; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sequenceMaximumDuration. + */ + public com.google.protobuf.Duration getSequenceMaximumDuration() { + if (sequenceMaximumDurationBuilder_ == null) { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } else { + return sequenceMaximumDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSequenceMaximumDuration(com.google.protobuf.Duration value) { + if (sequenceMaximumDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sequenceMaximumDuration_ = value; + onChanged(); + } else { + sequenceMaximumDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSequenceMaximumDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = builderForValue.build(); + onChanged(); + } else { + sequenceMaximumDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSequenceMaximumDuration(com.google.protobuf.Duration value) { + if (sequenceMaximumDurationBuilder_ == null) { + if (sequenceMaximumDuration_ != null) { + sequenceMaximumDuration_ = + com.google.protobuf.Duration.newBuilder(sequenceMaximumDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + sequenceMaximumDuration_ = value; + } + onChanged(); + } else { + sequenceMaximumDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSequenceMaximumDuration() { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = null; + onChanged(); + } else { + sequenceMaximumDuration_ = null; + sequenceMaximumDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getSequenceMaximumDurationBuilder() { + + onChanged(); + return getSequenceMaximumDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { + if (sequenceMaximumDurationBuilder_ != null) { + return sequenceMaximumDurationBuilder_.getMessageOrBuilder(); + } else { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getSequenceMaximumDurationFieldBuilder() { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getSequenceMaximumDuration(), getParentForChildren(), isClean()); + sequenceMaximumDuration_ = null; + } + return sequenceMaximumDurationBuilder_; + } + + private java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + sequenceSteps_ = java.util.Collections.emptyList(); + + private void ensureSequenceStepsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sequenceSteps_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep>( + sequenceSteps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder> + sequenceStepsBuilder_; + + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + getSequenceStepsList() { + if (sequenceStepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sequenceSteps_); + } else { + return sequenceStepsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSequenceStepsCount() { + if (sequenceStepsBuilder_ == null) { + return sequenceSteps_.size(); + } else { + return sequenceStepsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getSequenceSteps(int index) { + if (sequenceStepsBuilder_ == null) { + return sequenceSteps_.get(index); + } else { + return sequenceStepsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { + if (sequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSequenceStepsIsMutable(); + sequenceSteps_.set(index, value); + onChanged(); + } else { + sequenceStepsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + builderForValue) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.set(index, builderForValue.build()); + onChanged(); + } else { + sequenceStepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { + if (sequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(value); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { + if (sequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(index, value); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + builderForValue) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(builderForValue.build()); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + builderForValue) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(index, builderForValue.build()); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSequenceSteps( + java.lang.Iterable< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + values) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sequenceSteps_); + onChanged(); + } else { + sequenceStepsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSequenceSteps() { + if (sequenceStepsBuilder_ == null) { + sequenceSteps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sequenceStepsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSequenceSteps(int index) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.remove(index); + onChanged(); + } else { + sequenceStepsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + getSequenceStepsBuilder(int index) { + return getSequenceStepsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder + getSequenceStepsOrBuilder(int index) { + if (sequenceStepsBuilder_ == null) { + return sequenceSteps_.get(index); + } else { + return sequenceStepsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder> + getSequenceStepsOrBuilderList() { + if (sequenceStepsBuilder_ != null) { + return sequenceStepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sequenceSteps_); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + addSequenceStepsBuilder() { + return getSequenceStepsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + addSequenceStepsBuilder(int index) { + return getSequenceStepsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in order to
+     * join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder> + getSequenceStepsBuilderList() { + return getSequenceStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder> + getSequenceStepsFieldBuilder() { + if (sequenceStepsBuilder_ == null) { + sequenceStepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder>( + sequenceSteps_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + sequenceSteps_ = null; + } + return sequenceStepsBuilder_; + } + + @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.AudienceSequenceFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter) + private static final com.google.analytics.admin.v1alpha.AudienceSequenceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSequenceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceSequenceFilter(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.AudienceSequenceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java new file mode 100644 index 000000000000..40549e8bd6d1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java @@ -0,0 +1,168 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceSequenceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSequenceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); + + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sequenceMaximumDuration field is set. + */ + boolean hasSequenceMaximumDuration(); + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sequenceMaximumDuration. + */ + com.google.protobuf.Duration getSequenceMaximumDuration(); + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder(); + + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSequenceStepsList(); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getSequenceSteps( + int index); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSequenceStepsCount(); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder> + getSequenceStepsOrBuilderList(); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in order to
+   * join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder + getSequenceStepsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java new file mode 100644 index 000000000000..6d74cea50a98 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java @@ -0,0 +1,943 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Defines a simple filter that a user must satisfy to be a member of the
+ * Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSimpleFilter} + */ +public final class AudienceSimpleFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSimpleFilter) + AudienceSimpleFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceSimpleFilter.newBuilder() to construct. + private AudienceSimpleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSimpleFilter() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSimpleFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AudienceSimpleFilter( + 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 8: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder subBuilder = null; + if (filterExpression_ != null) { + subBuilder = filterExpression_.toBuilder(); + } + filterExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterExpression_); + filterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.class, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder.class); + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_; + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return getFilterExpression(); + } + + 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 (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + if (filterExpression_ != null) { + output.writeMessage(2, getFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilterExpression()); + } + 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.AudienceSimpleFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceSimpleFilter other = + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) obj; + + if (scope_ != other.scope_) return false; + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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.AudienceSimpleFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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.AudienceSimpleFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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.AudienceSimpleFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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.AudienceSimpleFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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.AudienceSimpleFilter 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.AudienceSimpleFilter 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.AudienceSimpleFilter 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; + } + /** + * + * + *
+   * Defines a simple filter that a user must satisfy to be a member of the
+   * Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSimpleFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSimpleFilter) + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.class, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceSimpleFilter.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(); + scope_ = 0; + + if (filterExpressionBuilder_ == null) { + filterExpression_ = null; + } else { + filterExpression_ = null; + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter build() { + com.google.analytics.admin.v1alpha.AudienceSimpleFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceSimpleFilter result = + new com.google.analytics.admin.v1alpha.AudienceSimpleFilter(this); + result.scope_ = scope_; + if (filterExpressionBuilder_ == null) { + result.filterExpression_ = filterExpression_; + } else { + result.filterExpression_ = filterExpressionBuilder_.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.AudienceSimpleFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSimpleFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSimpleFilter other) { + if (other == com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + 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.AudienceSimpleFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.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.AudienceFilterScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return filterExpressionBuilder_ != null || filterExpression_ != null; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + onChanged(); + } else { + filterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + onChanged(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (filterExpression_ != null) { + filterExpression_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( + filterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + filterExpression_ = value; + } + onChanged(); + } else { + filterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearFilterExpression() { + if (filterExpressionBuilder_ == null) { + filterExpression_ = null; + onChanged(); + } else { + filterExpression_ = null; + filterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getFilterExpressionBuilder() { + + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @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.AudienceSimpleFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSimpleFilter) + private static final com.google.analytics.admin.v1alpha.AudienceSimpleFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSimpleFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AudienceSimpleFilter(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.AudienceSimpleFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java new file mode 100644 index 000000000000..9dd3a6686a9c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java @@ -0,0 +1,96 @@ +/* + * 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/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceSimpleFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSimpleFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); + + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression(); + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index 460a5fa1b76d..5486378cc335 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -656,6 +656,42 @@ public interface ChangeHistoryResourceOrBuilder */ com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return Whether the attributionSettings field is set. + */ + boolean hasAttributionSettings(); + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return The attributionSettings. + */ + com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(); + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder(); + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -959,6 +995,26 @@ private ChangeHistoryResource( resourceCase_ = 18; break; } + case 162: + { + com.google.analytics.admin.v1alpha.AttributionSettings.Builder subBuilder = null; + if (resourceCase_ == 20) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AttributionSettings) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AttributionSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 20; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1016,6 +1072,7 @@ public enum ResourceCase CUSTOM_METRIC(14), DATA_RETENTION_SETTINGS(15), DATA_STREAM(18), + ATTRIBUTION_SETTINGS(20), RESOURCE_NOT_SET(0); private final int value; @@ -1060,6 +1117,8 @@ public static ResourceCase forNumber(int value) { return DATA_RETENTION_SETTINGS; case 18: return DATA_STREAM; + case 20: + return ATTRIBUTION_SETTINGS; case 0: return RESOURCE_NOT_SET; default: @@ -1781,6 +1840,58 @@ public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBui return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); } + public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 20; + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return Whether the attributionSettings field is set. + */ + @java.lang.Override + public boolean hasAttributionSettings() { + return resourceCase_ == 20; + } + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return The attributionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1840,6 +1951,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resourceCase_ == 18) { output.writeMessage(18, (com.google.analytics.admin.v1alpha.DataStream) resource_); } + if (resourceCase_ == 20) { + output.writeMessage(20, (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); + } unknownFields.writeTo(output); } @@ -1916,6 +2030,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 18, (com.google.analytics.admin.v1alpha.DataStream) resource_); } + if (resourceCase_ == 20) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1978,6 +2097,9 @@ public boolean equals(final java.lang.Object obj) { case 18: if (!getDataStream().equals(other.getDataStream())) return false; break; + case 20: + if (!getAttributionSettings().equals(other.getAttributionSettings())) return false; + break; case 0: default: } @@ -2045,6 +2167,10 @@ public int hashCode() { hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; hash = (53 * hash) + getDataStream().hashCode(); break; + case 20: + hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAttributionSettings().hashCode(); + break; case 0: default: } @@ -2330,6 +2456,13 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = dataStreamBuilder_.build(); } } + if (resourceCase_ == 20) { + if (attributionSettingsBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = attributionSettingsBuilder_.build(); + } + } result.resourceCase_ = resourceCase_; onBuilt(); return result; @@ -2455,6 +2588,11 @@ public Builder mergeFrom( mergeDataStream(other.getDataStream()); break; } + case ATTRIBUTION_SETTINGS: + { + mergeAttributionSettings(other.getAttributionSettings()); + break; + } case RESOURCE_NOT_SET: { break; @@ -5391,6 +5529,221 @@ public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBui return dataStreamBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + attributionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return Whether the attributionSettings field is set. + */ + @java.lang.Override + public boolean hasAttributionSettings() { + return resourceCase_ == 20; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return The attributionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 20) { + return attributionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + attributionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 20; + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings.Builder builderForValue) { + if (attributionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + attributionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 20; + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder mergeAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (resourceCase_ == 20 + && resource_ + != com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder( + (com.google.analytics.admin.v1alpha.AttributionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 20) { + attributionSettingsBuilder_.mergeFrom(value); + } else { + attributionSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 20; + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder clearAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + if (resourceCase_ == 20) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 20) { + resourceCase_ = 0; + resource_ = null; + } + attributionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public com.google.analytics.admin.v1alpha.AttributionSettings.Builder + getAttributionSettingsBuilder() { + return getAttributionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + if ((resourceCase_ == 20) && (attributionSettingsBuilder_ != null)) { + return attributionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + getAttributionSettingsFieldBuilder() { + if (attributionSettingsBuilder_ == null) { + if (!(resourceCase_ == 20)) { + resource_ = com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + attributionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.AttributionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 20; + onChanged(); + ; + return attributionSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index f65864f0cd39..55c4efb119f3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -158,6 +158,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; */ DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), + /** + * + * + *
+   * SearchAds360Link resource
+   * 
+ * + * SEARCH_ADS_360_LINK = 16; + */ + SEARCH_ADS_360_LINK(16), /** * * @@ -168,6 +178,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DATA_STREAM = 18; */ DATA_STREAM(18), + /** + * + * + *
+   * AttributionSettings resource
+   * 
+ * + * ATTRIBUTION_SETTINGS = 20; + */ + ATTRIBUTION_SETTINGS(20), UNRECOGNIZED(-1), ; @@ -301,6 +321,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; */ public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; + /** + * + * + *
+   * SearchAds360Link resource
+   * 
+ * + * SEARCH_ADS_360_LINK = 16; + */ + public static final int SEARCH_ADS_360_LINK_VALUE = 16; /** * * @@ -311,6 +341,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DATA_STREAM = 18; */ public static final int DATA_STREAM_VALUE = 18; + /** + * + * + *
+   * AttributionSettings resource
+   * 
+ * + * ATTRIBUTION_SETTINGS = 20; + */ + public static final int ATTRIBUTION_SETTINGS_VALUE = 20; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -362,8 +402,12 @@ public static ChangeHistoryResourceType forNumber(int value) { return DISPLAY_VIDEO_360_ADVERTISER_LINK; case 15: return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; + case 16: + return SEARCH_ADS_360_LINK; case 18: return DATA_STREAM; + case 20: + return ATTRIBUTION_SETTINGS; default: return null; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java new file mode 100644 index 000000000000..e4c565b817f4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.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 CreateAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAudienceRequest} + */ +public final class CreateAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAudienceRequest) + CreateAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAudienceRequest.newBuilder() to construct. + private CreateAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAudienceRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAudienceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateAudienceRequest( + 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.Audience.Builder subBuilder = null; + if (audience_ != null) { + subBuilder = audience_.toBuilder(); + } + audience_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Audience.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audience_); + audience_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_CreateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, + com.google.analytics.admin.v1alpha.CreateAudienceRequest.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 AUDIENCE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.Audience audience_; + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + @java.lang.Override + public boolean hasAudience() { + return audience_ != null; + } + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudience() { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + return getAudience(); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (audience_ != null) { + output.writeMessage(2, getAudience()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (audience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudience()); + } + 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.CreateAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateAudienceRequest other = + (com.google.analytics.admin.v1alpha.CreateAudienceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAudience() != other.hasAudience()) return false; + if (hasAudience()) { + if (!getAudience().equals(other.getAudience())) 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 (hasAudience()) { + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest 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.CreateAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest 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.CreateAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest 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.CreateAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest 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.CreateAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest 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.CreateAudienceRequest 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.CreateAudienceRequest 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.CreateAudienceRequest 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 CreateAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAudienceRequest) + com.google.analytics.admin.v1alpha.CreateAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, + com.google.analytics.admin.v1alpha.CreateAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateAudienceRequest.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 (audienceBuilder_ == null) { + audience_ = null; + } else { + audience_ = null; + audienceBuilder_ = 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_CreateAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest build() { + com.google.analytics.admin.v1alpha.CreateAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateAudienceRequest result = + new com.google.analytics.admin.v1alpha.CreateAudienceRequest(this); + result.parent_ = parent_; + if (audienceBuilder_ == null) { + result.audience_ = audience_; + } else { + result.audience_ = audienceBuilder_.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.CreateAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasAudience()) { + mergeAudience(other.getAudience()); + } + 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.CreateAudienceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateAudienceRequest) 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.Audience audience_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audienceBuilder_; + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + public boolean hasAudience() { + return audienceBuilder_ != null || audience_ != null; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + public com.google.analytics.admin.v1alpha.Audience getAudience() { + if (audienceBuilder_ == null) { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } else { + return audienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + audience_ = value; + onChanged(); + } else { + audienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audienceBuilder_ == null) { + audience_ = builderForValue.build(); + onChanged(); + } else { + audienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (audience_ != null) { + audience_ = + com.google.analytics.admin.v1alpha.Audience.newBuilder(audience_) + .mergeFrom(value) + .buildPartial(); + } else { + audience_ = value; + } + onChanged(); + } else { + audienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAudience() { + if (audienceBuilder_ == null) { + audience_ = null; + onChanged(); + } else { + audience_ = null; + audienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { + + onChanged(); + return getAudienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + if (audienceBuilder_ != null) { + return audienceBuilder_.getMessageOrBuilder(); + } else { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudienceFieldBuilder() { + if (audienceBuilder_ == null) { + audienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + getAudience(), getParentForChildren(), isClean()); + audience_ = null; + } + return audienceBuilder_; + } + + @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.CreateAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAudienceRequest) + private static final com.google.analytics.admin.v1alpha.CreateAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAudienceRequest(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.CreateAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..bc459160c20a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.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 CreateAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAudienceRequest) + 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 audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + boolean hasAudience(); + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + com.google.analytics.admin.v1alpha.Audience getAudience(); + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java new file mode 100644 index 000000000000..f0b074d7d3b7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java @@ -0,0 +1,667 @@ +/* + * 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 GetAttributionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAttributionSettingsRequest} + */ +public final class GetAttributionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + GetAttributionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAttributionSettingsRequest.newBuilder() to construct. + private GetAttributionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAttributionSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAttributionSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetAttributionSettingsRequest( + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_GetAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * 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 attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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.GetAttributionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) 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.GetAttributionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest 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.GetAttributionSettingsRequest 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 GetAttributionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAttributionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.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_GetAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(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.GetAttributionSettingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.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.GetAttributionSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * 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 attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * 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 attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * 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 attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * 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 attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * 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.GetAttributionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttributionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAttributionSettingsRequest(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.GetAttributionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..5d0b3502e618 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.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 GetAttributionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java new file mode 100644 index 000000000000..74f76bb72c81 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java @@ -0,0 +1,660 @@ +/* + * 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 GetAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAudienceRequest} + */ +public final class GetAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAudienceRequest) + GetAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAudienceRequest.newBuilder() to construct. + private GetAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAudienceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAudienceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetAudienceRequest( + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_GetAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAudienceRequest.class, + com.google.analytics.admin.v1alpha.GetAudienceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/audiences/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 Audience to get.
+   * Example format: properties/1234/audiences/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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + 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.GetAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAudienceRequest other = + (com.google.analytics.admin.v1alpha.GetAudienceRequest) 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.GetAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest 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.GetAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest 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.GetAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest 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.GetAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest 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.GetAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest 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.GetAudienceRequest 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.GetAudienceRequest 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.GetAudienceRequest 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 GetAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAudienceRequest) + com.google.analytics.admin.v1alpha.GetAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAudienceRequest.class, + com.google.analytics.admin.v1alpha.GetAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAudienceRequest.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_GetAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest build() { + com.google.analytics.admin.v1alpha.GetAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAudienceRequest result = + new com.google.analytics.admin.v1alpha.GetAudienceRequest(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.GetAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetAudienceRequest.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.GetAudienceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetAudienceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/audiences/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 Audience to get.
+     * Example format: properties/1234/audiences/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 Audience to get.
+     * Example format: properties/1234/audiences/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 Audience to get.
+     * Example format: properties/1234/audiences/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 Audience to get.
+     * Example format: properties/1234/audiences/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.GetAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAudienceRequest) + private static final com.google.analytics.admin.v1alpha.GetAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAudienceRequest(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.GetAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..d5fbb7e81b56 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.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 GetAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/audiences/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 Audience to get.
+   * Example format: properties/1234/audiences/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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java new file mode 100644 index 000000000000..2c1147c5e386 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java @@ -0,0 +1,951 @@ +/* + * 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 ListAudiences RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesRequest} + */ +public final class ListAudiencesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAudiencesRequest) + ListAudiencesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAudiencesRequest.newBuilder() to construct. + private ListAudiencesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAudiencesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAudiencesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAudiencesRequest( + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_ListAudiencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, + com.google.analytics.admin.v1alpha.ListAudiencesRequest.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 `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAudiences` 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 `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAudiences` 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + 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.ListAudiencesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAudiencesRequest other = + (com.google.analytics.admin.v1alpha.ListAudiencesRequest) 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.ListAudiencesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest 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.ListAudiencesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest 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.ListAudiencesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest 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.ListAudiencesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest 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.ListAudiencesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest 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.ListAudiencesRequest 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.ListAudiencesRequest 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.ListAudiencesRequest 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 ListAudiences RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAudiencesRequest) + com.google.analytics.admin.v1alpha.ListAudiencesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, + com.google.analytics.admin.v1alpha.ListAudiencesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAudiencesRequest.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_ListAudiencesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAudiencesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest build() { + com.google.analytics.admin.v1alpha.ListAudiencesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAudiencesRequest result = + new com.google.analytics.admin.v1alpha.ListAudiencesRequest(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.ListAudiencesRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAudiencesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAudiencesRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListAudiencesRequest.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.ListAudiencesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListAudiencesRequest) 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 `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAudiences` 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 `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAudiences` 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 `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAudiences` 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 `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAudiences` 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 `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAudiences` 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.ListAudiencesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAudiencesRequest) + private static final com.google.analytics.admin.v1alpha.ListAudiencesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAudiencesRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAudiencesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAudiencesRequest(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.ListAudiencesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java new file mode 100644 index 000000000000..7583ee55b925 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.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 ListAudiencesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAudiencesRequest) + 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 `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAudiences` 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 `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAudiences` 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java new file mode 100644 index 000000000000..a66af400872c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java @@ -0,0 +1,1140 @@ +/* + * 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 ListAudiences RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesResponse} + */ +public final class ListAudiencesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAudiencesResponse) + ListAudiencesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAudiencesResponse.newBuilder() to construct. + private ListAudiencesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAudiencesResponse() { + audiences_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAudiencesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListAudiencesResponse( + 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)) { + audiences_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + audiences_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.Audience.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + audiences_ = java.util.Collections.unmodifiableList(audiences_); + } + 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_ListAudiencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, + com.google.analytics.admin.v1alpha.ListAudiencesResponse.Builder.class); + } + + public static final int AUDIENCES_FIELD_NUMBER = 1; + private java.util.List audiences_; + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public java.util.List getAudiencesList() { + return audiences_; + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public java.util.List + getAudiencesOrBuilderList() { + return audiences_; + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public int getAudiencesCount() { + return audiences_.size(); + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudiences(int index) { + return audiences_.get(index); + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder(int index) { + return audiences_.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 < audiences_.size(); i++) { + output.writeMessage(1, audiences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + 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 < audiences_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, audiences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + 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.ListAudiencesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAudiencesResponse other = + (com.google.analytics.admin.v1alpha.ListAudiencesResponse) obj; + + if (!getAudiencesList().equals(other.getAudiencesList())) 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 (getAudiencesCount() > 0) { + hash = (37 * hash) + AUDIENCES_FIELD_NUMBER; + hash = (53 * hash) + getAudiencesList().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.ListAudiencesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse 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.ListAudiencesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse 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.ListAudiencesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse 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.ListAudiencesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse 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.ListAudiencesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse 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.ListAudiencesResponse 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.ListAudiencesResponse 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.ListAudiencesResponse 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 ListAudiences RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAudiencesResponse) + com.google.analytics.admin.v1alpha.ListAudiencesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, + com.google.analytics.admin.v1alpha.ListAudiencesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAudiencesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAudiencesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (audiencesBuilder_ == null) { + audiences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + audiencesBuilder_.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_ListAudiencesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse build() { + com.google.analytics.admin.v1alpha.ListAudiencesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAudiencesResponse result = + new com.google.analytics.admin.v1alpha.ListAudiencesResponse(this); + int from_bitField0_ = bitField0_; + if (audiencesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + audiences_ = java.util.Collections.unmodifiableList(audiences_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.audiences_ = audiences_; + } else { + result.audiences_ = audiencesBuilder_.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.ListAudiencesResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAudiencesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAudiencesResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance()) + return this; + if (audiencesBuilder_ == null) { + if (!other.audiences_.isEmpty()) { + if (audiences_.isEmpty()) { + audiences_ = other.audiences_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAudiencesIsMutable(); + audiences_.addAll(other.audiences_); + } + onChanged(); + } + } else { + if (!other.audiences_.isEmpty()) { + if (audiencesBuilder_.isEmpty()) { + audiencesBuilder_.dispose(); + audiencesBuilder_ = null; + audiences_ = other.audiences_; + bitField0_ = (bitField0_ & ~0x00000001); + audiencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAudiencesFieldBuilder() + : null; + } else { + audiencesBuilder_.addAllMessages(other.audiences_); + } + } + } + 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.ListAudiencesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListAudiencesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List audiences_ = + java.util.Collections.emptyList(); + + private void ensureAudiencesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + audiences_ = + new java.util.ArrayList(audiences_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audiencesBuilder_; + + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public java.util.List getAudiencesList() { + if (audiencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(audiences_); + } else { + return audiencesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public int getAudiencesCount() { + if (audiencesBuilder_ == null) { + return audiences_.size(); + } else { + return audiencesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience getAudiences(int index) { + if (audiencesBuilder_ == null) { + return audiences_.get(index); + } else { + return audiencesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder setAudiences(int index, com.google.analytics.admin.v1alpha.Audience value) { + if (audiencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.set(index, value); + onChanged(); + } else { + audiencesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder setAudiences( + int index, com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.set(index, builderForValue.build()); + onChanged(); + } else { + audiencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences(com.google.analytics.admin.v1alpha.Audience value) { + if (audiencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.add(value); + onChanged(); + } else { + audiencesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences(int index, com.google.analytics.admin.v1alpha.Audience value) { + if (audiencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.add(index, value); + onChanged(); + } else { + audiencesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.add(builderForValue.build()); + onChanged(); + } else { + audiencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences( + int index, com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.add(index, builderForValue.build()); + onChanged(); + } else { + audiencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAllAudiences( + java.lang.Iterable values) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_); + onChanged(); + } else { + audiencesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder clearAudiences() { + if (audiencesBuilder_ == null) { + audiences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + audiencesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder removeAudiences(int index) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.remove(index); + onChanged(); + } else { + audiencesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudiencesBuilder(int index) { + return getAudiencesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder(int index) { + if (audiencesBuilder_ == null) { + return audiences_.get(index); + } else { + return audiencesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public java.util.List + getAudiencesOrBuilderList() { + if (audiencesBuilder_ != null) { + return audiencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(audiences_); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder addAudiencesBuilder() { + return getAudiencesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()); + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder addAudiencesBuilder(int index) { + return getAudiencesFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()); + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public java.util.List + getAudiencesBuilderList() { + return getAudiencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudiencesFieldBuilder() { + if (audiencesBuilder_ == null) { + audiencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + audiences_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + audiences_ = null; + } + return audiencesBuilder_; + } + + 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.ListAudiencesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAudiencesResponse) + private static final com.google.analytics.admin.v1alpha.ListAudiencesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAudiencesResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAudiencesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAudiencesResponse(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.ListAudiencesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java new file mode 100644 index 000000000000..cde775e22811 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.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 ListAudiencesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAudiencesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + java.util.List getAudiencesList(); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + com.google.analytics.admin.v1alpha.Audience getAudiences(int index); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + int getAudiencesCount(); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + java.util.List + getAudiencesOrBuilderList(); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder(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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java index c09fddce52b0..d83c61cb0959 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -138,7 +138,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -164,7 +164,7 @@ public 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -647,7 +647,7 @@ public Builder mergeFrom( * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -672,7 +672,7 @@ public 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -697,7 +697,7 @@ public com.google.protobuf.ByteString getNameBytes() { * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -721,7 +721,7 @@ public Builder setName(java.lang.String value) { * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -741,7 +741,7 @@ public Builder clearName() { * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java index 7070bc62c27b..e76ac51f4076 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java @@ -30,7 +30,7 @@ public interface MeasurementProtocolSecretOrBuilder * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -45,7 +45,7 @@ public interface MeasurementProtocolSecretOrBuilder * 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} + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 1b528860c1e9..0aa8747a5b12 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -39,6 +39,7 @@ private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Property() { name_ = ""; + propertyType_ = 0; parent_ = ""; displayName_ = ""; industryCategory_ = 0; @@ -193,6 +194,13 @@ private Property( account_ = s; break; } + case 112: + { + int rawValue = input.readEnum(); + + propertyType_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -282,6 +290,52 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int PROPERTY_TYPE_FIELD_NUMBER = 14; + private int propertyType_; + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a property, if
+   * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+   * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+   * via Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a property, if
+   * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+   * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+   * via Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.valueOf(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** @@ -388,8 +442,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { *
    * Immutable. Resource name of this property's logical parent.
    * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -414,8 +468,8 @@ public java.lang.String getParent() { *
    * Immutable. Resource name of this property's logical parent.
    * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -897,6 +951,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, account_); } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(14, propertyType_); + } unknownFields.writeTo(output); } @@ -945,6 +1003,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, account_); } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, propertyType_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -962,6 +1024,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.admin.v1alpha.Property) obj; if (!getName().equals(other.getName())) return false; + if (propertyType_ != other.propertyType_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -998,6 +1061,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -1175,6 +1240,8 @@ public Builder clear() { super.clear(); name_ = ""; + propertyType_ = 0; + if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -1241,6 +1308,7 @@ public com.google.analytics.admin.v1alpha.Property buildPartial() { com.google.analytics.admin.v1alpha.Property result = new com.google.analytics.admin.v1alpha.Property(this); result.name_ = name_; + result.propertyType_ = propertyType_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -1321,6 +1389,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { name_ = other.name_; onChanged(); } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1504,6 +1575,122 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private int propertyType_ = 0; + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a property, if
+     * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+     * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+     * via Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a property, if
+     * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+     * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+     * via Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + + propertyType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a property, if
+     * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+     * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+     * via Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.valueOf(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a property, if
+     * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+     * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+     * via Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a property, if
+     * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+     * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+     * via Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + + propertyType_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1913,8 +2100,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { *
      * Immutable. Resource name of this property's logical parent.
      * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1938,8 +2125,8 @@ public java.lang.String getParent() { *
      * Immutable. Resource name of this property's logical parent.
      * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1963,8 +2150,8 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Immutable. Resource name of this property's logical parent.
      * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1987,8 +2174,8 @@ public Builder setParent(java.lang.String value) { *
      * Immutable. Resource name of this property's logical parent.
      * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2007,8 +2194,8 @@ public Builder clearParent() { *
      * Immutable. Resource name of this property's logical parent.
      * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
      * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index fee4031e16be..5ffc2bd1a551 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -52,6 +52,41 @@ public interface PropertyOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a property, if
+   * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+   * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+   * via Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a property, if
+   * the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be
+   * implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created
+   * via Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + com.google.analytics.admin.v1alpha.PropertyType getPropertyType(); + /** * * @@ -134,8 +169,8 @@ public interface PropertyOrBuilder *
    * Immutable. Resource name of this property's logical parent.
    * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -149,8 +184,8 @@ public interface PropertyOrBuilder *
    * Immutable. Resource name of this property's logical parent.
    * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
    * 
* * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java index 38957f3b837a..c0afa9fb9ce4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java @@ -40,6 +40,8 @@ private PropertySummary(com.google.protobuf.GeneratedMessageV3.Builder builde private PropertySummary() { property_ = ""; displayName_ = ""; + propertyType_ = 0; + parent_ = ""; } @java.lang.Override @@ -85,6 +87,20 @@ private PropertySummary( displayName_ = s; break; } + case 24: + { + int rawValue = input.readEnum(); + + propertyType_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -223,6 +239,97 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } + public static final int PROPERTY_TYPE_FIELD_NUMBER = 3; + private int propertyType_; + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.valueOf(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + + public static final int PARENT_FIELD_NUMBER = 4; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Resource name of this property's logical parent.
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @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; + } + } + /** + * + * + *
+   * Resource name of this property's logical parent.
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @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 @@ -243,6 +350,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, propertyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } unknownFields.writeTo(output); } @@ -258,6 +372,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, propertyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +397,8 @@ public boolean equals(final java.lang.Object obj) { if (!getProperty().equals(other.getProperty())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; + if (propertyType_ != other.propertyType_) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,6 +414,10 @@ public int hashCode() { hash = (53 * hash) + getProperty().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -440,6 +567,10 @@ public Builder clear() { displayName_ = ""; + propertyType_ = 0; + + parent_ = ""; + return this; } @@ -469,6 +600,8 @@ public com.google.analytics.admin.v1alpha.PropertySummary buildPartial() { new com.google.analytics.admin.v1alpha.PropertySummary(this); result.property_ = property_; result.displayName_ = displayName_; + result.propertyType_ = propertyType_; + result.parent_ = parent_; onBuilt(); return result; } @@ -527,6 +660,13 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.PropertySummary othe displayName_ = other.displayName_; onChanged(); } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -779,6 +919,218 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { return this; } + private int propertyType_ = 0; + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + + propertyType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.valueOf(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + + propertyType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Resource name of this property's logical parent.
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @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; + } + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @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; + } + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @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; + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @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); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java index db4396927038..720ce7f52adf 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java @@ -76,4 +76,60 @@ public interface PropertySummaryOrBuilder * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The propertyType. + */ + com.google.analytics.admin.v1alpha.PropertyType getPropertyType(); + + /** + * + * + *
+   * Resource name of this property's logical parent.
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Resource name of this property's logical parent.
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java new file mode 100644 index 000000000000..9a554d57a6b8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java @@ -0,0 +1,198 @@ +/* + * 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; + +/** + * + * + *
+ * Types of Property resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.PropertyType} + */ +public enum PropertyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified property type
+   * 
+ * + * PROPERTY_TYPE_UNSPECIFIED = 0; + */ + PROPERTY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Ordinary GA4 property
+   * 
+ * + * PROPERTY_TYPE_ORDINARY = 1; + */ + PROPERTY_TYPE_ORDINARY(1), + /** + * + * + *
+   * GA4 subproperty
+   * 
+ * + * PROPERTY_TYPE_SUBPROPERTY = 2; + */ + PROPERTY_TYPE_SUBPROPERTY(2), + /** + * + * + *
+   * GA4 rollup property
+   * 
+ * + * PROPERTY_TYPE_ROLLUP = 3; + */ + PROPERTY_TYPE_ROLLUP(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified property type
+   * 
+ * + * PROPERTY_TYPE_UNSPECIFIED = 0; + */ + public static final int PROPERTY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Ordinary GA4 property
+   * 
+ * + * PROPERTY_TYPE_ORDINARY = 1; + */ + public static final int PROPERTY_TYPE_ORDINARY_VALUE = 1; + /** + * + * + *
+   * GA4 subproperty
+   * 
+ * + * PROPERTY_TYPE_SUBPROPERTY = 2; + */ + public static final int PROPERTY_TYPE_SUBPROPERTY_VALUE = 2; + /** + * + * + *
+   * GA4 rollup property
+   * 
+ * + * PROPERTY_TYPE_ROLLUP = 3; + */ + public static final int PROPERTY_TYPE_ROLLUP_VALUE = 3; + + 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 PropertyType 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 PropertyType forNumber(int value) { + switch (value) { + case 0: + return PROPERTY_TYPE_UNSPECIFIED; + case 1: + return PROPERTY_TYPE_ORDINARY; + case 2: + return PROPERTY_TYPE_SUBPROPERTY; + case 3: + return PROPERTY_TYPE_ROLLUP; + 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 PropertyType findValueByNumber(int number) { + return PropertyType.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(9); + } + + private static final PropertyType[] VALUES = values(); + + public static PropertyType 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 PropertyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.PropertyType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index f1c6239ad0b8..fd853e8e7b6f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -131,6 +131,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -151,95 +155,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".protobuf.TimestampB\003\340A\003\022\031\n\014display_name" + "\030\004 \001(\tB\003\340A\002\022\023\n\013region_code\030\005 \001(\t\022\024\n\007dele" + "ted\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.goog" - + "leapis.com/Account\022\022accounts/{account}\"\357" - + "\004\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022" - + "\031\n\014display_name\030\005 \001(\tB\003\340A\002\022K\n\021industry_c" - + "ategory\030\006 \001(\01620.google.analytics.admin.v" - + "1alpha.IndustryCategory\022\026\n\ttime_zone\030\007 \001" - + "(\tB\003\340A\002\022\025\n\rcurrency_code\030\010 \001(\t\022H\n\rservic" - + "e_level\030\n \001(\0162,.google.analytics.admin.v" - + "1alpha.ServiceLevelB\003\340A\003\0224\n\013delete_time\030" - + "\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" - + "\n\013expire_time\030\014 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%a" - + "nalyticsadmin.googleapis.com/Account:B\352A" - + "?\n&analyticsadmin.googleapis.com/Propert" - + "y\022\025properties/{property}\"\371\007\n\nDataStream\022" - + "S\n\017web_stream_data\030\006 \001(\01328.google.analyt" - + "ics.admin.v1alpha.DataStream.WebStreamDa" - + "taH\000\022b\n\027android_app_stream_data\030\007 \001(\0132?." - + "google.analytics.admin.v1alpha.DataStrea" - + "m.AndroidAppStreamDataH\000\022Z\n\023ios_app_stre" - + "am_data\030\010 \001(\0132;.google.analytics.admin.v" - + "1alpha.DataStream.IosAppStreamDataH\000\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\003\022O\n\004type\030\002 \001(\01629.google.a" - + "nalytics.admin.v1alpha.DataStream.DataSt" - + "reamTypeB\006\340A\005\340A\002\022\024\n\014display_name\030\003 \001(\t\0224" - + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\032d\n\rWebStreamD" - + "ata\022\033\n\016measurement_id\030\001 \001(\tB\003\340A\003\022\034\n\017fire" - + "base_app_id\030\002 \001(\tB\003\340A\003\022\030\n\013default_uri\030\003 " - + "\001(\tB\003\340A\005\032O\n\024AndroidAppStreamData\022\034\n\017fire" - + "base_app_id\030\001 \001(\tB\003\340A\003\022\031\n\014package_name\030\002" - + " \001(\tB\003\340A\005\032K\n\020IosAppStreamData\022\034\n\017firebas" - + "e_app_id\030\001 \001(\tB\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006" - + "\340A\005\340A\002\"}\n\016DataStreamType\022 \n\034DATA_STREAM_" - + "TYPE_UNSPECIFIED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022" - + "\033\n\027ANDROID_APP_DATA_STREAM\020\002\022\027\n\023IOS_APP_" - + "DATA_STREAM\020\003:^\352A[\n(analyticsadmin.googl" - + "eapis.com/DataStream\022/properties/{proper" - + "ty}/dataStreams/{data_stream}B\r\n\013stream_" - + "data\"\324\001\n\010UserLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" - + "email_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}/userLin" - + "ks/{user_link}\022+properties/{property}/us" - + "erLinks/{user_link}\"c\n\rAuditUserLink\022\014\n\004" - + "name\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t\022\024\n\014dir" - + "ect_roles\030\003 \003(\t\022\027\n\017effective_roles\030\004 \003(\t" - + "\"\323\001\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007" - + "project\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n*a" - + "nalyticsadmin.googleapis.com/FirebaseLin" - + "k\0223properties/{property}/firebaseLinks/{" - + "firebase_link}\"\251\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:o\352Al\n+" - + "analyticsadmin.googleapis.com/GlobalSite" - + "Tag\022=properties/{property}/dataStreams/{" - + "data_stream}/globalSiteTag\"\230\003\n\rGoogleAds" - + "Link\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_manage_clients\030\004 \001(\010B\003\340" - + "A\003\022?\n\033ads_personalization_enabled\030\005 \001(\0132" - + "\032.google.protobuf.BoolValue\0224\n\013create_ti" - + "me\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\022\"\n\025creator_email_address" - + "\030\t \001(\tB\003\340A\003:h\352Ae\n+analyticsadmin.googlea" - + "pis.com/GoogleAdsLink\0226properties/{prope" - + "rty}/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_enabled\030" - + "\002 \001(\010\0222\n*sharing_with_google_assigned_sa" - + "les_enabled\030\003 \001(\010\022-\n%sharing_with_google" - + "_any_sales_enabled\030\004 \001(\010\022,\n$sharing_with" - + "_google_products_enabled\030\005 \001(\010\022#\n\033sharin" - + "g_with_others_enabled\030\006 \001(\010:^\352A[\n1analyt" - + "icsadmin.googleapis.com/DataSharingSetti" - + "ngs\022&accounts/{account}/dataSharingSetti" - + "ngs\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007" - + "account\030\002 \001(\tB*\372A\'\n%analyticsadmin.googl" - + "eapis.com/Account\022\024\n\014display_name\030\003 \001(\t\022" - + "K\n\022property_summaries\030\004 \003(\0132/.google.ana" - + "lytics.admin.v1alpha.PropertySummary:U\352A" - + "R\n,analyticsadmin.googleapis.com/Account" - + "Summary\022\"accountSummaries/{account_summa" - + "ry}\"f\n\017PropertySummary\022=\n\010property\030\001 \001(\t" - + "B+\372A(\n&analyticsadmin.googleapis.com/Pro" - + "perty\022\024\n\014display_name\030\002 \001(\t\"\216\002\n\031Measurem" + + "leapis.com/Account\022\022accounts/{account}\"\271" + + "\005\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\022H\n\rproper" + + "ty_type\030\016 \001(\0162,.google.analytics.admin.v" + + "1alpha.PropertyTypeB\003\340A\005\0224\n\013create_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013update_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022K\n\021industry_categor" + + "y\030\006 \001(\01620.google.analytics.admin.v1alpha" + + ".IndustryCategory\022\026\n\ttime_zone\030\007 \001(\tB\003\340A" + + "\002\022\025\n\rcurrency_code\030\010 \001(\t\022H\n\rservice_leve" + + "l\030\n \001(\0162,.google.analytics.admin.v1alpha" + + ".ServiceLevelB\003\340A\003\0224\n\013delete_time\030\013 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013expi" + + "re_time\030\014 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%analyti" + + "csadmin.googleapis.com/Account:B\352A?\n&ana" + + "lyticsadmin.googleapis.com/Property\022\025pro" + + "perties/{property}\"\371\007\n\nDataStream\022S\n\017web" + + "_stream_data\030\006 \001(\01328.google.analytics.ad" + + "min.v1alpha.DataStream.WebStreamDataH\000\022b" + + "\n\027android_app_stream_data\030\007 \001(\0132?.google" + + ".analytics.admin.v1alpha.DataStream.Andr" + + "oidAppStreamDataH\000\022Z\n\023ios_app_stream_dat" + + "a\030\010 \001(\0132;.google.analytics.admin.v1alpha" + + ".DataStream.IosAppStreamDataH\000\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022O\n\004type\030\002 \001(\01629.google.analyti" + + "cs.admin.v1alpha.DataStream.DataStreamTy" + + "peB\006\340A\005\340A\002\022\024\n\014display_name\030\003 \001(\t\0224\n\013crea" + + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\032d\n\rWebStreamData\022\033\n" + + "\016measurement_id\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_a" + + "pp_id\030\002 \001(\tB\003\340A\003\022\030\n\013default_uri\030\003 \001(\tB\003\340" + + "A\005\032O\n\024AndroidAppStreamData\022\034\n\017firebase_a" + + "pp_id\030\001 \001(\tB\003\340A\003\022\031\n\014package_name\030\002 \001(\tB\003" + + "\340A\005\032K\n\020IosAppStreamData\022\034\n\017firebase_app_" + + "id\030\001 \001(\tB\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006\340A\005\340A\002" + + "\"}\n\016DataStreamType\022 \n\034DATA_STREAM_TYPE_U" + + "NSPECIFIED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027AND" + + "ROID_APP_DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_S" + + "TREAM\020\003:^\352A[\n(analyticsadmin.googleapis." + + "com/DataStream\022/properties/{property}/da" + + "taStreams/{data_stream}B\r\n\013stream_data\"\324" + + "\001\n\010UserLink\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/Us" + + "erLink\022(accounts/{account}/userLinks/{us" + + "er_link}\022+properties/{property}/userLink" + + "s/{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_ro" + + "les\030\003 \003(\t\022\027\n\017effective_roles\030\004 \003(\t\"\323\001\n\014F" + + "irebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007projec" + + "t\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003:d\352Aa\n*analyti" + + "csadmin.googleapis.com/FirebaseLink\0223pro" + + "perties/{property}/firebaseLinks/{fireba" + + "se_link}\"\251\001\n\rGlobalSiteTag\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:o\352Al\n+analyt" + + "icsadmin.googleapis.com/GlobalSiteTag\022=p" + + "roperties/{property}/dataStreams/{data_s" + + "tream}/globalSiteTag\"\230\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_manage_clients\030\004 \001(\010B\003\340A\003\022?\n\033" + + "ads_personalization_enabled\030\005 \001(\0132\032.goog" + + "le.protobuf.BoolValue\0224\n\013create_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\010 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\"\n\025creator_email_address\030\t \001(\t" + + "B\003\340A\003:h\352Ae\n+analyticsadmin.googleapis.co" + + "m/GoogleAdsLink\0226properties/{property}/g" + + "oogleAdsLinks/{google_ads_link}\"\353\002\n\023Data" + + "SharingSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022+\n#sh" + + "aring_with_google_support_enabled\030\002 \001(\010\022" + + "2\n*sharing_with_google_assigned_sales_en" + + "abled\030\003 \001(\010\022-\n%sharing_with_google_any_s" + + "ales_enabled\030\004 \001(\010\022,\n$sharing_with_googl" + + "e_products_enabled\030\005 \001(\010\022#\n\033sharing_with" + + "_others_enabled\030\006 \001(\010:^\352A[\n1analyticsadm" + + "in.googleapis.com/DataSharingSettings\022&a" + + "ccounts/{account}/dataSharingSettings\"\225\002" + + "\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007accoun" + + "t\030\002 \001(\tB*\372A\'\n%analyticsadmin.googleapis." + + "com/Account\022\024\n\014display_name\030\003 \001(\t\022K\n\022pro" + + "perty_summaries\030\004 \003(\0132/.google.analytics" + + ".admin.v1alpha.PropertySummary:U\352AR\n,ana" + + "lyticsadmin.googleapis.com/AccountSummar" + + "y\022\"accountSummaries/{account_summary}\"\273\001" + + "\n\017PropertySummary\022=\n\010property\030\001 \001(\tB+\372A(" + + "\n&analyticsadmin.googleapis.com/Property" + + "\022\024\n\014display_name\030\002 \001(\t\022C\n\rproperty_type\030" + + "\003 \001(\0162,.google.analytics.admin.v1alpha.P" + + "ropertyType\022\016\n\006parent\030\004 \001(\t\"\216\002\n\031Measurem" + "entProtocolSecret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014" + "display_name\030\002 \001(\tB\003\340A\002\022\031\n\014secret_value\030" + "\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n7analyticsadmin.google" @@ -253,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "torType\022\030\n\020user_actor_email\030\004 \001(\t\022\030\n\020cha" + "nges_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003(\01323.g" + "oogle.analytics.admin.v1alpha.ChangeHist" - + "oryChange\"\214\013\n\023ChangeHistoryChange\022\020\n\010res" + + "oryChange\"\341\013\n\023ChangeHistoryChange\022\020\n\010res" + "ource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.google.ana" + "lytics.admin.v1alpha.ActionType\022i\n\026resou" + "rce_before_change\030\003 \001(\0132I.google.analyti" @@ -261,7 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ngeHistoryResource\022h\n\025resource_after_cha" + "nge\030\004 \001(\0132I.google.analytics.admin.v1alp" + "ha.ChangeHistoryChange.ChangeHistoryReso" - + "urce\032\321\010\n\025ChangeHistoryResource\022:\n\007accoun" + + "urce\032\246\t\n\025ChangeHistoryResource\022:\n\007accoun" + "t\030\001 \001(\0132\'.google.analytics.admin.v1alpha" + ".AccountH\000\022<\n\010property\030\002 \001(\0132(.google.an" + "alytics.admin.v1alpha.PropertyH\000\022E\n\rfire" @@ -288,148 +296,188 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n_settings\030\017 \001(\01325.google.analytics.admi" + "n.v1alpha.DataRetentionSettingsH\000\022A\n\013dat" + "a_stream\030\022 \001(\0132*.google.analytics.admin." - + "v1alpha.DataStreamH\000B\n\n\010resource\"\337\003\n\035Dis" - + "playVideo360AdvertiserLink\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022$\n\027adv" - + "ertiser_display_name\030\003 \001(\tB\003\340A\003\022?\n\033ads_p" - + "ersonalization_enabled\030\004 \001(\0132\032.google.pr" - + "otobuf.BoolValue\022F\n\035campaign_data_sharin" - + "g_enabled\030\005 \001(\0132\032.google.protobuf.BoolVa" - + "lueB\003\340A\005\022B\n\031cost_data_sharing_enabled\030\006 " - + "\001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\233\001\352" - + "A\227\001\n;analyticsadmin.googleapis.com/Displ" - + "ayVideo360AdvertiserLink\022Xproperties/{pr" - + "operty}/displayVideo360AdvertiserLinks/{" - + "display_video_360_advertiser_link}\"\212\005\n%D" - + "isplayVideo360AdvertiserLinkProposal\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003" - + "\340A\005\022d\n\034link_proposal_status_details\030\003 \001(" - + "\01329.google.analytics.admin.v1alpha.LinkP" - + "roposalStatusDetailsB\003\340A\003\022$\n\027advertiser_" - + "display_name\030\004 \001(\tB\003\340A\003\022\035\n\020validation_em" - + "ail\030\005 \001(\tB\003\340A\004\022D\n\033ads_personalization_en" - + "abled\030\006 \001(\0132\032.google.protobuf.BoolValueB" - + "\003\340A\005\022F\n\035campaign_data_sharing_enabled\030\007 " - + "\001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n\031" - + "cost_data_sharing_enabled\030\010 \001(\0132\032.google" - + ".protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\nCanalyti" - + "csadmin.googleapis.com/DisplayVideo360Ad" - + "vertiserLinkProposal\022iproperties/{proper" - + "ty}/displayVideo360AdvertiserLinkProposa" - + "ls/{display_video_360_advertiser_link_pr" - + "oposal}\"\374\001\n\031LinkProposalStatusDetails\022l\n" - + " link_proposal_initiating_product\030\001 \001(\0162" - + "=.google.analytics.admin.v1alpha.LinkPro" - + "posalInitiatingProductB\003\340A\003\022\034\n\017requestor" - + "_email\030\002 \001(\tB\003\340A\003\022S\n\023link_proposal_state" - + "\030\003 \001(\01621.google.analytics.admin.v1alpha." - + "LinkProposalStateB\003\340A\003\"\217\002\n\017ConversionEve" - + "nt\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.pro" - + "tobuf.TimestampB\003\340A\003\022\026\n\tdeletable\030\004 \001(\010B" - + "\003\340A\003\022\023\n\006custom\030\005 \001(\010B\003\340A\003:m\352Aj\n-analytic" - + "sadmin.googleapis.com/ConversionEvent\0229p" - + "roperties/{property}/conversionEvents/{c" - + "onversion_event}\"\240\002\n\025GoogleSignalsSettin" - + "gs\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\005state\030\003 \001(\01622.g" - + "oogle.analytics.admin.v1alpha.GoogleSign" - + "alsState\022J\n\007consent\030\004 \001(\01624.google.analy" - + "tics.admin.v1alpha.GoogleSignalsConsentB" - + "\003\340A\003:e\352Ab\n3analyticsadmin.googleapis.com" - + "/GoogleSignalsSettings\022+properties/{prop" - + "erty}/googleSignalsSettings\"\262\003\n\017CustomDi" - + "mension\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(\t" - + "B\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022U\n\005scope" - + "\030\005 \001(\0162>.google.analytics.admin.v1alpha." - + "CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)" - + "\n\034disallow_ads_personalization\030\006 \001(\010B\003\340A" - + "\001\"F\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_U" - + "NSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002:m\352Aj\n-" - + "analyticsadmin.googleapis.com/CustomDime" - + "nsion\0229properties/{property}/customDimen" - + "sions/{custom_dimension}\"\305\006\n\014CustomMetri" - + "c\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\020measurement" - + "_unit\030\005 \001(\0162<.google.analytics.admin.v1a" - + "lpha.CustomMetric.MeasurementUnitB\003\340A\002\022O" - + "\n\005scope\030\006 \001(\01628.google.analytics.admin.v" - + "1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022" - + "f\n\026restricted_metric_type\030\010 \003(\0162A.google" - + ".analytics.admin.v1alpha.CustomMetric.Re" - + "strictedMetricTypeB\003\340A\001\"\267\001\n\017MeasurementU" - + "nit\022 \n\034MEASUREMENT_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\006M" - + "ETERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MI" - + "LLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t" - + "\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOPE" - + "_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024RestrictedM" - + "etricType\022&\n\"RESTRICTED_METRIC_TYPE_UNSP" - + "ECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA" - + "\020\002:d\352Aa\n*analyticsadmin.googleapis.com/C" - + "ustomMetric\0223properties/{property}/custo" - + "mMetrics/{custom_metric}\"\302\003\n\025DataRetenti" - + "onSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022e\n\024event_d" - + "ata_retention\030\002 \001(\0162G.google.analytics.a" - + "dmin.v1alpha.DataRetentionSettings.Reten" - + "tionDuration\022\'\n\037reset_user_data_on_new_a" - + "ctivity\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"\n\036R" - + "ETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\nTWO_M" - + "ONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENTY_S" - + "IX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022\020\n\014" - + "FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin.goog" - + "leapis.com/DataRetentionSettings\022+proper" - + "ties/{property}/dataRetentionSettings*\252\004" - + "\n\020IndustryCategory\022!\n\035INDUSTRY_CATEGORY_" - + "UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINES" - + "S_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022" - + "\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVE" - + "L\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_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\005GAME" - + "S\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME_AND" - + "_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022\026\n\022L" - + "AW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\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\013REAL_ESTATE\020\025\022\r\n\t" - + "REFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022" - + "JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f\n\014Se" - + "rviceLevel\022\035\n\031SERVICE_LEVEL_UNSPECIFIED\020" - + "\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024GOOG" - + "LE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026ACTOR" - + "_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020" - + "\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTION_T" - + "YPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATE" - + "D\020\002\022\013\n\007DELETED\020\003*\216\003\n\031ChangeHistoryResour" - + "ceType\022,\n(CHANGE_HISTORY_RESOURCE_TYPE_U" - + "NSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\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\020CONVERSI" - + "ON_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECRE" - + "T\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM_METR" - + "IC\020\014\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%\n!DIS" - + "PLAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n*DISP" - + "LAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\020\017" - + "\022\017\n\013DATA_STREAM\020\022*s\n\022GoogleSignalsState\022" - + "$\n GOOGLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n" - + "\026GOOGLE_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGN" - + "ALS_DISABLED\020\002*\216\001\n\024GoogleSignalsConsent\022" - + "&\n\"GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022" - + "$\n GOOGLE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n" - + "$GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED\020\001*" - + "{\n\035LinkProposalInitiatingProduct\0220\n,LINK" - + "_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED" - + "\020\000\022\024\n\020GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODU" - + "CT\020\002*\304\001\n\021LinkProposalState\022#\n\037LINK_PROPO" - + "SAL_STATE_UNSPECIFIED\020\000\022)\n%AWAITING_REVI" - + "EW_FROM_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_R" - + "EVIEW_FROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN" - + "\020\003\022\014\n\010DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLET" - + "E\020\006B{\n\"com.google.analytics.admin.v1alph" - + "aB\016ResourcesProtoP\001ZCgoogle.golang.org/g" - + "enproto/googleapis/analytics/admin/v1alp" - + "ha;adminb\006proto3" + + "v1alpha.DataStreamH\000\022S\n\024attribution_sett" + + "ings\030\024 \001(\01323.google.analytics.admin.v1al" + + "pha.AttributionSettingsH\000B\n\n\010resource\"\337\003" + + "\n\035DisplayVideo360AdvertiserLink\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022$" + + "\n\027advertiser_display_name\030\003 \001(\tB\003\340A\003\022?\n\033" + + "ads_personalization_enabled\030\004 \001(\0132\032.goog" + + "le.protobuf.BoolValue\022F\n\035campaign_data_s" + + "haring_enabled\030\005 \001(\0132\032.google.protobuf.B" + + "oolValueB\003\340A\005\022B\n\031cost_data_sharing_enabl" + + "ed\030\006 \001(\0132\032.google.protobuf.BoolValueB\003\340A" + + "\005:\233\001\352A\227\001\n;analyticsadmin.googleapis.com/" + + "DisplayVideo360AdvertiserLink\022Xpropertie" + + "s/{property}/displayVideo360AdvertiserLi" + + "nks/{display_video_360_advertiser_link}\"" + + "\212\005\n%DisplayVideo360AdvertiserLinkProposa" + + "l\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 " + + "\001(\tB\003\340A\005\022d\n\034link_proposal_status_details" + + "\030\003 \001(\01329.google.analytics.admin.v1alpha." + + "LinkProposalStatusDetailsB\003\340A\003\022$\n\027advert" + + "iser_display_name\030\004 \001(\tB\003\340A\003\022\035\n\020validati" + + "on_email\030\005 \001(\tB\003\340A\004\022D\n\033ads_personalizati" + + "on_enabled\030\006 \001(\0132\032.google.protobuf.BoolV" + + "alueB\003\340A\005\022F\n\035campaign_data_sharing_enabl" + + "ed\030\007 \001(\0132\032.google.protobuf.BoolValueB\003\340A" + + "\005\022B\n\031cost_data_sharing_enabled\030\010 \001(\0132\032.g" + + "oogle.protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\nCan" + + "alyticsadmin.googleapis.com/DisplayVideo" + + "360AdvertiserLinkProposal\022iproperties/{p" + + "roperty}/displayVideo360AdvertiserLinkPr" + + "oposals/{display_video_360_advertiser_li" + + "nk_proposal}\"\374\001\n\031LinkProposalStatusDetai" + + "ls\022l\n link_proposal_initiating_product\030\001" + + " \001(\0162=.google.analytics.admin.v1alpha.Li" + + "nkProposalInitiatingProductB\003\340A\003\022\034\n\017requ" + + "estor_email\030\002 \001(\tB\003\340A\003\022S\n\023link_proposal_" + + "state\030\003 \001(\01621.google.analytics.admin.v1a" + + "lpha.LinkProposalStateB\003\340A\003\"\217\002\n\017Conversi" + + "onEvent\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.googl" + + "e.protobuf.TimestampB\003\340A\003\022\026\n\tdeletable\030\004" + + " \001(\010B\003\340A\003\022\023\n\006custom\030\005 \001(\010B\003\340A\003:m\352Aj\n-ana" + + "lyticsadmin.googleapis.com/ConversionEve" + + "nt\0229properties/{property}/conversionEven" + + "ts/{conversion_event}\"\240\002\n\025GoogleSignalsS" + + "ettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\005state\030\003 \001(" + + "\01622.google.analytics.admin.v1alpha.Googl" + + "eSignalsState\022J\n\007consent\030\004 \001(\01624.google." + + "analytics.admin.v1alpha.GoogleSignalsCon" + + "sentB\003\340A\003:e\352Ab\n3analyticsadmin.googleapi" + + "s.com/GoogleSignalsSettings\022+properties/" + + "{property}/googleSignalsSettings\"\262\003\n\017Cus" + + "tomDimension\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016param" + + "eter_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\022U\n\005" + + "scope\030\005 \001(\0162>.google.analytics.admin.v1a" + + "lpha.CustomDimension.DimensionScopeB\006\340A\002" + + "\340A\005\022)\n\034disallow_ads_personalization\030\006 \001(" + + "\010B\003\340A\001\"F\n\016DimensionScope\022\037\n\033DIMENSION_SC" + + "OPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002:m" + + "\352Aj\n-analyticsadmin.googleapis.com/Custo" + + "mDimension\0229properties/{property}/custom" + + "Dimensions/{custom_dimension}\"\305\006\n\014Custom" + + "Metric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_n" + + "ame\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\020measur" + + "ement_unit\030\005 \001(\0162<.google.analytics.admi" + + "n.v1alpha.CustomMetric.MeasurementUnitB\003" + + "\340A\002\022O\n\005scope\030\006 \001(\01628.google.analytics.ad" + + "min.v1alpha.CustomMetric.MetricScopeB\006\340A" + + "\002\340A\005\022f\n\026restricted_metric_type\030\010 \003(\0162A.g" + + "oogle.analytics.admin.v1alpha.CustomMetr" + + "ic.RestrictedMetricTypeB\003\340A\001\"\267\001\n\017Measure" + + "mentUnit\022 \n\034MEASUREMENT_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\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022" + + "\020\n\014MILLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTE" + + "S\020\t\022\t\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_" + + "SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024Restri" + + "ctedMetricType\022&\n\"RESTRICTED_METRIC_TYPE" + + "_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE" + + "_DATA\020\002:d\352Aa\n*analyticsadmin.googleapis." + + "com/CustomMetric\0223properties/{property}/" + + "customMetrics/{custom_metric}\"\302\003\n\025DataRe" + + "tentionSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022e\n\024ev" + + "ent_data_retention\030\002 \001(\0162G.google.analyt" + + "ics.admin.v1alpha.DataRetentionSettings." + + "RetentionDuration\022\'\n\037reset_user_data_on_" + + "new_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration" + + "\022\"\n\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" + + "TWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWE" + + "NTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020" + + "\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin" + + ".googleapis.com/DataRetentionSettings\022+p" + + "roperties/{property}/dataRetentionSettin" + + "gs\"\244\n\n\023AttributionSettings\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\227\001\n,acquisition_conversion_event_l" + + "ookback_window\030\002 \001(\0162\\.google.analytics." + + "admin.v1alpha.AttributionSettings.Acquis" + + "itionConversionEventLookbackWindowB\003\340A\002\022" + + "\213\001\n&other_conversion_event_lookback_wind" + + "ow\030\003 \001(\0162V.google.analytics.admin.v1alph" + + "a.AttributionSettings.OtherConversionEve" + + "ntLookbackWindowB\003\340A\002\022w\n\033reporting_attri" + + "bution_model\030\004 \001(\0162M.google.analytics.ad" + + "min.v1alpha.AttributionSettings.Reportin" + + "gAttributionModelB\003\340A\002\"\333\001\n(AcquisitionCo" + + "nversionEventLookbackWindow\022<\n8ACQUISITI" + + "ON_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSP" + + "ECIFIED\020\000\0227\n3ACQUISITION_CONVERSION_EVEN" + + "T_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n4ACQUISITIO" + + "N_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DA" + + "YS\020\002\"\370\001\n\"OtherConversionEventLookbackWin" + + "dow\0226\n2OTHER_CONVERSION_EVENT_LOOKBACK_W" + + "INDOW_UNSPECIFIED\020\000\0222\n.OTHER_CONVERSION_" + + "EVENT_LOOKBACK_WINDOW_30_DAYS\020\001\0222\n.OTHER" + + "_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAY" + + "S\020\002\0222\n.OTHER_CONVERSION_EVENT_LOOKBACK_W" + + "INDOW_90_DAYS\020\003\"\234\002\n\031ReportingAttribution" + + "Model\022+\n\'REPORTING_ATTRIBUTION_MODEL_UNS" + + "PECIFIED\020\000\022\035\n\031CROSS_CHANNEL_DATA_DRIVEN\020" + + "\001\022\034\n\030CROSS_CHANNEL_LAST_CLICK\020\002\022\035\n\031CROSS" + + "_CHANNEL_FIRST_CLICK\020\003\022\030\n\024CROSS_CHANNEL_" + + "LINEAR\020\004\022 \n\034CROSS_CHANNEL_POSITION_BASED" + + "\020\005\022\034\n\030CROSS_CHANNEL_TIME_DECAY\020\006\022\034\n\030ADS_" + + "PREFERRED_LAST_CLICK\020\007:a\352A^\n1analyticsad" + + "min.googleapis.com/AttributionSettings\022)" + + "properties/{property}/attributionSetting" + + "s*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CATEG" + + "ORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUS" + + "INESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANC" + + "E\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006T" + + "RAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAIN" + + "MENT\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\005" + + "GAMES\020\014\022\027\n\023HOBBIES_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_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONL" + + "INE_COMMUNITIES\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_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f" + + "\n\014ServiceLevel\022\035\n\031SERVICE_LEVEL_UNSPECIF" + + "IED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024" + + "GOOGLE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026A" + + "CTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYS" + + "TEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTI" + + "ON_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UP" + + "DATED\020\002\022\013\n\007DELETED\020\003*\301\003\n\031ChangeHistoryRe" + + "sourceType\022,\n(CHANGE_HISTORY_RESOURCE_TY" + + "PE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERT" + + "Y\020\002\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LIN" + + "K\020\007\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONV" + + "ERSION_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_S" + + "ECRET\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM_" + + "METRIC\020\014\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%\n" + + "!DISPLAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n*" + + "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOS" + + "AL\020\017\022\027\n\023SEARCH_ADS_360_LINK\020\020\022\017\n\013DATA_ST" + + "REAM\020\022\022\030\n\024ATTRIBUTION_SETTINGS\020\024*s\n\022Goog" + + "leSignalsState\022$\n GOOGLE_SIGNALS_STATE_U" + + "NSPECIFIED\020\000\022\032\n\026GOOGLE_SIGNALS_ENABLED\020\001" + + "\022\033\n\027GOOGLE_SIGNALS_DISABLED\020\002*\216\001\n\024Google" + + "SignalsConsent\022&\n\"GOOGLE_SIGNALS_CONSENT" + + "_UNSPECIFIED\020\000\022$\n GOOGLE_SIGNALS_CONSENT" + + "_CONSENTED\020\002\022(\n$GOOGLE_SIGNALS_CONSENT_N" + + "OT_CONSENTED\020\001*{\n\035LinkProposalInitiating" + + "Product\0220\n,LINK_PROPOSAL_INITIATING_PROD" + + "UCT_UNSPECIFIED\020\000\022\024\n\020GOOGLE_ANALYTICS\020\001\022" + + "\022\n\016LINKED_PRODUCT\020\002*\304\001\n\021LinkProposalStat" + + "e\022#\n\037LINK_PROPOSAL_STATE_UNSPECIFIED\020\000\022)" + + "\n%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\020" + + "\001\022\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT" + + "\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010DECLINED\020\004\022\013\n\007EXPIR" + + "ED\020\005\022\014\n\010OBSOLETE\020\006*\202\001\n\014PropertyType\022\035\n\031P" + + "ROPERTY_TYPE_UNSPECIFIED\020\000\022\032\n\026PROPERTY_T" + + "YPE_ORDINARY\020\001\022\035\n\031PROPERTY_TYPE_SUBPROPE" + + "RTY\020\002\022\030\n\024PROPERTY_TYPE_ROLLUP\020\003B{\n\"com.g" + + "oogle.analytics.admin.v1alphaB\016Resources" + + "ProtoP\001ZCgoogle.golang.org/genproto/goog" + + "leapis/analytics/admin/v1alpha;adminb\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -455,6 +503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_analytics_admin_v1alpha_Property_descriptor, new java.lang.String[] { "Name", + "PropertyType", "CreateTime", "UpdateTime", "Parent", @@ -586,7 +635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, new java.lang.String[] { - "Property", "DisplayName", + "Property", "DisplayName", "PropertyType", "Parent", }); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageTypes().get(11); @@ -633,6 +682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetric", "DataRetentionSettings", "DataStream", + "AttributionSettings", "Resource", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = @@ -722,6 +772,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "EventDataRetention", "ResetUserDataOnNewActivity", }); + internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor, + new java.lang.String[] { + "Name", + "AcquisitionConversionEventLookbackWindow", + "OtherConversionEventLookbackWindow", + "ReportingAttributionModel", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java new file mode 100644 index 000000000000..4c496d80311f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java @@ -0,0 +1,1100 @@ +/* + * 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 UpdateAttributionSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} + */ +public final class UpdateAttributionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + UpdateAttributionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAttributionSettingsRequest.newBuilder() to construct. + private UpdateAttributionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAttributionSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAttributionSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateAttributionSettingsRequest( + 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.AttributionSettings.Builder subBuilder = null; + if (attributionSettings_ != null) { + subBuilder = attributionSettings_.toBuilder(); + } + attributionSettings_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AttributionSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attributionSettings_); + attributionSettings_ = 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_UpdateAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.Builder.class); + } + + public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AttributionSettings attributionSettings_; + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attributionSettings field is set. + */ + @java.lang.Override + public boolean hasAttributionSettings() { + return attributionSettings_ != null; + } + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attributionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + return getAttributionSettings(); + } + + 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 (attributionSettings_ != null) { + output.writeMessage(1, getAttributionSettings()); + } + 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 (attributionSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttributionSettings()); + } + 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.UpdateAttributionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) obj; + + if (hasAttributionSettings() != other.hasAttributionSettings()) return false; + if (hasAttributionSettings()) { + if (!getAttributionSettings().equals(other.getAttributionSettings())) 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 (hasAttributionSettings()) { + hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAttributionSettings().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.UpdateAttributionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest 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.UpdateAttributionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest 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.UpdateAttributionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest 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.UpdateAttributionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest 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.UpdateAttributionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + 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.UpdateAttributionSettingsRequest 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.UpdateAttributionSettingsRequest 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.UpdateAttributionSettingsRequest 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 UpdateAttributionSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.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 (attributionSettingsBuilder_ == null) { + attributionSettings_ = null; + } else { + attributionSettings_ = null; + attributionSettingsBuilder_ = 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_UpdateAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(this); + if (attributionSettingsBuilder_ == null) { + result.attributionSettings_ = attributionSettings_; + } else { + result.attributionSettings_ = attributionSettingsBuilder_.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.UpdateAttributionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasAttributionSettings()) { + mergeAttributionSettings(other.getAttributionSettings()); + } + 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.UpdateAttributionSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.AttributionSettings attributionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + attributionSettingsBuilder_; + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attributionSettings field is set. + */ + public boolean hasAttributionSettings() { + return attributionSettingsBuilder_ != null || attributionSettings_ != null; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attributionSettings. + */ + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } else { + return attributionSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributionSettings_ = value; + onChanged(); + } else { + attributionSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings.Builder builderForValue) { + if (attributionSettingsBuilder_ == null) { + attributionSettings_ = builderForValue.build(); + onChanged(); + } else { + attributionSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (attributionSettings_ != null) { + attributionSettings_ = + com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder( + attributionSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + attributionSettings_ = value; + } + onChanged(); + } else { + attributionSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + attributionSettings_ = null; + onChanged(); + } else { + attributionSettings_ = null; + attributionSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AttributionSettings.Builder + getAttributionSettingsBuilder() { + + onChanged(); + return getAttributionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + if (attributionSettingsBuilder_ != null) { + return attributionSettingsBuilder_.getMessageOrBuilder(); + } else { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + getAttributionSettingsFieldBuilder() { + if (attributionSettingsBuilder_ == null) { + attributionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder>( + getAttributionSettings(), getParentForChildren(), isClean()); + attributionSettings_ = null; + } + return attributionSettingsBuilder_; + } + + 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.UpdateAttributionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttributionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAttributionSettingsRequest(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.UpdateAttributionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..4b53fba0f13f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * 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 UpdateAttributionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attributionSettings field is set. + */ + boolean hasAttributionSettings(); + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attributionSettings. + */ + com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(); + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder(); + + /** + * + * + *
+   * 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java new file mode 100644 index 000000000000..f469ab7f754d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java @@ -0,0 +1,1081 @@ +/* + * 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 UpdateAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAudienceRequest} + */ +public final class UpdateAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAudienceRequest) + UpdateAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAudienceRequest.newBuilder() to construct. + private UpdateAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAudienceRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAudienceRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateAudienceRequest( + 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.Audience.Builder subBuilder = null; + if (audience_ != null) { + subBuilder = audience_.toBuilder(); + } + audience_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Audience.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audience_); + audience_ = 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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_UpdateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.Builder.class); + } + + public static final int AUDIENCE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Audience audience_; + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + @java.lang.Override + public boolean hasAudience() { + return audience_ != null; + } + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudience() { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + return getAudience(); + } + + 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 (audience_ != null) { + output.writeMessage(1, getAudience()); + } + 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 (audience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAudience()); + } + 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.UpdateAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAudienceRequest other = + (com.google.analytics.admin.v1alpha.UpdateAudienceRequest) obj; + + if (hasAudience() != other.hasAudience()) return false; + if (hasAudience()) { + if (!getAudience().equals(other.getAudience())) 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 (hasAudience()) { + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().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.UpdateAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest 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.UpdateAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest 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.UpdateAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest 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.UpdateAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest 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.UpdateAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest 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.UpdateAudienceRequest 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.UpdateAudienceRequest 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.UpdateAudienceRequest 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 UpdateAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAudienceRequest) + com.google.analytics.admin.v1alpha.UpdateAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateAudienceRequest.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 (audienceBuilder_ == null) { + audience_ = null; + } else { + audience_ = null; + audienceBuilder_ = 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_UpdateAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest build() { + com.google.analytics.admin.v1alpha.UpdateAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAudienceRequest result = + new com.google.analytics.admin.v1alpha.UpdateAudienceRequest(this); + if (audienceBuilder_ == null) { + result.audience_ = audience_; + } else { + result.audience_ = audienceBuilder_.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.UpdateAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance()) + return this; + if (other.hasAudience()) { + mergeAudience(other.getAudience()); + } + 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.UpdateAudienceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateAudienceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.Audience audience_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audienceBuilder_; + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + public boolean hasAudience() { + return audienceBuilder_ != null || audience_ != null; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + public com.google.analytics.admin.v1alpha.Audience getAudience() { + if (audienceBuilder_ == null) { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } else { + return audienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + audience_ = value; + onChanged(); + } else { + audienceBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audienceBuilder_ == null) { + audience_ = builderForValue.build(); + onChanged(); + } else { + audienceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (audience_ != null) { + audience_ = + com.google.analytics.admin.v1alpha.Audience.newBuilder(audience_) + .mergeFrom(value) + .buildPartial(); + } else { + audience_ = value; + } + onChanged(); + } else { + audienceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAudience() { + if (audienceBuilder_ == null) { + audience_ = null; + onChanged(); + } else { + audience_ = null; + audienceBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { + + onChanged(); + return getAudienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + if (audienceBuilder_ != null) { + return audienceBuilder_.getMessageOrBuilder(); + } else { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudienceFieldBuilder() { + if (audienceBuilder_ == null) { + audienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + getAudience(), getParentForChildren(), isClean()); + audience_ = null; + } + return audienceBuilder_; + } + + 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.UpdateAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAudienceRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateAudienceRequest(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.UpdateAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..cdc0cd6b2965 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * 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 UpdateAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + boolean hasAudience(); + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + com.google.analytics.admin.v1alpha.Audience getAudience(); + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); + + /** + * + * + *
+   * 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 00fe85460f6f..b6e5cb4a6eea 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.analytics.admin.v1alpha; +import "google/analytics/admin/v1alpha/audience.proto"; import "google/analytics/admin/v1alpha/resources.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; @@ -729,6 +730,67 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Lookup for a single Audience. + // Audiences created before 2020 may not be supported. + rpc GetAudience(GetAudienceRequest) returns (Audience) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/audiences/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Audiences on a property. + // Audiences created before 2020 may not be supported. + rpc ListAudiences(ListAudiencesRequest) returns (ListAudiencesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/audiences" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates an Audience. + rpc CreateAudience(CreateAudienceRequest) returns (Audience) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/audiences" + body: "audience" + }; + option (google.api.method_signature) = "parent,audience"; + } + + // Updates an Audience on a property. + rpc UpdateAudience(UpdateAudienceRequest) returns (Audience) { + option (google.api.http) = { + patch: "/v1alpha/{audience.name=properties/*/audiences/*}" + body: "audience" + }; + option (google.api.method_signature) = "audience,update_mask"; + } + + // Archives an Audience on a property. + rpc ArchiveAudience(ArchiveAudienceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/audiences/*}:archive" + body: "*" + }; + } + + // Lookup for a AttributionSettings singleton. + rpc GetAttributionSettings(GetAttributionSettingsRequest) returns (AttributionSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/attributionSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates attribution settings on a property. + rpc UpdateAttributionSettings(UpdateAttributionSettingsRequest) returns (AttributionSettings) { + option (google.api.http) = { + patch: "/v1alpha/{attribution_settings.name=properties/*/attributionSettings}" + body: "attribution_settings" + }; + option (google.api.method_signature) = "attribution_settings,update_mask"; + } } // Request message for GetAccount RPC. @@ -2039,3 +2101,109 @@ message GetDataStreamRequest { } ]; } + +// Request message for GetAudience RPC. +message GetAudienceRequest { + // Required. The name of the Audience to get. + // Example format: properties/1234/audiences/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Audience" + } + ]; +} + +// Request message for ListAudiences RPC. +message ListAudiencesRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/Audience" + } + ]; + + // 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 `ListAudiences` call. Provide this + // to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListAudiences` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListAudiences RPC. +message ListAudiencesResponse { + // List of Audiences. + repeated Audience audiences = 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 CreateAudience RPC. +message CreateAudienceRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/Audience" + } + ]; + + // Required. The audience to create. + Audience audience = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateAudience RPC. +message UpdateAudienceRequest { + // Required. The audience to update. + // The audience's `name` field is used to identify the audience to be updated. + Audience audience = 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 ArchiveAudience RPC. +message ArchiveAudienceRequest { + // Required. Example format: properties/1234/audiences/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/Audience" + } + ]; +} + +// Request message for GetAttributionSettings RPC. +message GetAttributionSettingsRequest { + // Required. The name of the attribution settings to retrieve. + // Format: properties/{property}/attributionSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AttributionSettings" + } + ]; +} + +// Request message for UpdateAttributionSettings RPC +message UpdateAttributionSettingsRequest { + // Required. The attribution settings to update. + // The `name` field is used to identify the settings to be updated. + AttributionSettings attribution_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]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto new file mode 100644 index 000000000000..e12943e1c9d1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto @@ -0,0 +1,419 @@ +// Copyright 2022 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 +// +// http://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. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "AudienceProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// Specifies how to evaluate users for joining an Audience. +enum AudienceFilterScope { + // Scope is not specified. + AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + + // User joins the Audience if the filter condition is met within one + // event. + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + + // User joins the Audience if the filter condition is met within one + // session. + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + + // User joins the Audience if the filter condition is met by any event + // across any session. + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; +} + +// A specific filter for a single dimension or metric. +message AudienceDimensionOrMetricFilter { + // A filter for a string-type dimension that matches a particular pattern. + message StringFilter { + // The match type for the string filter. + enum MatchType { + // Unspecified + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Begins with the string value. + BEGINS_WITH = 2; + + // Ends with the string value. + ENDS_WITH = 3; + + // Contains the string value. + CONTAINS = 4; + + // Full regular expression matches with the string value. + FULL_REGEXP = 5; + + // Partial regular expression matches with the string value. + PARTIAL_REGEXP = 6; + } + + // Required. The match type for the string filter. + MatchType match_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The string value to be matched against. + string value = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the match is case-sensitive. If false, the match is + // case-insensitive. + bool case_sensitive = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // A filter for a string dimension that matches a particular list of options. + message InListFilter { + // Required. The list of possible string values to match against. Must be non-empty. + repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the match is case-sensitive. If false, the match is + // case-insensitive. + bool case_sensitive = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // To represent a number. + message NumericValue { + // One of a numeric value. + oneof one_value { + // Integer value. + int64 int64_value = 1; + + // Double value. + double double_value = 2; + } + } + + // A filter for numeric or date values on a dimension or metric. + message NumericFilter { + // The operation applied to a numeric filter. + enum Operation { + // Unspecified. + OPERATION_UNSPECIFIED = 0; + + // Equal. + EQUAL = 1; + + // Less than. + LESS_THAN = 2; + + // Less than or equal. + LESS_THAN_OR_EQUAL = 3; + + // Greater than. + GREATER_THAN = 4; + + // Greater than or equal. + GREATER_THAN_OR_EQUAL = 5; + } + + // Required. The operation applied to a numeric filter. + Operation operation = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The numeric or date value to match against. + NumericValue value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // A filter for numeric or date values between certain values on a dimension + // or metric. + message BetweenFilter { + // Required. Begins with this number, inclusive. + NumericValue from_value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Ends with this number, inclusive. + NumericValue to_value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // One of the above filters. + oneof one_filter { + // A filter for a string-type dimension that matches a particular pattern. + StringFilter string_filter = 2; + + // A filter for a string dimension that matches a particular list of + // options. + InListFilter in_list_filter = 3; + + // A filter for numeric or date values on a dimension or metric. + NumericFilter numeric_filter = 4; + + // A filter for numeric or date values between certain values on a dimension + // or metric. + BetweenFilter between_filter = 5; + } + + // Required. Immutable. The dimension name or metric name to filter. + string field_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Indicates whether this filter needs dynamic evaluation or not. If set to + // true, users join the Audience if they ever met the condition (static + // evaluation). If unset or set to false, user evaluation for an Audience is + // dynamic; users are added to an Audience when they meet the conditions and + // then removed when they no longer meet them. + // + // This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + bool at_any_point_in_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, specifies the time window for which to evaluate data in number of + // days. If not set, then audience data is evaluated against lifetime data + // (i.e., infinite time window). + // + // For example, if set to 1 day, only the current day's data is evaluated. The + // reference point is the current day when at_any_point_in_time is unset or + // false. + // + // It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + // greater than 60 days. + int32 in_any_n_day_period = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// A filter that matches events of a single event name. If an event parameter +// is specified, only the subset of events that match both the single event name +// and the parameter filter expressions match this event filter. +message AudienceEventFilter { + // Required. Immutable. The name of the event to match against. + string event_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If specified, this filter matches events that match both the single + // event name and the parameter filter expressions. AudienceEventFilter + // inside the parameter filter expression cannot be set (i.e., nested + // event filters are not supported). This should be a single and_group of + // dimension_or_metric_filter or not_expression; ANDs of ORs are not + // supported. Also, if it includes a filter for "eventCount", only that one + // will be considered; all the other filters will be ignored. + AudienceFilterExpression event_parameter_filter_expression = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// A logical expression of Audience dimension, metric, or event filters. +message AudienceFilterExpression { + // The expression applied to a filter. + oneof expr { + // A list of expressions to be AND’ed together. It can only contain + // AudienceFilterExpressions with or_group. This must be set for the top + // level AudienceFilterExpression. + AudienceFilterExpressionList and_group = 1; + + // A list of expressions to OR’ed together. It cannot contain + // AudienceFilterExpressions with and_group or or_group. + AudienceFilterExpressionList or_group = 2; + + // A filter expression to be NOT'ed (i.e., inverted, complemented). It + // can only include a dimension_or_metric_filter. This cannot be set on the + // top level AudienceFilterExpression. + AudienceFilterExpression not_expression = 3; + + // A filter on a single dimension or metric. This cannot be set on the top + // level AudienceFilterExpression. + AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + + // Creates a filter that matches a specific event. This cannot be set on the + // top level AudienceFilterExpression. + AudienceEventFilter event_filter = 5; + } +} + +// A list of Audience filter expressions. +message AudienceFilterExpressionList { + // A list of Audience filter expressions. + repeated AudienceFilterExpression filter_expressions = 1; +} + +// Defines a simple filter that a user must satisfy to be a member of the +// Audience. +message AudienceSimpleFilter { + // Required. Immutable. Specifies the scope for this filter. + AudienceFilterScope scope = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. A logical expression of Audience dimension, metric, or event filters. + AudienceFilterExpression filter_expression = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// Defines filters that must occur in a specific order for the user to be a +// member of the Audience. +message AudienceSequenceFilter { + // A condition that must occur in the specified step order for this user + // to match the sequence. + message AudienceSequenceStep { + // Required. Immutable. Specifies the scope for this step. + AudienceFilterScope scope = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If true, the event satisfying this step must be the very next event + // after the event satisfying the last step. If unset or false, this + // step indirectly follows the prior step; for example, there may be + // events between the prior step and this step. It is ignored for the + // first step. + bool immediately_follows = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set, this step must be satisfied within the constraint_duration of + // the previous step (i.e., t[i] - t[i-1] <= constraint_duration). If not + // set, there is no duration requirement (the duration is effectively + // unlimited). It is ignored for the first step. + google.protobuf.Duration constraint_duration = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. A logical expression of Audience dimension, metric, or event filters in + // each step. + AudienceFilterExpression filter_expression = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + } + + // Required. Immutable. Specifies the scope for this filter. + AudienceFilterScope scope = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Defines the time period in which the whole sequence must occur. + google.protobuf.Duration sequence_maximum_duration = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. An ordered sequence of steps. A user must complete each step in order to + // join the sequence filter. + repeated AudienceSequenceStep sequence_steps = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// A clause for defining either a simple or sequence filter. A filter can be +// inclusive (i.e., users satisfying the filter clause are included in the +// Audience) or exclusive (i.e., users satisfying the filter clause are +// excluded from the Audience). +message AudienceFilterClause { + // Specifies whether this is an include or exclude filter clause. + enum AudienceClauseType { + // Unspecified clause type. + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + + // Users will be included in the Audience if the filter clause is met. + INCLUDE = 1; + + // Users will be excluded from the Audience if the filter clause is met. + EXCLUDE = 2; + } + + oneof filter { + // A simple filter that a user must satisfy to be a member of the Audience. + AudienceSimpleFilter simple_filter = 2; + + // Filters that must occur in a specific order for the user to be a member + // of the Audience. + AudienceSequenceFilter sequence_filter = 3; + } + + // Required. Specifies whether this is an include or exclude filter clause. + AudienceClauseType clause_type = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Specifies an event to log when a user joins the Audience. +message AudienceEventTrigger { + // Determines when to log the event. + enum LogCondition { + // Log condition is not specified. + LOG_CONDITION_UNSPECIFIED = 0; + + // The event should be logged only when a user is joined. + AUDIENCE_JOINED = 1; + + // The event should be logged whenever the Audience condition is met, even + // if the user is already a member of the Audience. + AUDIENCE_MEMBERSHIP_RENEWED = 2; + } + + // Required. The event name that will be logged. + string event_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. When to log the event. + LogCondition log_condition = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A resource message representing a GA4 Audience. +message Audience { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/Audience" + pattern: "properties/{property}/audiences/{audience}" + }; + + // Specifies how long an exclusion lasts for users that meet the exclusion + // filter. + enum AudienceExclusionDurationMode { + // Not specified. + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + + // Exclude users from the Audience during periods when they meet the + // filter clause. + EXCLUDE_TEMPORARILY = 1; + + // Exclude users from the Audience if they've ever met the filter clause. + EXCLUDE_PERMANENTLY = 2; + } + + // Output only. The resource name for this Audience resource. + // Format: properties/{propertyId}/audiences/{audienceId} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the Audience. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The description of the Audience. + string description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. The duration a user should stay in an Audience. It cannot be set to more + // than 540 days. + int32 membership_duration_days = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. It is automatically set by GA to false if this is an NPA Audience and is + // excluded from ads personalization. + bool ads_personalization_enabled = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Specifies an event to log when a user joins the Audience. If not set, no + // event is logged when a user joins the Audience. + AudienceEventTrigger event_trigger = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. Specifies how long an exclusion lasts for users that meet the exclusion + // filter. It is applied to all EXCLUDE filter clauses and is ignored when + // there is no EXCLUDE filter clause in the Audience. + AudienceExclusionDurationMode exclusion_duration_mode = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Immutable. null Filter clauses that define the Audience. All clauses will be AND’ed + // together. + repeated AudienceFilterClause filter_clauses = 8 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = UNORDERED_LIST + ]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index d441d1074624..337c7fe65fb4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -194,8 +194,14 @@ enum ChangeHistoryResourceType { // DisplayVideo360AdvertiserLinkProposal resource DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + // SearchAds360Link resource + SEARCH_ADS_360_LINK = 16; + // DataStream resource DATA_STREAM = 18; + + // AttributionSettings resource + ATTRIBUTION_SETTINGS = 20; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -272,6 +278,21 @@ enum LinkProposalState { OBSOLETE = 6; } +// Types of Property resources. +enum PropertyType { + // Unknown or unspecified property type + PROPERTY_TYPE_UNSPECIFIED = 0; + + // Ordinary GA4 property + PROPERTY_TYPE_ORDINARY = 1; + + // GA4 subproperty + PROPERTY_TYPE_SUBPROPERTY = 2; + + // GA4 rollup property + PROPERTY_TYPE_ROLLUP = 3; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -313,6 +334,12 @@ message Property { // Example: "properties/1000" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. The property type for this Property resource. When creating a property, if + // the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be + // implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created + // via Google Analytics Admin API. + PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; + // Output only. Time when the entity was originally created. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -322,8 +349,8 @@ message Property { // Immutable. Resource name of this property's logical parent. // // Note: The Property-Moving UI can be used to change the parent. - // Format: accounts/{account} - // Example: "accounts/100" + // Format: accounts/{account}, properties/{property} + // Example: "accounts/100", "properties/101" string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; // Required. Human-readable display name for this property. @@ -682,6 +709,16 @@ message PropertySummary { // Display name for the property referred to in this property summary. string display_name = 2; + + // The property's property type. + PropertyType property_type = 3; + + // Resource name of this property's logical parent. + // + // Note: The Property-Moving UI can be used to change the parent. + // Format: accounts/{account}, properties/{property} + // Example: "accounts/100", "properties/200" + string parent = 4; } // A secret value used for sending hits to Measurement Protocol. @@ -694,7 +731,7 @@ message MeasurementProtocolSecret { // 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} + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Human-readable display name for this secret. @@ -780,6 +817,9 @@ message ChangeHistoryChange { // A snapshot of a DataStream resource in change history. DataStream data_stream = 18; + + // A snapshot of AttributionSettings resource in change history. + AttributionSettings attribution_settings = 20; } } @@ -1159,3 +1199,102 @@ message DataRetentionSettings { // event from that user. bool reset_user_data_on_new_activity = 3; } + +// The attribution settings used for a given property. This is a singleton +// resource. +message AttributionSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AttributionSettings" + pattern: "properties/{property}/attributionSettings" + }; + + // How far back in time events should be considered for inclusion in a + // converting path which leads to the first install of an app or the first + // visit to a site. + enum AcquisitionConversionEventLookbackWindow { + // Lookback window size unspecified. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + + // 7-day lookback window. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + + // 30-day lookback window. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + } + + // How far back in time events should be considered for inclusion in a + // converting path for all conversions other than first app install/first site + // visit. + enum OtherConversionEventLookbackWindow { + // Lookback window size unspecified. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + + // 30-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + + // 60-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + + // 90-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + } + + // The reporting attribution model used to calculate conversion credit in this + // property's reports. + enum ReportingAttributionModel { + // Reporting attribution model unspecified. + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + + // Data-driven attribution distributes credit for the conversion based on + // data for each conversion event. Each Data-driven model is specific to + // each advertiser and each conversion event. + CROSS_CHANNEL_DATA_DRIVEN = 1; + + // Ignores direct traffic and attributes 100% of the conversion value to the + // last channel that the customer clicked through (or engaged view through + // for YouTube) before converting. + CROSS_CHANNEL_LAST_CLICK = 2; + + // Gives all credit for the conversion to the first channel that a customer + // clicked (or engaged view through for YouTube) before converting. + CROSS_CHANNEL_FIRST_CLICK = 3; + + // Distributes the credit for the conversion equally across all the channels + // a customer clicked (or engaged view through for YouTube) before + // converting. + CROSS_CHANNEL_LINEAR = 4; + + // Attributes 40% credit to the first and last interaction, and the + // remaining 20% credit is distributed evenly to the middle interactions. + CROSS_CHANNEL_POSITION_BASED = 5; + + // Gives more credit to the touchpoints that happened closer in time to + // the conversion. + CROSS_CHANNEL_TIME_DECAY = 6; + + // Attributes 100% of the conversion value to the last Google Ads channel + // that the customer clicked through before converting. + ADS_PREFERRED_LAST_CLICK = 7; + } + + // Output only. Resource name of this attribution settings resource. + // Format: properties/{property_id}/attributionSettings + // Example: "properties/1000/attributionSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The lookback window configuration for acquisition conversion events. + // The default window size is 30 days. + AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The lookback window for all other, non-acquisition conversion events. + // The default window size is 90 days. + OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The reporting attribution model used to calculate conversion credit in this + // property's reports. + // + // Changing the attribution model will apply to both historical and future + // data. These changes will be reflected in reports with conversion and + // revenue data. User and session data will be unaffected. + ReportingAttributionModel reporting_attribution_model = 4 [(google.api.field_behavior) = REQUIRED]; +}