diff --git a/google-analytics-admin/clirr-ignored-differences.xml b/google-analytics-admin/clirr-ignored-differences.xml index d95251a5..7572b3e7 100644 --- a/google-analytics-admin/clirr-ignored-differences.xml +++ b/google-analytics-admin/clirr-ignored-differences.xml @@ -1,35 +1,21 @@ - + - 7006 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks(*) - com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient$ListFirebaseLinksPagedResponse - - - 7006 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings - com.google.api.gax.rpc.UnaryCallSettings listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings + 7002 + com/google/analytics/admin/v1alpha/*AnalyticsAdminService* + * create*(*) - 7006 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings$Builder - com.google.api.gax.rpc.UnaryCallSettings$Builder listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings$Builder - - - 7006 - com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings - com.google.api.gax.rpc.UnaryCallSettings listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings + 7002 + com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminService* + * create*(*) 7006 - com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings$Builder - com.google.api.gax.rpc.UnaryCallSettings$Builder listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings$Builder + com/google/analytics/admin/v1alpha/AnalyticsAdminService* + * deleteProperty(*) + com.google.analytics.admin.v1alpha.Property diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index d7208055..95c10d12 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -985,7 +985,7 @@ public final UnaryCallable createPropertyCallab * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName name = PropertyName.of("[PROPERTY]"); - * analyticsAdminServiceClient.deleteProperty(name); + * Property response = analyticsAdminServiceClient.deleteProperty(name); * } * } * @@ -993,10 +993,10 @@ public final UnaryCallable createPropertyCallab * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProperty(PropertyName name) { + public final Property deleteProperty(PropertyName name) { DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteProperty(request); + return deleteProperty(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1018,7 +1018,7 @@ public final void deleteProperty(PropertyName name) { * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String name = PropertyName.of("[PROPERTY]").toString(); - * analyticsAdminServiceClient.deleteProperty(name); + * Property response = analyticsAdminServiceClient.deleteProperty(name); * } * } * @@ -1026,9 +1026,9 @@ public final void deleteProperty(PropertyName name) { * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProperty(String name) { + public final Property deleteProperty(String name) { DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name).build(); - deleteProperty(request); + return deleteProperty(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1053,15 +1053,15 @@ public final void deleteProperty(String name) { * DeletePropertyRequest.newBuilder() * .setName(PropertyName.of("[PROPERTY]").toString()) * .build(); - * analyticsAdminServiceClient.deleteProperty(request); + * Property response = analyticsAdminServiceClient.deleteProperty(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 deleteProperty(DeletePropertyRequest request) { - deletePropertyCallable().call(request); + public final Property deleteProperty(DeletePropertyRequest request) { + return deletePropertyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1086,14 +1086,14 @@ public final void deleteProperty(DeletePropertyRequest request) { * DeletePropertyRequest.newBuilder() * .setName(PropertyName.of("[PROPERTY]").toString()) * .build(); - * ApiFuture future = + * ApiFuture future = * analyticsAdminServiceClient.deletePropertyCallable().futureCall(request); * // Do something. - * future.get(); + * Property response = future.get(); * } * } */ - public final UnaryCallable deletePropertyCallable() { + public final UnaryCallable deletePropertyCallable() { return stub.deletePropertyCallable(); } @@ -2922,143 +2922,6 @@ public final IosAppDataStream updateIosAppDataStream(UpdateIosAppDataStreamReque return stub.updateIosAppDataStreamCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
-   *   IosAppDataStream response =
-   *       analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param iosAppDataStream Required. The iOS app data stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream createIosAppDataStream( - PropertyName parent, IosAppDataStream iosAppDataStream) { - CreateIosAppDataStreamRequest request = - CreateIosAppDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setIosAppDataStream(iosAppDataStream) - .build(); - return createIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString();
-   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
-   *   IosAppDataStream response =
-   *       analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param iosAppDataStream Required. The iOS app data stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream createIosAppDataStream( - String parent, IosAppDataStream iosAppDataStream) { - CreateIosAppDataStreamRequest request = - CreateIosAppDataStreamRequest.newBuilder() - .setParent(parent) - .setIosAppDataStream(iosAppDataStream) - .build(); - return createIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateIosAppDataStreamRequest request =
-   *       CreateIosAppDataStreamRequest.newBuilder()
-   *           .setIosAppDataStream(IosAppDataStream.newBuilder().build())
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   IosAppDataStream response = analyticsAdminServiceClient.createIosAppDataStream(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 IosAppDataStream createIosAppDataStream(CreateIosAppDataStreamRequest request) { - return createIosAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateIosAppDataStreamRequest request =
-   *       CreateIosAppDataStreamRequest.newBuilder()
-   *           .setIosAppDataStream(IosAppDataStream.newBuilder().build())
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createIosAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   IosAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createIosAppDataStreamCallable() { - return stub.createIosAppDataStreamCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns child iOS app data streams under the specified parent property. @@ -3522,148 +3385,6 @@ public final AndroidAppDataStream updateAndroidAppDataStream( return stub.updateAndroidAppDataStreamCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param androidAppDataStream Required. The android app stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream createAndroidAppDataStream( - PropertyName parent, AndroidAppDataStream androidAppDataStream) { - CreateAndroidAppDataStreamRequest request = - CreateAndroidAppDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAndroidAppDataStream(androidAppDataStream) - .build(); - return createAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString();
-   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param androidAppDataStream Required. The android app stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream createAndroidAppDataStream( - String parent, AndroidAppDataStream androidAppDataStream) { - CreateAndroidAppDataStreamRequest request = - CreateAndroidAppDataStreamRequest.newBuilder() - .setParent(parent) - .setAndroidAppDataStream(androidAppDataStream) - .build(); - return createAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateAndroidAppDataStreamRequest request =
-   *       CreateAndroidAppDataStreamRequest.newBuilder()
-   *           .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build())
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.createAndroidAppDataStream(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 AndroidAppDataStream createAndroidAppDataStream( - CreateAndroidAppDataStreamRequest request) { - return createAndroidAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateAndroidAppDataStreamRequest request =
-   *       CreateAndroidAppDataStreamRequest.newBuilder()
-   *           .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build())
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createAndroidAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   AndroidAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createAndroidAppDataStreamCallable() { - return stub.createAndroidAppDataStreamCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns child android app streams under the specified parent property. @@ -5119,6 +4840,120 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe return stub.getDataSharingSettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ChangeHistoryEvent element :
+   *       analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request) { + return searchChangeHistoryEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable() { + return stub.searchChangeHistoryEventsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchChangeHistoryEventsResponse response =
+   *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
+   *     for (ChangeHistoryEvent element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchChangeHistoryEventsCallable() { + return stub.searchChangeHistoryEventsCallable(); + } + @Override public final void close() { stub.close(); @@ -6006,4 +5841,106 @@ protected ListGoogleAdsLinksFixedSizeCollection createCollection( return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize); } } + + public static class SearchChangeHistoryEventsPagedResponse + extends AbstractPagedListResponse< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent, + SearchChangeHistoryEventsPage, + SearchChangeHistoryEventsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchChangeHistoryEventsPagedResponse apply( + SearchChangeHistoryEventsPage input) { + return new SearchChangeHistoryEventsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchChangeHistoryEventsPagedResponse(SearchChangeHistoryEventsPage page) { + super(page, SearchChangeHistoryEventsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchChangeHistoryEventsPage + extends AbstractPage< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent, + SearchChangeHistoryEventsPage> { + + private SearchChangeHistoryEventsPage( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + SearchChangeHistoryEventsResponse response) { + super(context, response); + } + + private static SearchChangeHistoryEventsPage createEmptyPage() { + return new SearchChangeHistoryEventsPage(null, null); + } + + @Override + protected SearchChangeHistoryEventsPage createPage( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + SearchChangeHistoryEventsResponse response) { + return new SearchChangeHistoryEventsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchChangeHistoryEventsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent, + SearchChangeHistoryEventsPage, + SearchChangeHistoryEventsFixedSizeCollection> { + + private SearchChangeHistoryEventsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollection() { + return new SearchChangeHistoryEventsFixedSizeCollection(null, 0); + } + + @Override + protected SearchChangeHistoryEventsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index 76363c43..338d76cb 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; import com.google.api.core.ApiFunction; @@ -136,7 +137,7 @@ public UnaryCallSettings createPropertySettings } /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { + public UnaryCallSettings deletePropertySettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings(); } @@ -247,12 +248,6 @@ public UnaryCallSettings deleteIosAppDataS return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateIosAppDataStreamSettings(); } - /** Returns the object with the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings - createIosAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createIosAppDataStreamSettings(); - } - /** Returns the object with the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings< ListIosAppDataStreamsRequest, @@ -283,13 +278,6 @@ public UnaryCallSettings deleteIosAppDataS .updateAndroidAppDataStreamSettings(); } - /** Returns the object with the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings - createAndroidAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createAndroidAppDataStreamSettings(); - } - /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings< ListAndroidAppDataStreamsRequest, @@ -371,6 +359,16 @@ public UnaryCallSettings deleteGoogleAdsLinkS return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .searchChangeHistoryEventsSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -525,7 +523,7 @@ public UnaryCallSettings.Builder createProperty } /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { + public UnaryCallSettings.Builder deletePropertySettings() { return getStubSettingsBuilder().deletePropertySettings(); } @@ -641,12 +639,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().updateIosAppDataStreamSettings(); } - /** Returns the builder for the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings.Builder - createIosAppDataStreamSettings() { - return getStubSettingsBuilder().createIosAppDataStreamSettings(); - } - /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings.Builder< ListIosAppDataStreamsRequest, @@ -674,12 +666,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().updateAndroidAppDataStreamSettings(); } - /** Returns the builder for the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings.Builder - createAndroidAppDataStreamSettings() { - return getStubSettingsBuilder().createAndroidAppDataStreamSettings(); - } - /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings.Builder< ListAndroidAppDataStreamsRequest, @@ -765,6 +751,15 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().getDataSharingSettingsSettings(); } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 3f067ac4..88ed5eb4 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -25,18 +25,12 @@ "BatchUpdateUserLinks": { "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] }, - "CreateAndroidAppDataStream": { - "methods": ["createAndroidAppDataStream", "createAndroidAppDataStream", "createAndroidAppDataStream", "createAndroidAppDataStreamCallable"] - }, "CreateFirebaseLink": { "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] }, "CreateGoogleAdsLink": { "methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"] }, - "CreateIosAppDataStream": { - "methods": ["createIosAppDataStream", "createIosAppDataStream", "createIosAppDataStream", "createIosAppDataStreamCallable"] - }, "CreateProperty": { "methods": ["createProperty", "createProperty", "createPropertyCallable"] }, @@ -127,6 +121,9 @@ "ProvisionAccountTicket": { "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] }, + "SearchChangeHistoryEvents": { + "methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"] + }, "UpdateAccount": { "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] }, diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 56884cc3..6cbc9925 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; @@ -38,10 +39,8 @@ import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; @@ -89,6 +88,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +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.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; @@ -168,7 +169,7 @@ public UnaryCallable createPropertyCallable() { throw new UnsupportedOperationException("Not implemented: createPropertyCallable()"); } - public UnaryCallable deletePropertyCallable() { + public UnaryCallable deletePropertyCallable() { throw new UnsupportedOperationException("Not implemented: deletePropertyCallable()"); } @@ -268,11 +269,6 @@ public UnaryCallable deleteIosAppDataStrea throw new UnsupportedOperationException("Not implemented: updateIosAppDataStreamCallable()"); } - public UnaryCallable - createIosAppDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: createIosAppDataStreamCallable()"); - } - public UnaryCallable listIosAppDataStreamsPagedCallable() { throw new UnsupportedOperationException( @@ -301,12 +297,6 @@ public UnaryCallable deleteIosAppDataStrea "Not implemented: updateAndroidAppDataStreamCallable()"); } - public UnaryCallable - createAndroidAppDataStreamCallable() { - throw new UnsupportedOperationException( - "Not implemented: createAndroidAppDataStreamCallable()"); - } - public UnaryCallable listAndroidAppDataStreamsPagedCallable() { throw new UnsupportedOperationException( @@ -383,6 +373,17 @@ public UnaryCallable deleteGoogleAdsLinkCalla throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()"); } + public UnaryCallable + searchChangeHistoryEventsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchChangeHistoryEventsPagedCallable()"); + } + + public UnaryCallable + searchChangeHistoryEventsCallable() { + throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 16fa8920..9b332f58 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AccountSummary; @@ -40,10 +41,9 @@ import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; @@ -91,6 +91,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +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.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; @@ -199,7 +201,7 @@ public class AnalyticsAdminServiceStubSettings ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> listPropertiesSettings; private final UnaryCallSettings createPropertySettings; - private final UnaryCallSettings deletePropertySettings; + private final UnaryCallSettings deletePropertySettings; private final UnaryCallSettings updatePropertySettings; private final UnaryCallSettings getUserLinkSettings; private final UnaryCallSettings @@ -233,8 +235,6 @@ public class AnalyticsAdminServiceStubSettings deleteIosAppDataStreamSettings; private final UnaryCallSettings updateIosAppDataStreamSettings; - private final UnaryCallSettings - createIosAppDataStreamSettings; private final PagedCallSettings< ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, @@ -246,8 +246,6 @@ public class AnalyticsAdminServiceStubSettings deleteAndroidAppDataStreamSettings; private final UnaryCallSettings updateAndroidAppDataStreamSettings; - private final UnaryCallSettings - createAndroidAppDataStreamSettings; private final PagedCallSettings< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse, @@ -278,6 +276,11 @@ public class AnalyticsAdminServiceStubSettings listGoogleAdsLinksSettings; private final UnaryCallSettings getDataSharingSettingsSettings; + private final PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -674,6 +677,53 @@ public Iterable extractResources(ListGoogleAdsLinksResponse paylo } }; + private static final PagedListDescriptor< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> + SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchChangeHistoryEventsRequest injectToken( + SearchChangeHistoryEventsRequest payload, String token) { + return SearchChangeHistoryEventsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchChangeHistoryEventsRequest injectPageSize( + SearchChangeHistoryEventsRequest payload, int pageSize) { + return SearchChangeHistoryEventsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchChangeHistoryEventsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchChangeHistoryEventsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchChangeHistoryEventsResponse payload) { + return payload.getChangeHistoryEventsList() == null + ? ImmutableList.of() + : payload.getChangeHistoryEventsList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -882,6 +932,34 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchChangeHistoryEventsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + pageContext = + PageContext.create( + callable, SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC, request, context); + return SearchChangeHistoryEventsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -936,7 +1014,7 @@ public UnaryCallSettings createPropertySettings } /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { + public UnaryCallSettings deletePropertySettings() { return deletePropertySettings; } @@ -1047,12 +1125,6 @@ public UnaryCallSettings deleteIosAppDataS return updateIosAppDataStreamSettings; } - /** Returns the object with the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings - createIosAppDataStreamSettings() { - return createIosAppDataStreamSettings; - } - /** Returns the object with the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings< ListIosAppDataStreamsRequest, @@ -1080,12 +1152,6 @@ public UnaryCallSettings deleteIosAppDataS return updateAndroidAppDataStreamSettings; } - /** Returns the object with the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings - createAndroidAppDataStreamSettings() { - return createAndroidAppDataStreamSettings; - } - /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings< ListAndroidAppDataStreamsRequest, @@ -1164,6 +1230,15 @@ public UnaryCallSettings deleteGoogleAdsLinkS return getDataSharingSettingsSettings; } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return searchChangeHistoryEventsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -1262,15 +1337,12 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getIosAppDataStreamSettings = settingsBuilder.getIosAppDataStreamSettings().build(); deleteIosAppDataStreamSettings = settingsBuilder.deleteIosAppDataStreamSettings().build(); updateIosAppDataStreamSettings = settingsBuilder.updateIosAppDataStreamSettings().build(); - createIosAppDataStreamSettings = settingsBuilder.createIosAppDataStreamSettings().build(); listIosAppDataStreamsSettings = settingsBuilder.listIosAppDataStreamsSettings().build(); getAndroidAppDataStreamSettings = settingsBuilder.getAndroidAppDataStreamSettings().build(); deleteAndroidAppDataStreamSettings = settingsBuilder.deleteAndroidAppDataStreamSettings().build(); updateAndroidAppDataStreamSettings = settingsBuilder.updateAndroidAppDataStreamSettings().build(); - createAndroidAppDataStreamSettings = - settingsBuilder.createAndroidAppDataStreamSettings().build(); listAndroidAppDataStreamsSettings = settingsBuilder.listAndroidAppDataStreamsSettings().build(); getEnhancedMeasurementSettingsSettings = settingsBuilder.getEnhancedMeasurementSettingsSettings().build(); @@ -1286,6 +1358,7 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx deleteGoogleAdsLinkSettings = settingsBuilder.deleteGoogleAdsLinkSettings().build(); listGoogleAdsLinksSettings = settingsBuilder.listGoogleAdsLinksSettings().build(); getDataSharingSettingsSettings = settingsBuilder.getDataSharingSettingsSettings().build(); + searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -1311,7 +1384,7 @@ public static class Builder ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> listPropertiesSettings; private final UnaryCallSettings.Builder createPropertySettings; - private final UnaryCallSettings.Builder deletePropertySettings; + private final UnaryCallSettings.Builder deletePropertySettings; private final UnaryCallSettings.Builder updatePropertySettings; private final UnaryCallSettings.Builder getUserLinkSettings; private final UnaryCallSettings.Builder @@ -1350,8 +1423,6 @@ public static class Builder deleteIosAppDataStreamSettings; private final UnaryCallSettings.Builder updateIosAppDataStreamSettings; - private final UnaryCallSettings.Builder - createIosAppDataStreamSettings; private final PagedCallSettings.Builder< ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, @@ -1363,8 +1434,6 @@ public static class Builder deleteAndroidAppDataStreamSettings; private final UnaryCallSettings.Builder updateAndroidAppDataStreamSettings; - private final UnaryCallSettings.Builder - createAndroidAppDataStreamSettings; private final PagedCallSettings.Builder< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse, @@ -1398,6 +1467,11 @@ public static class Builder listGoogleAdsLinksSettings; private final UnaryCallSettings.Builder getDataSharingSettingsSettings; + private final PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1479,13 +1553,11 @@ protected Builder(ClientContext clientContext) { getIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listIosAppDataStreamsSettings = PagedCallSettings.newBuilder(LIST_IOS_APP_DATA_STREAMS_PAGE_STR_FACT); getAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAndroidAppDataStreamsSettings = PagedCallSettings.newBuilder(LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT); getEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1501,6 +1573,8 @@ protected Builder(ClientContext clientContext) { listGoogleAdsLinksSettings = PagedCallSettings.newBuilder(LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT); getDataSharingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + searchChangeHistoryEventsSettings = + PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1533,12 +1607,10 @@ protected Builder(ClientContext clientContext) { getIosAppDataStreamSettings, deleteIosAppDataStreamSettings, updateIosAppDataStreamSettings, - createIosAppDataStreamSettings, listIosAppDataStreamsSettings, getAndroidAppDataStreamSettings, deleteAndroidAppDataStreamSettings, updateAndroidAppDataStreamSettings, - createAndroidAppDataStreamSettings, listAndroidAppDataStreamsSettings, getEnhancedMeasurementSettingsSettings, updateEnhancedMeasurementSettingsSettings, @@ -1551,7 +1623,8 @@ protected Builder(ClientContext clientContext) { updateGoogleAdsLinkSettings, deleteGoogleAdsLinkSettings, listGoogleAdsLinksSettings, - getDataSharingSettingsSettings); + getDataSharingSettingsSettings, + searchChangeHistoryEventsSettings); initDefaults(this); } @@ -1587,12 +1660,10 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getIosAppDataStreamSettings = settings.getIosAppDataStreamSettings.toBuilder(); deleteIosAppDataStreamSettings = settings.deleteIosAppDataStreamSettings.toBuilder(); updateIosAppDataStreamSettings = settings.updateIosAppDataStreamSettings.toBuilder(); - createIosAppDataStreamSettings = settings.createIosAppDataStreamSettings.toBuilder(); listIosAppDataStreamsSettings = settings.listIosAppDataStreamsSettings.toBuilder(); getAndroidAppDataStreamSettings = settings.getAndroidAppDataStreamSettings.toBuilder(); deleteAndroidAppDataStreamSettings = settings.deleteAndroidAppDataStreamSettings.toBuilder(); updateAndroidAppDataStreamSettings = settings.updateAndroidAppDataStreamSettings.toBuilder(); - createAndroidAppDataStreamSettings = settings.createAndroidAppDataStreamSettings.toBuilder(); listAndroidAppDataStreamsSettings = settings.listAndroidAppDataStreamsSettings.toBuilder(); getEnhancedMeasurementSettingsSettings = settings.getEnhancedMeasurementSettingsSettings.toBuilder(); @@ -1608,6 +1679,7 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteGoogleAdsLinkSettings = settings.deleteGoogleAdsLinkSettings.toBuilder(); listGoogleAdsLinksSettings = settings.listGoogleAdsLinksSettings.toBuilder(); getDataSharingSettingsSettings = settings.getDataSharingSettingsSettings.toBuilder(); + searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1640,12 +1712,10 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getIosAppDataStreamSettings, deleteIosAppDataStreamSettings, updateIosAppDataStreamSettings, - createIosAppDataStreamSettings, listIosAppDataStreamsSettings, getAndroidAppDataStreamSettings, deleteAndroidAppDataStreamSettings, updateAndroidAppDataStreamSettings, - createAndroidAppDataStreamSettings, listAndroidAppDataStreamsSettings, getEnhancedMeasurementSettingsSettings, updateEnhancedMeasurementSettingsSettings, @@ -1658,7 +1728,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateGoogleAdsLinkSettings, deleteGoogleAdsLinkSettings, listGoogleAdsLinksSettings, - getDataSharingSettingsSettings); + getDataSharingSettingsSettings, + searchChangeHistoryEventsSettings); } private static Builder createDefault() { @@ -1818,11 +1889,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder - .createIosAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listIosAppDataStreamsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1843,11 +1909,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder - .createAndroidAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listAndroidAppDataStreamsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1913,6 +1974,11 @@ 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 + .searchChangeHistoryEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -1987,7 +2053,7 @@ public UnaryCallSettings.Builder createProperty } /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { + public UnaryCallSettings.Builder deletePropertySettings() { return deletePropertySettings; } @@ -2103,12 +2169,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return updateIosAppDataStreamSettings; } - /** Returns the builder for the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings.Builder - createIosAppDataStreamSettings() { - return createIosAppDataStreamSettings; - } - /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings.Builder< ListIosAppDataStreamsRequest, @@ -2136,12 +2196,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return updateAndroidAppDataStreamSettings; } - /** Returns the builder for the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings.Builder - createAndroidAppDataStreamSettings() { - return createAndroidAppDataStreamSettings; - } - /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings.Builder< ListAndroidAppDataStreamsRequest, @@ -2227,6 +2281,15 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getDataSharingSettingsSettings; } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return searchChangeHistoryEventsSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index a70347a9..e45350d0 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; @@ -38,10 +39,8 @@ import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; @@ -89,6 +88,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +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.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; @@ -222,15 +223,15 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) .build(); - private static final MethodDescriptor + private static final MethodDescriptor deletePropertyMethodDescriptor = - MethodDescriptor.newBuilder() + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty") .setRequestMarshaller( ProtoUtils.marshaller(DeletePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) .build(); private static final MethodDescriptor @@ -445,17 +446,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) .build(); - private static final MethodDescriptor - createIosAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateIosAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateIosAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) - .build(); - private static final MethodDescriptor listIosAppDataStreamsMethodDescriptor = MethodDescriptor.newBuilder() @@ -503,18 +493,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) .build(); - private static final MethodDescriptor - createAndroidAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAndroidAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAndroidAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) - .build(); - private static final MethodDescriptor< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse> listAndroidAppDataStreamsMethodDescriptor = @@ -671,6 +649,20 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> + searchChangeHistoryEventsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -688,7 +680,7 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable listPropertiesPagedCallable; private final UnaryCallable createPropertyCallable; - private final UnaryCallable deletePropertyCallable; + private final UnaryCallable deletePropertyCallable; private final UnaryCallable updatePropertyCallable; private final UnaryCallable getUserLinkCallable; private final UnaryCallable @@ -722,8 +714,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable deleteIosAppDataStreamCallable; private final UnaryCallable updateIosAppDataStreamCallable; - private final UnaryCallable - createIosAppDataStreamCallable; private final UnaryCallable listIosAppDataStreamsCallable; private final UnaryCallable @@ -734,8 +724,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { deleteAndroidAppDataStreamCallable; private final UnaryCallable updateAndroidAppDataStreamCallable; - private final UnaryCallable - createAndroidAppDataStreamCallable; private final UnaryCallable listAndroidAppDataStreamsCallable; private final UnaryCallable< @@ -764,6 +752,11 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listGoogleAdsLinksPagedCallable; private final UnaryCallable getDataSharingSettingsCallable; + private final UnaryCallable + searchChangeHistoryEventsCallable; + private final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -885,8 +878,8 @@ public Map extract(GetPropertyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createPropertyMethodDescriptor) .build(); - GrpcCallSettings deletePropertyTransportSettings = - GrpcCallSettings.newBuilder() + GrpcCallSettings deletePropertyTransportSettings = + GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePropertyMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @@ -1158,20 +1151,6 @@ public Map extract(UpdateIosAppDataStreamRequest request) { } }) .build(); - GrpcCallSettings - createIosAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createIosAppDataStreamMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateIosAppDataStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); GrpcCallSettings listIosAppDataStreamsTransportSettings = GrpcCallSettings @@ -1233,21 +1212,6 @@ public Map extract( } }) .build(); - GrpcCallSettings - createAndroidAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAndroidAppDataStreamMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateAndroidAppDataStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); GrpcCallSettings listAndroidAppDataStreamsTransportSettings = GrpcCallSettings @@ -1435,6 +1399,21 @@ public Map extract(GetDataSharingSettingsRequest request) { } }) .build(); + GrpcCallSettings + searchChangeHistoryEventsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SearchChangeHistoryEventsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("account", String.valueOf(request.getAccount())); + return params.build(); + } + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -1571,11 +1550,6 @@ public Map extract(GetDataSharingSettingsRequest request) { updateIosAppDataStreamTransportSettings, settings.updateIosAppDataStreamSettings(), clientContext); - this.createIosAppDataStreamCallable = - callableFactory.createUnaryCallable( - createIosAppDataStreamTransportSettings, - settings.createIosAppDataStreamSettings(), - clientContext); this.listIosAppDataStreamsCallable = callableFactory.createUnaryCallable( listIosAppDataStreamsTransportSettings, @@ -1601,11 +1575,6 @@ public Map extract(GetDataSharingSettingsRequest request) { updateAndroidAppDataStreamTransportSettings, settings.updateAndroidAppDataStreamSettings(), clientContext); - this.createAndroidAppDataStreamCallable = - callableFactory.createUnaryCallable( - createAndroidAppDataStreamTransportSettings, - settings.createAndroidAppDataStreamSettings(), - clientContext); this.listAndroidAppDataStreamsCallable = callableFactory.createUnaryCallable( listAndroidAppDataStreamsTransportSettings, @@ -1684,6 +1653,16 @@ public Map extract(GetDataSharingSettingsRequest request) { getDataSharingSettingsTransportSettings, settings.getDataSharingSettingsSettings(), clientContext); + this.searchChangeHistoryEventsCallable = + callableFactory.createUnaryCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); + this.searchChangeHistoryEventsPagedCallable = + callableFactory.createPagedCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1758,7 +1737,7 @@ public UnaryCallable createPropertyCallable() { } @Override - public UnaryCallable deletePropertyCallable() { + public UnaryCallable deletePropertyCallable() { return deletePropertyCallable; } @@ -1880,12 +1859,6 @@ public UnaryCallable deleteIosAppDataStrea return updateIosAppDataStreamCallable; } - @Override - public UnaryCallable - createIosAppDataStreamCallable() { - return createIosAppDataStreamCallable; - } - @Override public UnaryCallable listIosAppDataStreamsCallable() { @@ -1916,12 +1889,6 @@ public UnaryCallable deleteIosAppDataStrea return updateAndroidAppDataStreamCallable; } - @Override - public UnaryCallable - createAndroidAppDataStreamCallable() { - return createAndroidAppDataStreamCallable; - } - @Override public UnaryCallable listAndroidAppDataStreamsCallable() { @@ -2011,6 +1978,18 @@ public UnaryCallable deleteGoogleAdsLinkCalla return getDataSharingSettingsCallable; } + @Override + public UnaryCallable + searchChangeHistoryEventsCallable() { + return searchChangeHistoryEventsCallable; + } + + @Override + public UnaryCallable + searchChangeHistoryEventsPagedCallable() { + return searchChangeHistoryEventsPagedCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 16380982..0fb73c80 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -463,7 +464,8 @@ public void getPropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -509,7 +511,8 @@ public void getPropertyTest2() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -614,7 +617,8 @@ public void createPropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -650,12 +654,25 @@ public void createPropertyExceptionTest() throws Exception { @Test public void deletePropertyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + Property expectedResponse = + Property.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setParent("parent-995424086") + .setDisplayName("displayName1714148973") + .setIndustryCategory(IndustryCategory.forNumber(0)) + .setTimeZone("timeZone-2077180903") + .setCurrencyCode("currencyCode1004773790") + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName name = PropertyName.of("[PROPERTY]"); - client.deleteProperty(name); + Property actualResponse = client.deleteProperty(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); @@ -684,12 +701,25 @@ public void deletePropertyExceptionTest() throws Exception { @Test public void deletePropertyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + Property expectedResponse = + Property.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setParent("parent-995424086") + .setDisplayName("displayName1714148973") + .setIndustryCategory(IndustryCategory.forNumber(0)) + .setTimeZone("timeZone-2077180903") + .setCurrencyCode("currencyCode1004773790") + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteProperty(name); + Property actualResponse = client.deleteProperty(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); @@ -728,7 +758,8 @@ public void updatePropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2046,100 +2077,6 @@ public void updateIosAppDataStreamExceptionTest() throws Exception { } } - @Test - public void createIosAppDataStreamTest() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - - IosAppDataStream actualResponse = client.createIosAppDataStream(parent, iosAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateIosAppDataStreamRequest actualRequest = - ((CreateIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createIosAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - client.createIosAppDataStream(parent, iosAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createIosAppDataStreamTest2() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - - IosAppDataStream actualResponse = client.createIosAppDataStream(parent, iosAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateIosAppDataStreamRequest actualRequest = - ((CreateIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createIosAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - client.createIosAppDataStream(parent, iosAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listIosAppDataStreamsTest() throws Exception { IosAppDataStream responsesElement = IosAppDataStream.newBuilder().build(); @@ -2443,104 +2380,6 @@ public void updateAndroidAppDataStreamExceptionTest() throws Exception { } } - @Test - public void createAndroidAppDataStreamTest() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - - AndroidAppDataStream actualResponse = - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAndroidAppDataStreamRequest actualRequest = - ((CreateAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAndroidAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAndroidAppDataStreamTest2() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - - AndroidAppDataStream actualResponse = - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAndroidAppDataStreamRequest actualRequest = - ((CreateAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAndroidAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listAndroidAppDataStreamsTest() throws Exception { AndroidAppDataStream responsesElement = AndroidAppDataStream.newBuilder().build(); @@ -3545,4 +3384,80 @@ public void getDataSharingSettingsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void searchChangeHistoryEventsTest() throws Exception { + ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); + SearchChangeHistoryEventsResponse expectedResponse = + SearchChangeHistoryEventsResponse.newBuilder() + .setNextPageToken("") + .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + SearchChangeHistoryEventsRequest request = + SearchChangeHistoryEventsRequest.newBuilder() + .setAccount(AccountName.of("[ACCOUNT]").toString()) + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .addAllResourceType(new ArrayList()) + .addAllAction(new ArrayList()) + .addAllActorEmail(new ArrayList()) + .setEarliestChangeTime(Timestamp.newBuilder().build()) + .setLatestChangeTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + SearchChangeHistoryEventsPagedResponse pagedListResponse = + client.searchChangeHistoryEvents(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchChangeHistoryEventsRequest actualRequest = + ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); + Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); + Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); + Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); + Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchChangeHistoryEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + SearchChangeHistoryEventsRequest request = + SearchChangeHistoryEventsRequest.newBuilder() + .setAccount(AccountName.of("[ACCOUNT]").toString()) + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .addAllResourceType(new ArrayList()) + .addAllAction(new ArrayList()) + .addAllActorEmail(new ArrayList()) + .setEarliestChangeTime(Timestamp.newBuilder().build()) + .setLatestChangeTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.searchChangeHistoryEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 27a37982..8784c7e8 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -249,11 +249,11 @@ public void createProperty( @Override public void deleteProperty( - DeletePropertyRequest request, StreamObserver responseObserver) { + DeletePropertyRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Empty) { + if (response instanceof Property) { requests.add(request); - responseObserver.onNext(((Empty) response)); + responseObserver.onNext(((Property) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -263,7 +263,7 @@ public void deleteProperty( String.format( "Unrecognized response type %s for method DeleteProperty, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), + Property.class.getName(), Exception.class.getName()))); } } @@ -670,27 +670,6 @@ public void updateIosAppDataStream( } } - @Override - public void createIosAppDataStream( - CreateIosAppDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof IosAppDataStream) { - requests.add(request); - responseObserver.onNext(((IosAppDataStream) 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 CreateIosAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - IosAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listIosAppDataStreams( ListIosAppDataStreamsRequest request, @@ -778,28 +757,6 @@ public void updateAndroidAppDataStream( } } - @Override - public void createAndroidAppDataStream( - CreateAndroidAppDataStreamRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AndroidAppDataStream) { - requests.add(request); - responseObserver.onNext(((AndroidAppDataStream) 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 CreateAndroidAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AndroidAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listAndroidAppDataStreams( ListAndroidAppDataStreamsRequest request, @@ -1077,4 +1034,26 @@ public void getDataSharingSettings( Exception.class.getName()))); } } + + @Override + public void searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchChangeHistoryEventsResponse) { + requests.add(request); + responseObserver.onNext(((SearchChangeHistoryEventsResponse) 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 SearchChangeHistoryEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchChangeHistoryEventsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 00000000..05c657f6 --- /dev/null +++ b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,21 @@ + + + + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * create*(*) + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * get*(*) + + + 7006 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * deleteProperty(*) + com.google.analytics.admin.v1alpha.Property + + \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index cccda831..e56b578d 100644 --- a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -460,19 +460,22 @@ private AnalyticsAdminServiceGrpc() {} } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> getDeletePropertyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", requestType = com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, - responseType = com.google.protobuf.Empty.class, + responseType = com.google.analytics.admin.v1alpha.Property.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> getDeletePropertyMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> getDeletePropertyMethod; if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { @@ -481,7 +484,7 @@ private AnalyticsAdminServiceGrpc() {} getDeletePropertyMethod = io.grpc.MethodDescriptor . + com.google.analytics.admin.v1alpha.Property> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProperty")) @@ -492,7 +495,7 @@ private AnalyticsAdminServiceGrpc() {} .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) + com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteProperty")) .build(); @@ -1421,59 +1424,6 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateIosAppDataStreamMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getCreateIosAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateIosAppDataStream", - requestType = com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getCreateIosAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getCreateIosAppDataStreamMethod; - if ((getCreateIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod = - getCreateIosAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateIosAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.IosAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "CreateIosAppDataStream")) - .build(); - } - } - } - return getCreateIosAppDataStreamMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> @@ -1684,59 +1634,6 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateAndroidAppDataStreamMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getCreateAndroidAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAndroidAppDataStream", - requestType = com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getCreateAndroidAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getCreateAndroidAppDataStreamMethod; - if ((getCreateAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod = - getCreateAndroidAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAndroidAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AndroidAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "CreateAndroidAppDataStream")) - .build(); - } - } - } - return getCreateAndroidAppDataStreamMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> @@ -2384,6 +2281,59 @@ private AnalyticsAdminServiceGrpc() {} return getGetDataSharingSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchChangeHistoryEvents", + requestType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + responseType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod = + getSearchChangeHistoryEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchChangeHistoryEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "SearchChangeHistoryEvents")) + .build(); + } + } + } + return getSearchChangeHistoryEventsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2594,7 +2544,7 @@ public void createProperty( */ public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeletePropertyMethod(), responseObserver); } @@ -2890,27 +2840,6 @@ public void updateIosAppDataStream( getUpdateIosAppDataStreamMethod(), responseObserver); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateIosAppDataStreamMethod(), responseObserver); - } - /** * * @@ -2973,27 +2902,6 @@ public void updateAndroidAppDataStream( getUpdateAndroidAppDataStreamMethod(), responseObserver); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAndroidAppDataStreamMethod(), responseObserver); - } - /** * * @@ -3198,6 +3106,23 @@ public void getDataSharingSettings( getGetDataSharingSettingsMethod(), responseObserver); } + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -3264,7 +3189,7 @@ public final io.grpc.ServerServiceDefinition bindService() { io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PROPERTY))) + com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) .addMethod( getUpdatePropertyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3392,13 +3317,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, com.google.analytics.admin.v1alpha.IosAppDataStream>( this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) - .addMethod( - getCreateIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_CREATE_IOS_APP_DATA_STREAM))) .addMethod( getListIosAppDataStreamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3426,13 +3344,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( this, METHODID_UPDATE_ANDROID_APP_DATA_STREAM))) - .addMethod( - getCreateAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream>( - this, METHODID_CREATE_ANDROID_APP_DATA_STREAM))) .addMethod( getListAndroidAppDataStreamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3522,6 +3433,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, com.google.analytics.admin.v1alpha.DataSharingSettings>( this, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getSearchChangeHistoryEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( + this, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) .build(); } } @@ -3722,7 +3640,7 @@ public void createProperty( */ public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request, @@ -4058,29 +3976,6 @@ public void updateIosAppDataStream( responseObserver); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -4151,29 +4046,6 @@ public void updateAndroidAppDataStream( responseObserver); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -4403,6 +4275,25 @@ public void getDataSharingSettings( request, responseObserver); } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -4570,7 +4461,7 @@ public com.google.analytics.admin.v1alpha.Property createProperty( * Returns an error if the target is not found, or is not an GA4 Property. * */ - public com.google.protobuf.Empty deleteProperty( + public com.google.analytics.admin.v1alpha.Property deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePropertyMethod(), getCallOptions(), request); @@ -4837,25 +4728,6 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStrea getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateIosAppDataStreamMethod(), getCallOptions(), request); - } - /** * * @@ -4910,25 +4782,6 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppD getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAndroidAppDataStreamMethod(), getCallOptions(), request); - } - /** * * @@ -5110,6 +4963,21 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); + } } /** @@ -5287,7 +5155,8 @@ protected AnalyticsAdminServiceFutureStub build( * Returns an error if the target is not found, or is not an GA4 Property. * */ - public com.google.common.util.concurrent.ListenableFuture + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); @@ -5574,27 +5443,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), request); - } - /** * * @@ -5656,27 +5504,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), request); - } - /** * * @@ -5872,6 +5699,22 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -5903,25 +5746,24 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_GET_IOS_APP_DATA_STREAM = 26; private static final int METHODID_DELETE_IOS_APP_DATA_STREAM = 27; private static final int METHODID_UPDATE_IOS_APP_DATA_STREAM = 28; - private static final int METHODID_CREATE_IOS_APP_DATA_STREAM = 29; - private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 30; - private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 31; - private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 32; - private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 33; - private static final int METHODID_CREATE_ANDROID_APP_DATA_STREAM = 34; - private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 35; - private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 36; - private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 37; - private static final int METHODID_CREATE_FIREBASE_LINK = 38; - private static final int METHODID_UPDATE_FIREBASE_LINK = 39; - private static final int METHODID_DELETE_FIREBASE_LINK = 40; - private static final int METHODID_LIST_FIREBASE_LINKS = 41; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 42; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 43; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 44; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 45; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 46; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 47; + private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 29; + private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 30; + private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 31; + private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 32; + private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 33; + private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 34; + private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 35; + private static final int METHODID_CREATE_FIREBASE_LINK = 36; + private static final int METHODID_UPDATE_FIREBASE_LINK = 37; + private static final int METHODID_DELETE_FIREBASE_LINK = 38; + private static final int METHODID_LIST_FIREBASE_LINKS = 39; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 40; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 41; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 42; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 43; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 44; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 45; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 46; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5999,7 +5841,8 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv case METHODID_DELETE_PROPERTY: serviceImpl.deleteProperty( (com.google.analytics.admin.v1alpha.DeletePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_PROPERTY: serviceImpl.updateProperty( @@ -6117,12 +5960,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_IOS_APP_DATA_STREAM: - serviceImpl.createIosAppDataStream( - (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; case METHODID_LIST_IOS_APP_DATA_STREAMS: serviceImpl.listIosAppDataStreams( (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) request, @@ -6147,12 +5984,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_ANDROID_APP_DATA_STREAM: - serviceImpl.createAndroidAppDataStream( - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; case METHODID_LIST_ANDROID_APP_DATA_STREAMS: serviceImpl.listAndroidAppDataStreams( (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) request, @@ -6234,6 +6065,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: + serviceImpl.searchChangeHistoryEvents( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -6327,12 +6165,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetIosAppDataStreamMethod()) .addMethod(getDeleteIosAppDataStreamMethod()) .addMethod(getUpdateIosAppDataStreamMethod()) - .addMethod(getCreateIosAppDataStreamMethod()) .addMethod(getListIosAppDataStreamsMethod()) .addMethod(getGetAndroidAppDataStreamMethod()) .addMethod(getDeleteAndroidAppDataStreamMethod()) .addMethod(getUpdateAndroidAppDataStreamMethod()) - .addMethod(getCreateAndroidAppDataStreamMethod()) .addMethod(getListAndroidAppDataStreamsMethod()) .addMethod(getGetEnhancedMeasurementSettingsMethod()) .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) @@ -6346,6 +6182,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteGoogleAdsLinkMethod()) .addMethod(getListGoogleAdsLinksMethod()) .addMethod(getGetDataSharingSettingsMethod()) + .addMethod(getSearchChangeHistoryEventsMethod()) .build(); } } diff --git a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index ff87a62f..ba7b7ea6 100644 --- a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -17,35 +17,19 @@ boolean has*(*) - + 6011 - com/google/analytics/admin/v1alpha/GoogleAdsLink - PARENT_FIELD_NUMBER + com/google/analytics/admin/v1alpha/Property + *FIELD_NUMBER 7002 - com/google/analytics/admin/v1alpha/GoogleAdsLink* - * *Parent*(*) + com/google/analytics/admin/v1alpha/Property* + * *Deleted(*) - 6011 - com/google/analytics/admin/v1alpha/Account - COUNTRY_CODE_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/Account* - * *CountryCode*(*) - - - 6011 - com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings - *_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings* - * + 8001 + com/google/analytics/admin/v1alpha/Create* diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java new file mode 100644 index 00000000..bdd4ca5b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.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 actions that may change a resource.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActionType} + */ +public enum ActionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + ACTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + UPDATED(2), + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + public static final int UPDATED_VALUE = 2; + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + public static final int DELETED_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 ActionType 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 ActionType forNumber(int value) { + switch (value) { + case 0: + return ACTION_TYPE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return UPDATED; + case 3: + return DELETED; + 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 ActionType findValueByNumber(int number) { + return ActionType.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(3); + } + + private static final ActionType[] VALUES = values(); + + public static ActionType 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 ActionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActionType) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java new file mode 100644 index 00000000..b34ddadc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java @@ -0,0 +1,199 @@ +/* + * 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; + +/** + * + * + *
+ * Different kinds of actors that can make changes to Google Analytics
+ * resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActorType} + */ +public enum ActorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + ACTOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + USER(1), + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + SUPPORT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + public static final int SUPPORT_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 ActorType 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 ActorType forNumber(int value) { + switch (value) { + case 0: + return ACTOR_TYPE_UNSPECIFIED; + case 1: + return USER; + case 2: + return SYSTEM; + case 3: + return SUPPORT; + 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 ActorType findValueByNumber(int number) { + return ActorType.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(2); + } + + private static final ActorType[] VALUES = values(); + + public static ActorType 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 ActorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActorType) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 4f51ab89..8ec45438 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -175,10 +175,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -199,10 +195,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -275,6 +267,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -402,363 +402,363 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022R\n\023ios_app_data_stream\030\001 \001(\01320.google.a" + "nalytics.admin.v1alpha.IosAppDataStreamB" + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"\273\001\n\035CreateIosAppDataS" - + "treamRequest\022R\n\023ios_app_data_stream\030\001 \001(" - + "\01320.google.analytics.admin.v1alpha.IosAp" - + "pDataStreamB\003\340A\002\022F\n\006parent\030\002 \001(\tB6\340A\002\372A0" - + "\022.analyticsadmin.googleapis.com/IosAppDa" - + "taStream\"\215\001\n\034ListIosAppDataStreamsReques" - + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.analyticsadmi" - + "n.googleapis.com/IosAppDataStream\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\210\001\n\035Lis" - + "tIosAppDataStreamsResponse\022N\n\024ios_app_da" - + "ta_streams\030\001 \003(\01320.google.analytics.admi" - + "n.v1alpha.IosAppDataStream\022\027\n\017next_page_" - + "token\030\002 \001(\t\"j\n\036GetAndroidAppDataStreamRe" - + "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsad" - + "min.googleapis.com/AndroidAppDataStream\"" - + "m\n!DeleteAndroidAppDataStreamRequest\022H\n\004" - + "name\030\001 \001(\tB:\340A\002\372A4\n2analyticsadmin.googl" - + "eapis.com/AndroidAppDataStream\"\265\001\n!Updat" - + "eAndroidAppDataStreamRequest\022Z\n\027android_" - + "app_data_stream\030\001 \001(\01324.google.analytics" - + ".admin.v1alpha.AndroidAppDataStreamB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"\313\001\n!CreateAndroidAppDataS" - + "treamRequest\022Z\n\027android_app_data_stream\030" - + "\001 \001(\01324.google.analytics.admin.v1alpha.A" - + "ndroidAppDataStreamB\003\340A\002\022J\n\006parent\030\002 \001(\t" - + "B:\340A\002\372A4\0222analyticsadmin.googleapis.com/" - + "AndroidAppDataStream\"\225\001\n ListAndroidAppD" - + "ataStreamsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A" - + "4\0222analyticsadmin.googleapis.com/Android" - + "AppDataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"\224\001\n!ListAndroidAppDataStrea" - + "msResponse\022V\n\030android_app_data_streams\030\001" - + " \003(\01324.google.analytics.admin.v1alpha.An" - + "droidAppDataStream\022\027\n\017next_page_token\030\002 " - + "\001(\t\"x\n%GetEnhancedMeasurementSettingsReq" - + "uest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9analyticsadm" - + "in.googleapis.com/EnhancedMeasurementSet" - + "tings\"\311\001\n(UpdateEnhancedMeasurementSetti" - + "ngsRequest\022g\n\035enhanced_measurement_setti" - + "ngs\030\001 \001(\0132;.google.analytics.admin.v1alp" - + "ha.EnhancedMeasurementSettingsB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequest\022" - + "B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin." - + "googleapis.com/FirebaseLink\022H\n\rfirebase_" - + "link\030\002 \001(\0132,.google.analytics.admin.v1al" - + "pha.FirebaseLinkB\003\340A\002\"\233\001\n\031UpdateFirebase" - + "LinkRequest\022H\n\rfirebase_link\030\001 \001(\0132,.goo" - + "gle.analytics.admin.v1alpha.FirebaseLink" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\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(\t2\353R\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\214" - + "\001\n\016DeleteProperty\0225.google.analytics.adm" - + "in.v1alpha.DeletePropertyRequest\032\026.googl" - + "e.protobuf.Empty\"+\202\323\344\223\002\036*\034/v1alpha/{name" - + "=properties/*}\332A\004name\022\301\001\n\016UpdateProperty" - + "\0225.google.analytics.admin.v1alpha.Update" - + "PropertyRequest\032(.google.analytics.admin" - + ".v1alpha.Property\"N\202\323\344\223\00212%/v1alpha/{pro" - + "perty.name=properties/*}:\010property\332A\024pro" - + "perty,update_mask\022\316\001\n\013GetUserLink\0222.goog" - + "le.analytics.admin.v1alpha.GetUserLinkRe" - + "quest\032(.google.analytics.admin.v1alpha.U" - + "serLink\"a\202\323\344\223\002T\022&/v1alpha/{name=accounts" - + "/*/userLinks/*}Z*\022(/v1alpha/{name=proper" - + "ties/*/userLinks/*}\332A\004name\022\366\001\n\021BatchGetU" - + "serLinks\0228.google.analytics.admin.v1alph" - + "a.BatchGetUserLinksRequest\0329.google.anal" - + "ytics.admin.v1alpha.BatchGetUserLinksRes" - + "ponse\"l\202\323\344\223\002f\022//v1alpha/{parent=accounts" - + "/*}/userLinks:batchGetZ3\0221/v1alpha/{pare" - + "nt=properties/*}/userLinks:batchGet\022\341\001\n\r" - + "ListUserLinks\0224.google.analytics.admin.v" - + "1alpha.ListUserLinksRequest\0325.google.ana" - + "lytics.admin.v1alpha.ListUserLinksRespon" - + "se\"c\202\323\344\223\002T\022&/v1alpha/{parent=accounts/*}" - + "/userLinksZ*\022(/v1alpha/{parent=propertie" - + "s/*}/userLinks\332A\006parent\022\355\001\n\016AuditUserLin" - + "ks\0225.google.analytics.admin.v1alpha.Audi" - + "tUserLinksRequest\0326.google.analytics.adm" - + "in.v1alpha.AuditUserLinksResponse\"l\202\323\344\223\002" - + "f\",/v1alpha/{parent=accounts/*}/userLink" - + "s:audit:\001*Z3\"./v1alpha/{parent=propertie" - + "s/*}/userLinks:audit:\001*\022\367\001\n\016CreateUserLi" - + "nk\0225.google.analytics.admin.v1alpha.Crea" - + "teUserLinkRequest\032(.google.analytics.adm" - + "in.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1alpha/{" - + "parent=accounts/*}/userLinks:\tuser_linkZ" - + "5\"(/v1alpha/{parent=properties/*}/userLi" - + "nks:\tuser_link\332A\020parent,user_link\022\213\002\n\024Ba" - + "tchCreateUserLinks\022;.google.analytics.ad" - + "min.v1alpha.BatchCreateUserLinksRequest\032" - + "<.google.analytics.admin.v1alpha.BatchCr" - + "eateUserLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/" - + "{parent=accounts/*}/userLinks:batchCreat" - + "e:\001*Z9\"4/v1alpha/{parent=properties/*}/u" - + "serLinks:batchCreate:\001*\022\204\002\n\016UpdateUserLi" - + "nk\0225.google.analytics.admin.v1alpha.Upda" - + "teUserLinkRequest\032(.google.analytics.adm" - + "in.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1alpha/{" - + "user_link.name=accounts/*/userLinks/*}:\t" - + "user_linkZ?22/v1alpha/{user_link.name=pr" - + "operties/*/userLinks/*}:\tuser_link\332A\tuse" - + "r_link\022\213\002\n\024BatchUpdateUserLinks\022;.google" - + ".analytics.admin.v1alpha.BatchUpdateUser" - + "LinksRequest\032<.google.analytics.admin.v1" - + "alpha.BatchUpdateUserLinksResponse\"x\202\323\344\223" - + "\002r\"2/v1alpha/{parent=accounts/*}/userLin" - + "ks:batchUpdate:\001*Z9\"4/v1alpha/{parent=pr" - + "operties/*}/userLinks:batchUpdate:\001*\022\302\001\n" - + "\016DeleteUserLink\0225.google.analytics.admin" - + ".v1alpha.DeleteUserLinkRequest\032\026.google." - + "protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{name=a" - + "ccounts/*/userLinks/*}Z**(/v1alpha/{name" - + "=properties/*/userLinks/*}\332A\004name\022\345\001\n\024Ba" - + "tchDeleteUserLinks\022;.google.analytics.ad" - + "min.v1alpha.BatchDeleteUserLinksRequest\032" - + "\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/v1alph" - + "a/{parent=accounts/*}/userLinks:batchDel" - + "ete:\001*Z9\"4/v1alpha/{parent=properties/*}" - + "/userLinks:batchDelete:\001*\022\270\001\n\020GetWebData" - + "Stream\0227.google.analytics.admin.v1alpha." - + "GetWebDataStreamRequest\032-.google.analyti" - + "cs.admin.v1alpha.WebDataStream\"<\202\323\344\223\002/\022-" - + "/v1alpha/{name=properties/*/webDataStrea" - + "ms/*}\332A\004name\022\247\001\n\023DeleteWebDataStream\022:.g" - + "oogle.analytics.admin.v1alpha.DeleteWebD" - + "ataStreamRequest\032\026.google.protobuf.Empty" - + "\"<\202\323\344\223\002/*-/v1alpha/{name=properties/*/we" - + "bDataStreams/*}\332A\004name\022\366\001\n\023UpdateWebData" - + "Stream\022:.google.analytics.admin.v1alpha." - + "UpdateWebDataStreamRequest\032-.google.anal" - + "ytics.admin.v1alpha.WebDataStream\"t\202\323\344\223\002" - + "P2=/v1alpha/{web_data_stream.name=proper" - + "ties/*/webDataStreams/*}:\017web_data_strea" - + "m\332A\033web_data_stream,update_mask\022\341\001\n\023Crea" - + "teWebDataStream\022:.google.analytics.admin" - + ".v1alpha.CreateWebDataStreamRequest\032-.go" - + "ogle.analytics.admin.v1alpha.WebDataStre" - + "am\"_\202\323\344\223\002@\"-/v1alpha/{parent=properties/" - + "*}/webDataStreams:\017web_data_stream\332A\026par" - + "ent,web_data_stream\022\313\001\n\022ListWebDataStrea" - + "ms\0229.google.analytics.admin.v1alpha.List" - + "WebDataStreamsRequest\032:.google.analytics" - + ".admin.v1alpha.ListWebDataStreamsRespons" + + "buf.FieldMaskB\003\340A\002\"\215\001\n\034ListIosAppDataStr" + + "eamsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.ana" + + "lyticsadmin.googleapis.com/IosAppDataStr" + + "eam\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"\210\001\n\035ListIosAppDataStreamsResponse\022N\n\024" + + "ios_app_data_streams\030\001 \003(\01320.google.anal" + + "ytics.admin.v1alpha.IosAppDataStream\022\027\n\017" + + "next_page_token\030\002 \001(\t\"j\n\036GetAndroidAppDa" + + "taStreamRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2a" + + "nalyticsadmin.googleapis.com/AndroidAppD" + + "ataStream\"m\n!DeleteAndroidAppDataStreamR" + + "equest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsa" + + "dmin.googleapis.com/AndroidAppDataStream" + + "\"\265\001\n!UpdateAndroidAppDataStreamRequest\022Z" + + "\n\027android_app_data_stream\030\001 \001(\01324.google" + + ".analytics.admin.v1alpha.AndroidAppDataS" + + "treamB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\"\225\001\n ListAndroid" + + "AppDataStreamsRequest\022J\n\006parent\030\001 \001(\tB:\340" + + "A\002\372A4\0222analyticsadmin.googleapis.com/And" + + "roidAppDataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\224\001\n!ListAndroidAppDataS" + + "treamsResponse\022V\n\030android_app_data_strea" + + "ms\030\001 \003(\01324.google.analytics.admin.v1alph" + + "a.AndroidAppDataStream\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"x\n%GetEnhancedMeasurementSetting" + + "sRequest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9analytic" + + "sadmin.googleapis.com/EnhancedMeasuremen" + + "tSettings\"\311\001\n(UpdateEnhancedMeasurementS" + + "ettingsRequest\022g\n\035enhanced_measurement_s" + + "ettings\030\001 \001(\0132;.google.analytics.admin.v" + + "1alpha.EnhancedMeasurementSettingsB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequ" + + "est\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsad" + + "min.googleapis.com/FirebaseLink\022H\n\rfireb" + + "ase_link\030\002 \001(\0132,.google.analytics.admin." + + "v1alpha.FirebaseLinkB\003\340A\002\"\233\001\n\031UpdateFire" + + "baseLinkRequest\022H\n\rfirebase_link\030\001 \001(\0132," + + ".google.analytics.admin.v1alpha.Firebase" + + "LinkB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"]\n\031DeleteFirebas" + + "eLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*anal" + + "yticsadmin.googleapis.com/FirebaseLink\"\205" + + "\001\n\030ListFirebaseLinksRequest\022B\n\006parent\030\001 " + + "\001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis.c" + + "om/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"z\n\031ListFirebaseLinksRespo" + + "nse\022D\n\016firebase_links\030\001 \003(\0132,.google.ana" + + "lytics.admin.v1alpha.FirebaseLink\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTagRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsad" + + "min.googleapis.com/GlobalSiteTag\"\256\001\n\032Cre" + + "ateGoogleAdsLinkRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\022+analyticsadmin.googleapis.com/G" + + "oogleAdsLink\022K\n\017google_ads_link\030\002 \001(\0132-." + + "google.analytics.admin.v1alpha.GoogleAds" + + "LinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequest" + + "\022F\n\017google_ads_link\030\001 \001(\0132-.google.analy" + + "tics.admin.v1alpha.GoogleAdsLink\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A\n\004" + + "name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.googl" + + "eapis.com/GoogleAdsLink\"\207\001\n\031ListGoogleAd" + + "sLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+a" + + "nalyticsadmin.googleapis.com/GoogleAdsLi" + + "nk\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020googl" + + "e_ads_links\030\001 \003(\0132-.google.analytics.adm" + + "in.v1alpha.GoogleAdsLink\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"h\n\035GetDataSharingSettingsReque" + + "st\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmin" + + ".googleapis.com/DataSharingSettings\"D\n\033L" + + "istAccountSummariesRequest\022\021\n\tpage_size\030" + + "\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccoun" + + "tSummariesResponse\022I\n\021account_summaries\030" + + "\001 \003(\0132..google.analytics.admin.v1alpha.A" + + "ccountSummary\022\027\n\017next_page_token\030\002 \001(\t\"\203" + + "\004\n SearchChangeHistoryEventsRequest\022>\n\007a" + + "ccount\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.goo" + + "gleapis.com/Account\022@\n\010property\030\002 \001(\tB.\340" + + "A\001\372A(\n&analyticsadmin.googleapis.com/Pro" + + "perty\022U\n\rresource_type\030\003 \003(\01629.google.an" + + "alytics.admin.v1alpha.ChangeHistoryResou" + + "rceTypeB\003\340A\001\022?\n\006action\030\004 \003(\0162*.google.an" + + "alytics.admin.v1alpha.ActionTypeB\003\340A\001\022\030\n" + + "\013actor_email\030\005 \003(\tB\003\340A\001\022=\n\024earliest_chan" + + "ge_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\001\022;\n\022latest_change_time\030\007 \001(\0132\032.goo" + + "gle.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" + + "!SearchChangeHistoryEventsResponse\022Q\n\025ch" + + "ange_history_events\030\001 \003(\01322.google.analy" + + "tics.admin.v1alpha.ChangeHistoryEvent\022\027\n" + + "\017next_page_token\030\002 \001(\t2\334P\n\025AnalyticsAdmi" + + "nService\022\223\001\n\nGetAccount\0221.google.analyti" + + "cs.admin.v1alpha.GetAccountRequest\032\'.goo" + + "gle.analytics.admin.v1alpha.Account\")\202\323\344" + + "\223\002\034\022\032/v1alpha/{name=accounts/*}\332A\004name\022\224" + + "\001\n\014ListAccounts\0223.google.analytics.admin" + + ".v1alpha.ListAccountsRequest\0324.google.an" + + "alytics.admin.v1alpha.ListAccountsRespon" + + "se\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDelete" + + "Account\0224.google.analytics.admin.v1alpha" + + ".DeleteAccountRequest\032\026.google.protobuf." + + "Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*" + + "}\332A\004name\022\271\001\n\rUpdateAccount\0224.google.anal" + + "ytics.admin.v1alpha.UpdateAccountRequest" + + "\032\'.google.analytics.admin.v1alpha.Accoun" + + "t\"I\202\323\344\223\002-2\"/v1alpha/{account.name=accoun" + + "ts/*}:\007account\332A\023account,update_mask\022\314\001\n" + + "\026ProvisionAccountTicket\022=.google.analyti" + + "cs.admin.v1alpha.ProvisionAccountTicketR" + + "equest\032>.google.analytics.admin.v1alpha." + + "ProvisionAccountTicketResponse\"3\202\323\344\223\002-\"(" + + "/v1alpha/accounts:provisionAccountTicket" + + ":\001*\022\264\001\n\024ListAccountSummaries\022;.google.an" + + "alytics.admin.v1alpha.ListAccountSummari" + + "esRequest\032<.google.analytics.admin.v1alp" + + "ha.ListAccountSummariesResponse\"!\202\323\344\223\002\033\022" + + "\031/v1alpha/accountSummaries\022\230\001\n\013GetProper" + + "ty\0222.google.analytics.admin.v1alpha.GetP" + + "ropertyRequest\032(.google.analytics.admin." + + "v1alpha.Property\"+\202\323\344\223\002\036\022\034/v1alpha/{name" + + "=properties/*}\332A\004name\022\234\001\n\016ListProperties" + + "\0225.google.analytics.admin.v1alpha.ListPr" + + "opertiesRequest\0326.google.analytics.admin" + + ".v1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022" + + "\023/v1alpha/properties\022\243\001\n\016CreateProperty\022" + + "5.google.analytics.admin.v1alpha.CreateP" + + "ropertyRequest\032(.google.analytics.admin." + + "v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1alpha/prope" + + "rties:\010property\332A\010property\022\236\001\n\016DeletePro" + + "perty\0225.google.analytics.admin.v1alpha.D" + + "eletePropertyRequest\032(.google.analytics." + + "admin.v1alpha.Property\"+\202\323\344\223\002\036*\034/v1alpha" + + "/{name=properties/*}\332A\004name\022\301\001\n\016UpdatePr" + + "operty\0225.google.analytics.admin.v1alpha." + + "UpdatePropertyRequest\032(.google.analytics" + + ".admin.v1alpha.Property\"N\202\323\344\223\00212%/v1alph" + + "a/{property.name=properties/*}:\010property" + + "\332A\024property,update_mask\022\316\001\n\013GetUserLink\022" + + "2.google.analytics.admin.v1alpha.GetUser" + + "LinkRequest\032(.google.analytics.admin.v1a" + + "lpha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{name=ac" + + "counts/*/userLinks/*}Z*\022(/v1alpha/{name=" + + "properties/*/userLinks/*}\332A\004name\022\366\001\n\021Bat" + + "chGetUserLinks\0228.google.analytics.admin." + + "v1alpha.BatchGetUserLinksRequest\0329.googl" + + "e.analytics.admin.v1alpha.BatchGetUserLi" + + "nksResponse\"l\202\323\344\223\002f\022//v1alpha/{parent=ac" + + "counts/*}/userLinks:batchGetZ3\0221/v1alpha" + + "/{parent=properties/*}/userLinks:batchGe" + + "t\022\341\001\n\rListUserLinks\0224.google.analytics.a" + + "dmin.v1alpha.ListUserLinksRequest\0325.goog" + + "le.analytics.admin.v1alpha.ListUserLinks" + + "Response\"c\202\323\344\223\002T\022&/v1alpha/{parent=accou" + + "nts/*}/userLinksZ*\022(/v1alpha/{parent=pro" + + "perties/*}/userLinks\332A\006parent\022\355\001\n\016AuditU" + + "serLinks\0225.google.analytics.admin.v1alph" + + "a.AuditUserLinksRequest\0326.google.analyti" + + "cs.admin.v1alpha.AuditUserLinksResponse\"" + + "l\202\323\344\223\002f\",/v1alpha/{parent=accounts/*}/us" + + "erLinks:audit:\001*Z3\"./v1alpha/{parent=pro" + + "perties/*}/userLinks:audit:\001*\022\367\001\n\016Create" + + "UserLink\0225.google.analytics.admin.v1alph" + + "a.CreateUserLinkRequest\032(.google.analyti" + + "cs.admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1a" + + "lpha/{parent=accounts/*}/userLinks:\tuser" + + "_linkZ5\"(/v1alpha/{parent=properties/*}/" + + "userLinks:\tuser_link\332A\020parent,user_link\022" + + "\213\002\n\024BatchCreateUserLinks\022;.google.analyt" + + "ics.admin.v1alpha.BatchCreateUserLinksRe" + + "quest\032<.google.analytics.admin.v1alpha.B" + + "atchCreateUserLinksResponse\"x\202\323\344\223\002r\"2/v1" + + "alpha/{parent=accounts/*}/userLinks:batc" + + "hCreate:\001*Z9\"4/v1alpha/{parent=propertie" + + "s/*}/userLinks:batchCreate:\001*\022\204\002\n\016Update" + + "UserLink\0225.google.analytics.admin.v1alph" + + "a.UpdateUserLinkRequest\032(.google.analyti" + + "cs.admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1a" + + "lpha/{user_link.name=accounts/*/userLink" + + "s/*}:\tuser_linkZ?22/v1alpha/{user_link.n" + + "ame=properties/*/userLinks/*}:\tuser_link" + + "\332A\tuser_link\022\213\002\n\024BatchUpdateUserLinks\022;." + + "google.analytics.admin.v1alpha.BatchUpda" + + "teUserLinksRequest\032<.google.analytics.ad" + + "min.v1alpha.BatchUpdateUserLinksResponse" + + "\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/u" + + "serLinks:batchUpdate:\001*Z9\"4/v1alpha/{par" + + "ent=properties/*}/userLinks:batchUpdate:" + + "\001*\022\302\001\n\016DeleteUserLink\0225.google.analytics" + + ".admin.v1alpha.DeleteUserLinkRequest\032\026.g" + + "oogle.protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{" + + "name=accounts/*/userLinks/*}Z**(/v1alpha" + + "/{name=properties/*/userLinks/*}\332A\004name\022" + + "\345\001\n\024BatchDeleteUserLinks\022;.google.analyt" + + "ics.admin.v1alpha.BatchDeleteUserLinksRe" + + "quest\032\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/" + + "v1alpha/{parent=accounts/*}/userLinks:ba" + + "tchDelete:\001*Z9\"4/v1alpha/{parent=propert" + + "ies/*}/userLinks:batchDelete:\001*\022\270\001\n\020GetW" + + "ebDataStream\0227.google.analytics.admin.v1" + + "alpha.GetWebDataStreamRequest\032-.google.a" + + "nalytics.admin.v1alpha.WebDataStream\"<\202\323" + + "\344\223\002/\022-/v1alpha/{name=properties/*/webDat" + + "aStreams/*}\332A\004name\022\247\001\n\023DeleteWebDataStre" + + "am\022:.google.analytics.admin.v1alpha.Dele" + + "teWebDataStreamRequest\032\026.google.protobuf" + + ".Empty\"<\202\323\344\223\002/*-/v1alpha/{name=propertie" + + "s/*/webDataStreams/*}\332A\004name\022\366\001\n\023UpdateW" + + "ebDataStream\022:.google.analytics.admin.v1" + + "alpha.UpdateWebDataStreamRequest\032-.googl" + + "e.analytics.admin.v1alpha.WebDataStream\"" + + "t\202\323\344\223\002P2=/v1alpha/{web_data_stream.name=" + + "properties/*/webDataStreams/*}:\017web_data" + + "_stream\332A\033web_data_stream,update_mask\022\341\001" + + "\n\023CreateWebDataStream\022:.google.analytics" + + ".admin.v1alpha.CreateWebDataStreamReques" + + "t\032-.google.analytics.admin.v1alpha.WebDa" + + "taStream\"_\202\323\344\223\002@\"-/v1alpha/{parent=prope" + + "rties/*}/webDataStreams:\017web_data_stream" + + "\332A\026parent,web_data_stream\022\313\001\n\022ListWebDat" + + "aStreams\0229.google.analytics.admin.v1alph" + + "a.ListWebDataStreamsRequest\032:.google.ana" + + "lytics.admin.v1alpha.ListWebDataStreamsR" + + "esponse\">\202\323\344\223\002/\022-/v1alpha/{parent=proper" + + "ties/*}/webDataStreams\332A\006parent\022\304\001\n\023GetI" + + "osAppDataStream\022:.google.analytics.admin" + + ".v1alpha.GetIosAppDataStreamRequest\0320.go" + + "ogle.analytics.admin.v1alpha.IosAppDataS" + + "tream\"?\202\323\344\223\0022\0220/v1alpha/{name=properties" + + "/*/iosAppDataStreams/*}\332A\004name\022\260\001\n\026Delet" + + "eIosAppDataStream\022=.google.analytics.adm" + + "in.v1alpha.DeleteIosAppDataStreamRequest" + + "\032\026.google.protobuf.Empty\"?\202\323\344\223\0022*0/v1alp" + + "ha/{name=properties/*/iosAppDataStreams/" + + "*}\332A\004name\022\217\002\n\026UpdateIosAppDataStream\022=.g" + + "oogle.analytics.admin.v1alpha.UpdateIosA" + + "ppDataStreamRequest\0320.google.analytics.a" + + "dmin.v1alpha.IosAppDataStream\"\203\001\202\323\344\223\002[2D" + + "/v1alpha/{ios_app_data_stream.name=prope" + + "rties/*/iosAppDataStreams/*}:\023ios_app_da" + + "ta_stream\332A\037ios_app_data_stream,update_m" + + "ask\022\327\001\n\025ListIosAppDataStreams\022<.google.a" + + "nalytics.admin.v1alpha.ListIosAppDataStr" + + "eamsRequest\032=.google.analytics.admin.v1a" + + "lpha.ListIosAppDataStreamsResponse\"A\202\323\344\223" + + "\0022\0220/v1alpha/{parent=properties/*}/iosAp" + + "pDataStreams\332A\006parent\022\324\001\n\027GetAndroidAppD" + + "ataStream\022>.google.analytics.admin.v1alp" + + "ha.GetAndroidAppDataStreamRequest\0324.goog" + + "le.analytics.admin.v1alpha.AndroidAppDat" + + "aStream\"C\202\323\344\223\0026\0224/v1alpha/{name=properti" + + "es/*/androidAppDataStreams/*}\332A\004name\022\274\001\n" + + "\032DeleteAndroidAppDataStream\022A.google.ana" + + "lytics.admin.v1alpha.DeleteAndroidAppDat" + + "aStreamRequest\032\026.google.protobuf.Empty\"C" + + "\202\323\344\223\0026*4/v1alpha/{name=properties/*/andr" + + "oidAppDataStreams/*}\332A\004name\022\253\002\n\032UpdateAn" + + "droidAppDataStream\022A.google.analytics.ad" + + "min.v1alpha.UpdateAndroidAppDataStreamRe" + + "quest\0324.google.analytics.admin.v1alpha.A" + + "ndroidAppDataStream\"\223\001\202\323\344\223\002g2L/v1alpha/{" + + "android_app_data_stream.name=properties/" + + "*/androidAppDataStreams/*}:\027android_app_" + + "data_stream\332A#android_app_data_stream,up" + + "date_mask\022\347\001\n\031ListAndroidAppDataStreams\022" + + "@.google.analytics.admin.v1alpha.ListAnd" + + "roidAppDataStreamsRequest\032A.google.analy" + + "tics.admin.v1alpha.ListAndroidAppDataStr" + + "eamsResponse\"E\202\323\344\223\0026\0224/v1alpha/{parent=p" + + "roperties/*}/androidAppDataStreams\332A\006par" + + "ent\022\376\001\n\036GetEnhancedMeasurementSettings\022E" + + ".google.analytics.admin.v1alpha.GetEnhan" + + "cedMeasurementSettingsRequest\032;.google.a" + + "nalytics.admin.v1alpha.EnhancedMeasureme" + + "ntSettings\"X\202\323\344\223\002K\022I/v1alpha/{name=prope" + + "rties/*/webDataStreams/*/enhancedMeasure" + + "mentSettings}\332A\004name\022\350\002\n!UpdateEnhancedM" + + "easurementSettings\022H.google.analytics.ad" + + "min.v1alpha.UpdateEnhancedMeasurementSet", + "tingsRequest\032;.google.analytics.admin.v1" + + "alpha.EnhancedMeasurementSettings\"\273\001\202\323\344\223" + + "\002\210\0012g/v1alpha/{enhanced_measurement_sett" + + "ings.name=properties/*/webDataStreams/*/" + + "enhancedMeasurementSettings}:\035enhanced_m" + + "easurement_settings\332A)enhanced_measureme" + + "nt_settings,update_mask\022\331\001\n\022CreateFireba" + + "seLink\0229.google.analytics.admin.v1alpha." + + "CreateFirebaseLinkRequest\032,.google.analy" + + "tics.admin.v1alpha.FirebaseLink\"Z\202\323\344\223\002=\"" + + ",/v1alpha/{parent=properties/*}/firebase" + + "Links:\rfirebase_link\332A\024parent,firebase_l" + + "ink\022\354\001\n\022UpdateFirebaseLink\0229.google.anal" + + "ytics.admin.v1alpha.UpdateFirebaseLinkRe" + + "quest\032,.google.analytics.admin.v1alpha.F" + + "irebaseLink\"m\202\323\344\223\002K2:/v1alpha/{firebase_" + + "link.name=properties/*/firebaseLinks/*}:" + + "\rfirebase_link\332A\031firebase_link,update_ma" + + "sk\022\244\001\n\022DeleteFirebaseLink\0229.google.analy" + + "tics.admin.v1alpha.DeleteFirebaseLinkReq" + + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" + + "1alpha/{name=properties/*/firebaseLinks/" + + "*}\332A\004name\022\307\001\n\021ListFirebaseLinks\0228.google" + + ".analytics.admin.v1alpha.ListFirebaseLin" + + "ksRequest\0329.google.analytics.admin.v1alp" + + "ha.ListFirebaseLinksResponse\"=\202\323\344\223\002.\022,/v" + + "1alpha/{parent=properties/*}/firebaseLin" + + "ks\332A\006parent\022\306\001\n\020GetGlobalSiteTag\0227.googl" + + "e.analytics.admin.v1alpha.GetGlobalSiteT" + + "agRequest\032-.google.analytics.admin.v1alp" + + "ha.GlobalSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name" + + "=properties/*/webDataStreams/*/globalSit" + + "eTag}\332A\004name\022\341\001\n\023CreateGoogleAdsLink\022:.g" + + "oogle.analytics.admin.v1alpha.CreateGoog" + + "leAdsLinkRequest\032-.google.analytics.admi" + + "n.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alph" + + "a/{parent=properties/*}/googleAdsLinks:\017" + + "google_ads_link\332A\026parent,google_ads_link" + + "\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analyt" + + "ics.admin.v1alpha.UpdateGoogleAdsLinkReq" + + "uest\032-.google.analytics.admin.v1alpha.Go" + + "ogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{google_ad" + + "s_link.name=properties/*/googleAdsLinks/" + + "*}:\017google_ads_link\332A\033google_ads_link,up" + + "date_mask\022\247\001\n\023DeleteGoogleAdsLink\022:.goog" + + "le.analytics.admin.v1alpha.DeleteGoogleA" + + "dsLinkRequest\032\026.google.protobuf.Empty\"<\202" + + "\323\344\223\002/*-/v1alpha/{name=properties/*/googl" + + "eAdsLinks/*}\332A\004name\022\313\001\n\022ListGoogleAdsLin" + + "ks\0229.google.analytics.admin.v1alpha.List" + + "GoogleAdsLinksRequest\032:.google.analytics" + + ".admin.v1alpha.ListGoogleAdsLinksRespons" + "e\">\202\323\344\223\002/\022-/v1alpha/{parent=properties/*" - + "}/webDataStreams\332A\006parent\022\304\001\n\023GetIosAppD" - + "ataStream\022:.google.analytics.admin.v1alp" - + "ha.GetIosAppDataStreamRequest\0320.google.a" - + "nalytics.admin.v1alpha.IosAppDataStream\"" - + "?\202\323\344\223\0022\0220/v1alpha/{name=properties/*/ios" - + "AppDataStreams/*}\332A\004name\022\260\001\n\026DeleteIosAp" - + "pDataStream\022=.google.analytics.admin.v1a" - + "lpha.DeleteIosAppDataStreamRequest\032\026.goo" - + "gle.protobuf.Empty\"?\202\323\344\223\0022*0/v1alpha/{na" - + "me=properties/*/iosAppDataStreams/*}\332A\004n" - + "ame\022\217\002\n\026UpdateIosAppDataStream\022=.google." - + "analytics.admin.v1alpha.UpdateIosAppData" - + "StreamRequest\0320.google.analytics.admin.v" - + "1alpha.IosAppDataStream\"\203\001\202\323\344\223\002[2D/v1alp" - + "ha/{ios_app_data_stream.name=properties/" - + "*/iosAppDataStreams/*}:\023ios_app_data_str" - + "eam\332A\037ios_app_data_stream,update_mask\022\365\001" - + "\n\026CreateIosAppDataStream\022=.google.analyt" - + "ics.admin.v1alpha.CreateIosAppDataStream" - + "Request\0320.google.analytics.admin.v1alpha" - + ".IosAppDataStream\"j\202\323\344\223\002G\"0/v1alpha/{par" - + "ent=properties/*}/iosAppDataStreams:\023ios" - + "_app_data_stream\332A\032parent,ios_app_data_s" - + "tream\022\327\001\n\025ListIosAppDataStreams\022<.google" - + ".analytics.admin.v1alpha.ListIosAppDataS" - + "treamsRequest\032=.google.analytics.admin.v" - + "1alpha.ListIosAppDataStreamsResponse\"A\202\323" - + "\344\223\0022\0220/v1alpha/{parent=properties/*}/ios" - + "AppDataStreams\332A\006parent\022\324\001\n\027GetAndroidAp" - + "pDataStream\022>.google.analytics.admin.v1a" - + "lpha.GetAndroidAppDataStreamRequest\0324.go" - + "ogle.analytics.admin.v1alpha.AndroidAppD" - + "ataStream\"C\202\323\344\223\0026\0224/v1alpha/{name=proper" - + "ties/*/androidAppDataStreams/*}\332A\004name\022\274" - + "\001\n\032DeleteAndroidAppDataStream\022A.google.a" - + "nalytics.admin.v1alpha.DeleteAndroidAppD" - + "ataStreamRequest\032\026.google.protobuf.Empty" - + "\"C\202\323\344\223\0026*4/v1alpha/{name=properties/*/an" - + "droidAppDataStreams/*}\332A\004name\022\253\002\n\032Update" - + "AndroidAppDataStream\022A.google.analytics." - + "admin.v1alpha.UpdateAndroidAppDataStream" - + "Request\0324.google.analytics.admin.v1alpha" - + ".AndroidAppDataStream\"\223\001\202\323\344\223\002g2L/v1alpha" - + "/{android_app_data_stream.name=propertie" - + "s/*/androidAppDataStreams/*}:\027android_ap" - + "p_data_stream\332A#android_app_data_stream," - + "update_mask\022\215\002\n\032CreateAndroidAppDataStre" - + "am\022A.google.analytics.admin.v1alpha.Crea" - + "teAndroidAppDataStreamRequest\0324.google.a" - + "nalytics.admin.v1alpha.AndroidAppDataStr" - + "eam\"v\202\323\344\223\002O\"4/v1alpha/{parent=properties" - + "/*}/androidAppDataStreams:\027android_app_d" - + "ata_stream\332A\036parent,android_app_data_str" - + "eam\022\347\001\n\031ListAndroidAppDataStreams\022@.goog" - + "le.analytics.admin.v1alpha.ListAndroidAp" - + "pDataStreamsRequest\032A.google.analytics.a" - + "dmin.v1alpha.ListAndroidAppDataStreamsRe" - + "sponse\"E\202\323\344\223\0026\0224/v1alpha/{parent=propert" - + "ies/*}/androidAppDataStreams\332A\006parent\022\376\001" - + "\n\036GetEnhancedMeasurementSettings\022E.googl" - + "e.analytics.admin.v1alpha.GetEnhancedMea" - + "surementSettingsRequest\032;.google.analyti", - "cs.admin.v1alpha.EnhancedMeasurementSett" - + "ings\"X\202\323\344\223\002K\022I/v1alpha/{name=properties/" - + "*/webDataStreams/*/enhancedMeasurementSe" - + "ttings}\332A\004name\022\350\002\n!UpdateEnhancedMeasure" - + "mentSettings\022H.google.analytics.admin.v1" - + "alpha.UpdateEnhancedMeasurementSettingsR" - + "equest\032;.google.analytics.admin.v1alpha." - + "EnhancedMeasurementSettings\"\273\001\202\323\344\223\002\210\0012g/" - + "v1alpha/{enhanced_measurement_settings.n" - + "ame=properties/*/webDataStreams/*/enhanc" - + "edMeasurementSettings}:\035enhanced_measure" - + "ment_settings\332A)enhanced_measurement_set" - + "tings,update_mask\022\331\001\n\022CreateFirebaseLink" - + "\0229.google.analytics.admin.v1alpha.Create" - + "FirebaseLinkRequest\032,.google.analytics.a" - + "dmin.v1alpha.FirebaseLink\"Z\202\323\344\223\002=\",/v1al" - + "pha/{parent=properties/*}/firebaseLinks:" - + "\rfirebase_link\332A\024parent,firebase_link\022\354\001" - + "\n\022UpdateFirebaseLink\0229.google.analytics." - + "admin.v1alpha.UpdateFirebaseLinkRequest\032" - + ",.google.analytics.admin.v1alpha.Firebas" - + "eLink\"m\202\323\344\223\002K2:/v1alpha/{firebase_link.n" - + "ame=properties/*/firebaseLinks/*}:\rfireb" - + "ase_link\332A\031firebase_link,update_mask\022\244\001\n" - + "\022DeleteFirebaseLink\0229.google.analytics.a" - + "dmin.v1alpha.DeleteFirebaseLinkRequest\032\026" - + ".google.protobuf.Empty\";\202\323\344\223\002.*,/v1alpha" - + "/{name=properties/*/firebaseLinks/*}\332A\004n" - + "ame\022\307\001\n\021ListFirebaseLinks\0228.google.analy" - + "tics.admin.v1alpha.ListFirebaseLinksRequ" - + "est\0329.google.analytics.admin.v1alpha.Lis" - + "tFirebaseLinksResponse\"=\202\323\344\223\002.\022,/v1alpha" - + "/{parent=properties/*}/firebaseLinks\332A\006p" - + "arent\022\306\001\n\020GetGlobalSiteTag\0227.google.anal" - + "ytics.admin.v1alpha.GetGlobalSiteTagRequ" - + "est\032-.google.analytics.admin.v1alpha.Glo" - + "balSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name=prope" - + "rties/*/webDataStreams/*/globalSiteTag}\332" - + "A\004name\022\341\001\n\023CreateGoogleAdsLink\022:.google." - + "analytics.admin.v1alpha.CreateGoogleAdsL" - + "inkRequest\032-.google.analytics.admin.v1al" - + "pha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alpha/{par" - + "ent=properties/*}/googleAdsLinks:\017google" - + "_ads_link\332A\026parent,google_ads_link\022\366\001\n\023U" - + "pdateGoogleAdsLink\022:.google.analytics.ad" - + "min.v1alpha.UpdateGoogleAdsLinkRequest\032-" - + ".google.analytics.admin.v1alpha.GoogleAd" - + "sLink\"t\202\323\344\223\002P2=/v1alpha/{google_ads_link" - + ".name=properties/*/googleAdsLinks/*}:\017go" - + "ogle_ads_link\332A\033google_ads_link,update_m" - + "ask\022\247\001\n\023DeleteGoogleAdsLink\022:.google.ana" - + "lytics.admin.v1alpha.DeleteGoogleAdsLink" - + "Request\032\026.google.protobuf.Empty\"<\202\323\344\223\002/*" - + "-/v1alpha/{name=properties/*/googleAdsLi" - + "nks/*}\332A\004name\022\313\001\n\022ListGoogleAdsLinks\0229.g" - + "oogle.analytics.admin.v1alpha.ListGoogle" - + "AdsLinksRequest\032:.google.analytics.admin" - + ".v1alpha.ListGoogleAdsLinksResponse\">\202\323\344" - + "\223\002/\022-/v1alpha/{parent=properties/*}/goog" - + "leAdsLinks\332A\006parent\022\313\001\n\026GetDataSharingSe" - + "ttings\022=.google.analytics.admin.v1alpha." - + "GetDataSharingSettingsRequest\0323.google.a" - + "nalytics.admin.v1alpha.DataSharingSettin" - + "gs\"=\202\323\344\223\0020\022./v1alpha/{name=accounts/*/da" - + "taSharingSettings}\332A\004name\032\374\001\312A\035analytics" - + "admin.googleapis.com\322A\330\001https://www.goog" - + "leapis.com/auth/analytics.edit,https://w" - + "ww.googleapis.com/auth/analytics.manage." - + "users,https://www.googleapis.com/auth/an" - + "alytics.manage.users.readonly,https://ww" - + "w.googleapis.com/auth/analytics.readonly" - + "B\200\001\n\"com.google.analytics.admin.v1alphaB" - + "\023AnalyticsAdminProtoP\001ZCgoogle.golang.or" - + "g/genproto/googleapis/analytics/admin/v1" - + "alpha;adminb\006proto3" + + "}/googleAdsLinks\332A\006parent\022\313\001\n\026GetDataSha" + + "ringSettings\022=.google.analytics.admin.v1" + + "alpha.GetDataSharingSettingsRequest\0323.go" + + "ogle.analytics.admin.v1alpha.DataSharing" + + "Settings\"=\202\323\344\223\0020\022./v1alpha/{name=account" + + "s/*/dataSharingSettings}\332A\004name\022\344\001\n\031Sear" + + "chChangeHistoryEvents\022@.google.analytics" + + ".admin.v1alpha.SearchChangeHistoryEvents" + + "Request\032A.google.analytics.admin.v1alpha" + + ".SearchChangeHistoryEventsResponse\"B\202\323\344\223" + + "\002<\"7/v1alpha/{account=accounts/*}:search" + + "ChangeHistoryEvents:\001*\032\374\001\312A\035analyticsadm" + + "in.googleapis.com\322A\330\001https://www.googlea" + + "pis.com/auth/analytics.edit,https://www." + + "googleapis.com/auth/analytics.manage.use" + + "rs,https://www.googleapis.com/auth/analy" + + "tics.manage.users.readonly,https://www.g" + + "oogleapis.com/auth/analytics.readonlyB\200\001" + + "\n\"com.google.analytics.admin.v1alphaB\023An" + + "alyticsAdminProtoP\001ZCgoogle.golang.org/g" + + "enproto/googleapis/analytics/admin/v1alp" + + "ha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1069,16 +1069,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IosAppDataStream", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor, - new java.lang.String[] { - "IosAppDataStream", "Parent", - }); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(37); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor, @@ -1086,7 +1078,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(38); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor, @@ -1094,7 +1086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IosAppDataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(39); internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor, @@ -1102,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(40); internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor, @@ -1110,23 +1102,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(41); internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor, new java.lang.String[] { "AndroidAppDataStream", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor, - new java.lang.String[] { - "AndroidAppDataStream", "Parent", - }); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(42); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor, @@ -1134,7 +1118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(43); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor, @@ -1142,7 +1126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndroidAppDataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, @@ -1150,7 +1134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, @@ -1158,7 +1142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnhancedMeasurementSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, @@ -1166,7 +1150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirebaseLink", }); internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor, @@ -1174,7 +1158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -1182,7 +1166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -1190,7 +1174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -1198,7 +1182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -1206,7 +1190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -1214,7 +1198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -1222,7 +1206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -1230,7 +1214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -1238,7 +1222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -1246,7 +1230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -1254,7 +1238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -1262,13 +1246,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, new java.lang.String[] { "AccountSummaries", "NextPageToken", }); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, + new java.lang.String[] { + "Account", + "Property", + "ResourceType", + "Action", + "ActorEmail", + "EarliestChangeTime", + "LatestChangeTime", + "PageSize", + "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, + new java.lang.String[] { + "ChangeHistoryEvents", "NextPageToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java new file mode 100644 index 00000000..e2bcf575 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -0,0 +1,4445 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A description of a change to a single Google Analytics resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ +public final class ChangeHistoryChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + ChangeHistoryChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryChange.newBuilder() to construct. + private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryChange() { + resource_ = ""; + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryChange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryChange( + 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(); + + resource_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + subBuilder = null; + if (resourceBeforeChange_ != null) { + subBuilder = resourceBeforeChange_.toBuilder(); + } + resourceBeforeChange_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceBeforeChange_); + resourceBeforeChange_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + subBuilder = null; + if (resourceAfterChange_ != null) { + subBuilder = resourceAfterChange_.toBuilder(); + } + resourceAfterChange_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceAfterChange_); + resourceAfterChange_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + public interface ChangeHistoryResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + com.google.analytics.admin.v1alpha.Account getAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + com.google.analytics.admin.v1alpha.Property getProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); + + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return Whether the webDataStream field is set. + */ + boolean hasWebDataStream(); + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return The webDataStream. + */ + com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return Whether the androidAppDataStream field is set. + */ + boolean hasAndroidAppDataStream(); + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return The androidAppDataStream. + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return Whether the iosAppDataStream field is set. + */ + boolean hasIosAppDataStream(); + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return The iosAppDataStream. + */ + com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase + getResourceCase(); + } + /** + * + * + *
+   * A snapshot of a resource as before or after the result of a change in
+   * change history.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class ChangeHistoryResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + ChangeHistoryResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryResource.newBuilder() to construct. + private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryResource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryResource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryResource( + 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.Account.Builder subBuilder = null; + if (resourceCase_ == 1) { + subBuilder = ((com.google.analytics.admin.v1alpha.Account) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.Account) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 1; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.Property.Builder subBuilder = null; + if (resourceCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.Property) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.Property) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; + if (resourceCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.WebDataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.WebDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; + if (resourceCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 4; + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; + if (resourceCase_ == 5) { + subBuilder = + ((com.google.analytics.admin.v1alpha.IosAppDataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 5; + break; + } + case 50: + { + com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; + if (resourceCase_ == 6) { + subBuilder = + ((com.google.analytics.admin.v1alpha.FirebaseLink) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 6; + break; + } + case 58: + { + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder subBuilder = null; + if (resourceCase_ == 7) { + subBuilder = + ((com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public enum ResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCOUNT(1), + PROPERTY(2), + WEB_DATA_STREAM(3), + ANDROID_APP_DATA_STREAM(4), + IOS_APP_DATA_STREAM(5), + FIREBASE_LINK(6), + GOOGLE_ADS_LINK(7), + RESOURCE_NOT_SET(0); + private final int value; + + private ResourceCase(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 ResourceCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceCase forNumber(int value) { + switch (value) { + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 3: + return WEB_DATA_STREAM; + case 4: + return ANDROID_APP_DATA_STREAM; + case 5: + return IOS_APP_DATA_STREAM; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 0: + return RESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + + public static final int WEB_DATA_STREAM_FIELD_NUMBER = 3; + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return Whether the webDataStream field is set. + */ + @java.lang.Override + public boolean hasWebDataStream() { + return resourceCase_ == 3; + } + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return The webDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + + public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 4; + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return Whether the androidAppDataStream field is set. + */ + @java.lang.Override + public boolean hasAndroidAppDataStream() { + return resourceCase_ == 4; + } + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return The androidAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + + public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 5; + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return Whether the iosAppDataStream field is set. + */ + @java.lang.Override + public boolean hasIosAppDataStream() { + return resourceCase_ == 5; + } + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return The iosAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 6; + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7; + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceCase_ == 1) { + output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + } + if (resourceCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + } + if (resourceCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + } + if (resourceCase_ == 6) { + output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + } + if (resourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + } + if (resourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + } + if (resourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + 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.ChangeHistoryChange.ChangeHistoryResource)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) obj; + + if (!getResourceCase().equals(other.getResourceCase())) return false; + switch (resourceCase_) { + case 1: + if (!getAccount().equals(other.getAccount())) return false; + break; + case 2: + if (!getProperty().equals(other.getProperty())) return false; + break; + case 3: + if (!getWebDataStream().equals(other.getWebDataStream())) return false; + break; + case 4: + if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; + break; + case 5: + if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; + break; + case 6: + if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; + break; + case 7: + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) 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 (resourceCase_) { + case 1: + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + break; + case 2: + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + break; + case 3: + hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getWebDataStream().hashCode(); + break; + case 4: + hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppDataStream().hashCode(); + break; + case 5: + hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getIosAppDataStream().hashCode(); + break; + case 6: + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + break; + case 7: + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource 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 snapshot of a resource as before or after the result of a change in
+     * change history.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.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(); + resourceCase_ = 0; + resource_ = null; + 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_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource build() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(this); + if (resourceCase_ == 1) { + if (accountBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = accountBuilder_.build(); + } + } + if (resourceCase_ == 2) { + if (propertyBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = propertyBuilder_.build(); + } + } + if (resourceCase_ == 3) { + if (webDataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = webDataStreamBuilder_.build(); + } + } + if (resourceCase_ == 4) { + if (androidAppDataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = androidAppDataStreamBuilder_.build(); + } + } + if (resourceCase_ == 5) { + if (iosAppDataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = iosAppDataStreamBuilder_.build(); + } + } + if (resourceCase_ == 6) { + if (firebaseLinkBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = firebaseLinkBuilder_.build(); + } + } + if (resourceCase_ == 7) { + if (googleAdsLinkBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = googleAdsLinkBuilder_.build(); + } + } + result.resourceCase_ = resourceCase_; + 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.ChangeHistoryChange.ChangeHistoryResource) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other) { + if (other + == com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) return this; + switch (other.getResourceCase()) { + case ACCOUNT: + { + mergeAccount(other.getAccount()); + break; + } + case PROPERTY: + { + mergeProperty(other.getProperty()); + break; + } + case WEB_DATA_STREAM: + { + mergeWebDataStream(other.getWebDataStream()); + break; + } + case ANDROID_APP_DATA_STREAM: + { + mergeAndroidAppDataStream(other.getAndroidAppDataStream()); + break; + } + case IOS_APP_DATA_STREAM: + { + mergeIosAppDataStream(other.getIosAppDataStream()); + break; + } + case FIREBASE_LINK: + { + mergeFirebaseLink(other.getFirebaseLink()); + break; + } + case GOOGLE_ADS_LINK: + { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + break; + } + case RESOURCE_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.ChangeHistoryChange.ChangeHistoryResource parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public Builder clearResource() { + resourceCase_ = 0; + resource_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } else { + if (resourceCase_ == 1) { + return accountBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + accountBuilder_.setMessage(value); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount( + com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (resourceCase_ == 1 + && resource_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Account.newBuilder( + (com.google.analytics.admin.v1alpha.Account) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 1) { + accountBuilder_.mergeFrom(value); + } + accountBuilder_.setMessage(value); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder clearAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + } + accountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if ((resourceCase_ == 1) && (accountBuilder_ != null)) { + return accountBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + if (!(resourceCase_ == 1)) { + resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + (com.google.analytics.admin.v1alpha.Account) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 1; + onChanged(); + ; + return accountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } else { + if (resourceCase_ == 2) { + return propertyBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + propertyBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder setProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2 + && resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Property.newBuilder( + (com.google.analytics.admin.v1alpha.Property) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 2) { + propertyBuilder_.mergeFrom(value); + } + propertyBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + } + propertyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(resourceCase_ == 2)) { + resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + (com.google.analytics.admin.v1alpha.Property) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 2; + onChanged(); + ; + return propertyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + webDataStreamBuilder_; + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return Whether the webDataStream field is set. + */ + @java.lang.Override + public boolean hasWebDataStream() { + return resourceCase_ == 3; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return The webDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + if (webDataStreamBuilder_ == null) { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 3) { + return webDataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + webDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 3; + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder setWebDataStream( + com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + webDataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 3; + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (resourceCase_ == 3 + && resource_ + != com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.WebDataStream.newBuilder( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 3) { + webDataStreamBuilder_.mergeFrom(value); + } + webDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 3; + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder clearWebDataStream() { + if (webDataStreamBuilder_ == null) { + if (resourceCase_ == 3) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 3) { + resourceCase_ = 0; + resource_ = null; + } + webDataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { + return getWebDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + if ((resourceCase_ == 3) && (webDataStreamBuilder_ != null)) { + return webDataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + getWebDataStreamFieldBuilder() { + if (webDataStreamBuilder_ == null) { + if (!(resourceCase_ == 3)) { + resource_ = com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + webDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 3; + onChanged(); + ; + return webDataStreamBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + androidAppDataStreamBuilder_; + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return Whether the androidAppDataStream field is set. + */ + @java.lang.Override + public boolean hasAndroidAppDataStream() { + return resourceCase_ == 4; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return The androidAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 4) { + return androidAppDataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 4; + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 4; + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder mergeAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (resourceCase_ == 4 + && resource_ + != com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 4) { + androidAppDataStreamBuilder_.mergeFrom(value); + } + androidAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 4; + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder clearAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + if (resourceCase_ == 4) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 4) { + resourceCase_ = 0; + resource_ = null; + } + androidAppDataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + getAndroidAppDataStreamBuilder() { + return getAndroidAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + if ((resourceCase_ == 4) && (androidAppDataStreamBuilder_ != null)) { + return androidAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + getAndroidAppDataStreamFieldBuilder() { + if (androidAppDataStreamBuilder_ == null) { + if (!(resourceCase_ == 4)) { + resource_ = + com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + androidAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 4; + onChanged(); + ; + return androidAppDataStreamBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + iosAppDataStreamBuilder_; + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return Whether the iosAppDataStream field is set. + */ + @java.lang.Override + public boolean hasIosAppDataStream() { + return resourceCase_ == 5; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return The iosAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 5) { + return iosAppDataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder setIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 5; + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder setIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 5; + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder mergeIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (resourceCase_ == 5 + && resource_ + != com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 5) { + iosAppDataStreamBuilder_.mergeFrom(value); + } + iosAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 5; + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder clearIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + if (resourceCase_ == 5) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 5) { + resourceCase_ = 0; + resource_ = null; + } + iosAppDataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder + getIosAppDataStreamBuilder() { + return getIosAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + if ((resourceCase_ == 5) && (iosAppDataStreamBuilder_ != null)) { + return iosAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + getIosAppDataStreamFieldBuilder() { + if (iosAppDataStreamBuilder_ == null) { + if (!(resourceCase_ == 5)) { + resource_ = com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + iosAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 5; + onChanged(); + ; + return iosAppDataStreamBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + firebaseLinkBuilder_; + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } else { + if (resourceCase_ == 6) { + return firebaseLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(value); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink( + com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6 + && resource_ + != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder( + (com.google.analytics.admin.v1alpha.FirebaseLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 6) { + firebaseLinkBuilder_.mergeFrom(value); + } + firebaseLinkBuilder_.setMessage(value); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder clearFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + } + firebaseLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) { + return firebaseLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + getFirebaseLinkFieldBuilder() { + if (firebaseLinkBuilder_ == null) { + if (!(resourceCase_ == 6)) { + resource_ = com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + firebaseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.FirebaseLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 6; + onChanged(); + ; + return firebaseLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } else { + if (resourceCase_ == 7) { + return googleAdsLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(value); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7 + && resource_ + != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 7) { + googleAdsLinkBuilder_.mergeFrom(value); + } + googleAdsLinkBuilder_.setMessage(value); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder clearGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + } + googleAdsLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + if (!(resourceCase_ == 7)) { + resource_ = com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 7; + onChanged(); + ; + return googleAdsLinkBuilder_; + } + + @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.ChangeHistoryChange.ChangeHistoryResource) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeHistoryResource(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.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_; + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.valueOf(action_); + return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; + } + + public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + @java.lang.Override + public boolean hasResourceBeforeChange() { + return resourceBeforeChange_ != null; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + return getResourceBeforeChange(); + } + + public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + @java.lang.Override + public boolean hasResourceAfterChange() { + return resourceAfterChange_ != null; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + return getResourceAfterChange(); + } + + 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 (!getResourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (action_ + != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + if (resourceBeforeChange_ != null) { + output.writeMessage(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + output.writeMessage(4, getResourceAfterChange()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (action_ + != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + if (resourceBeforeChange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceAfterChange()); + } + 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.ChangeHistoryChange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryChange other = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange) obj; + + if (!getResource().equals(other.getResource())) return false; + if (action_ != other.action_) return false; + if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false; + if (hasResourceBeforeChange()) { + if (!getResourceBeforeChange().equals(other.getResourceBeforeChange())) return false; + } + if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false; + if (hasResourceAfterChange()) { + if (!getResourceAfterChange().equals(other.getResourceAfterChange())) 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) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasResourceBeforeChange()) { + hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceBeforeChange().hashCode(); + } + if (hasResourceAfterChange()) { + hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceAfterChange().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.ChangeHistoryChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.ChangeHistoryChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.ChangeHistoryChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.ChangeHistoryChange 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.ChangeHistoryChange 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.ChangeHistoryChange 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 description of a change to a single Google Analytics resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryChange.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(); + resource_ = ""; + + action_ = 0; + + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = null; + } else { + resourceBeforeChange_ = null; + resourceBeforeChangeBuilder_ = null; + } + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = null; + } else { + resourceAfterChange_ = null; + resourceAfterChangeBuilder_ = null; + } + 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_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange build() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange result = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange(this); + result.resource_ = resource_; + result.action_ = action_; + if (resourceBeforeChangeBuilder_ == null) { + result.resourceBeforeChange_ = resourceBeforeChange_; + } else { + result.resourceBeforeChange_ = resourceBeforeChangeBuilder_.build(); + } + if (resourceAfterChangeBuilder_ == null) { + result.resourceAfterChange_ = resourceAfterChange_; + } else { + result.resourceAfterChange_ = resourceAfterChangeBuilder_.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.ChangeHistoryChange) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryChange other) { + if (other == com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()) + return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasResourceBeforeChange()) { + mergeResourceBeforeChange(other.getResourceBeforeChange()); + } + if (other.hasResourceAfterChange()) { + mergeResourceAfterChange(other.getResourceAfterChange()); + } + 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.ChangeHistoryChange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + + action_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.valueOf(action_); + return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceBeforeChangeBuilder_; + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + public boolean hasResourceBeforeChange() { + return resourceBeforeChangeBuilder_ != null || resourceBeforeChange_ != null; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + if (resourceBeforeChangeBuilder_ == null) { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } else { + return resourceBeforeChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceBeforeChange_ = value; + onChanged(); + } else { + resourceBeforeChangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = builderForValue.build(); + onChanged(); + } else { + resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder mergeResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (resourceBeforeChange_ != null) { + resourceBeforeChange_ = + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .newBuilder(resourceBeforeChange_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceBeforeChange_ = value; + } + onChanged(); + } else { + resourceBeforeChangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder clearResourceBeforeChange() { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = null; + onChanged(); + } else { + resourceBeforeChange_ = null; + resourceBeforeChangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceBeforeChangeBuilder() { + + onChanged(); + return getResourceBeforeChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + if (resourceBeforeChangeBuilder_ != null) { + return resourceBeforeChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceBeforeChangeFieldBuilder() { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceBeforeChange(), getParentForChildren(), isClean()); + resourceBeforeChange_ = null; + } + return resourceBeforeChangeBuilder_; + } + + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceAfterChangeBuilder_; + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + public boolean hasResourceAfterChange() { + return resourceAfterChangeBuilder_ != null || resourceAfterChange_ != null; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + if (resourceAfterChangeBuilder_ == null) { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } else { + return resourceAfterChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceAfterChange_ = value; + onChanged(); + } else { + resourceAfterChangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = builderForValue.build(); + onChanged(); + } else { + resourceAfterChangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder mergeResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (resourceAfterChange_ != null) { + resourceAfterChange_ = + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .newBuilder(resourceAfterChange_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceAfterChange_ = value; + } + onChanged(); + } else { + resourceAfterChangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder clearResourceAfterChange() { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = null; + onChanged(); + } else { + resourceAfterChange_ = null; + resourceAfterChangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceAfterChangeBuilder() { + + onChanged(); + return getResourceAfterChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + if (resourceAfterChangeBuilder_ != null) { + return resourceAfterChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceAfterChangeFieldBuilder() { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceAfterChange(), getParentForChildren(), isClean()); + resourceAfterChange_ = null; + } + return resourceAfterChangeBuilder_; + } + + @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.ChangeHistoryChange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryChange(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeHistoryChange(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.ChangeHistoryChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java new file mode 100644 index 00000000..bb3c0817 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java @@ -0,0 +1,167 @@ +/* + * 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 ChangeHistoryChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + com.google.analytics.admin.v1alpha.ActionType getAction(); + + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + boolean hasResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder(); + + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + boolean hasResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java new file mode 100644 index 00000000..f8ba7c9e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java @@ -0,0 +1,1883 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A set of changes within a Google Analytics account or its child properties
+ * that resulted from the same cause. Common causes would be updates made in the
+ * Google Analytics UI, changes from customer support, or automatic Google
+ * Analytics system changes.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ +public final class ChangeHistoryEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + ChangeHistoryEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryEvent.newBuilder() to construct. + private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryEvent() { + id_ = ""; + actorType_ = 0; + userActorEmail_ = ""; + changes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryEvent( + 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(); + + id_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (changeTime_ != null) { + subBuilder = changeTime_.toBuilder(); + } + changeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(changeTime_); + changeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + actorType_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + userActorEmail_ = s; + break; + } + case 40: + { + changesFiltered_ = input.readBool(); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changes_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ChangeHistoryChange>(); + mutable_bitField0_ |= 0x00000001; + } + changes_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + } + 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_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp changeTime_; + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + @java.lang.Override + public boolean hasChangeTime() { + return changeTime_ != null; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getChangeTime() { + return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + return getChangeTime(); + } + + public static final int ACTOR_TYPE_FIELD_NUMBER = 3; + private int actorType_; + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActorType getActorType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActorType result = + com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_); + return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; + } + + public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; + private volatile java.lang.Object userActorEmail_; + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + @java.lang.Override + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + 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(); + userActorEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGES_FILTERED_FIELD_NUMBER = 5; + private boolean changesFiltered_; + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + + public static final int CHANGES_FIELD_NUMBER = 6; + private java.util.List changes_; + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List getChangesList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List + getChangesOrBuilderList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public int getChangesCount() { + return changes_.size(); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { + return changes_.get(index); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + return changes_.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 (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (changeTime_ != null) { + output.writeMessage(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, actorType_); + } + if (!getUserActorEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); + } + if (changesFiltered_ != false) { + output.writeBool(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + output.writeMessage(6, changes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (changeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, actorType_); + } + if (!getUserActorEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); + } + if (changesFiltered_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, changes_.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.ChangeHistoryEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryEvent other = + (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) obj; + + if (!getId().equals(other.getId())) return false; + if (hasChangeTime() != other.hasChangeTime()) return false; + if (hasChangeTime()) { + if (!getChangeTime().equals(other.getChangeTime())) return false; + } + if (actorType_ != other.actorType_) return false; + if (!getUserActorEmail().equals(other.getUserActorEmail())) return false; + if (getChangesFiltered() != other.getChangesFiltered()) return false; + if (!getChangesList().equals(other.getChangesList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasChangeTime()) { + hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getChangeTime().hashCode(); + } + hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + actorType_; + hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getUserActorEmail().hashCode(); + hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChangesFiltered()); + if (getChangesCount() > 0) { + hash = (37 * hash) + CHANGES_FIELD_NUMBER; + hash = (53 * hash) + getChangesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.ChangeHistoryEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.ChangeHistoryEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.ChangeHistoryEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.ChangeHistoryEvent 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.ChangeHistoryEvent 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.ChangeHistoryEvent 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 set of changes within a Google Analytics account or its child properties
+   * that resulted from the same cause. Common causes would be updates made in the
+   * Google Analytics UI, changes from customer support, or automatic Google
+   * Analytics system changes.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChangesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (changeTimeBuilder_ == null) { + changeTime_ = null; + } else { + changeTime_ = null; + changeTimeBuilder_ = null; + } + actorType_ = 0; + + userActorEmail_ = ""; + + changesFiltered_ = false; + + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changesBuilder_.clear(); + } + 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_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent build() { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = + new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + if (changeTimeBuilder_ == null) { + result.changeTime_ = changeTime_; + } else { + result.changeTime_ = changeTimeBuilder_.build(); + } + result.actorType_ = actorType_; + result.userActorEmail_ = userActorEmail_; + result.changesFiltered_ = changesFiltered_; + if (changesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changes_ = changes_; + } else { + result.changes_ = changesBuilder_.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.ChangeHistoryEvent) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryEvent other) { + if (other == com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasChangeTime()) { + mergeChangeTime(other.getChangeTime()); + } + if (other.actorType_ != 0) { + setActorTypeValue(other.getActorTypeValue()); + } + if (!other.getUserActorEmail().isEmpty()) { + userActorEmail_ = other.userActorEmail_; + onChanged(); + } + if (other.getChangesFiltered() != false) { + setChangesFiltered(other.getChangesFiltered()); + } + if (changesBuilder_ == null) { + if (!other.changes_.isEmpty()) { + if (changes_.isEmpty()) { + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangesIsMutable(); + changes_.addAll(other.changes_); + } + onChanged(); + } + } else { + if (!other.changes_.isEmpty()) { + if (changesBuilder_.isEmpty()) { + changesBuilder_.dispose(); + changesBuilder_ = null; + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000001); + changesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangesFieldBuilder() + : null; + } else { + changesBuilder_.addAllMessages(other.changes_); + } + } + } + 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.ChangeHistoryEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp changeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + changeTimeBuilder_; + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + public boolean hasChangeTime() { + return changeTimeBuilder_ != null || changeTime_ != null; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + public com.google.protobuf.Timestamp getChangeTime() { + if (changeTimeBuilder_ == null) { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } else { + return changeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + changeTime_ = value; + onChanged(); + } else { + changeTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (changeTimeBuilder_ == null) { + changeTime_ = builderForValue.build(); + onChanged(); + } else { + changeTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder mergeChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (changeTime_ != null) { + changeTime_ = + com.google.protobuf.Timestamp.newBuilder(changeTime_).mergeFrom(value).buildPartial(); + } else { + changeTime_ = value; + } + onChanged(); + } else { + changeTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder clearChangeTime() { + if (changeTimeBuilder_ == null) { + changeTime_ = null; + onChanged(); + } else { + changeTime_ = null; + changeTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { + + onChanged(); + return getChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + if (changeTimeBuilder_ != null) { + return changeTimeBuilder_.getMessageOrBuilder(); + } else { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getChangeTimeFieldBuilder() { + if (changeTimeBuilder_ == null) { + changeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getChangeTime(), getParentForChildren(), isClean()); + changeTime_ = null; + } + return changeTimeBuilder_; + } + + private int actorType_ = 0; + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @param value The enum numeric value on the wire for actorType to set. + * @return This builder for chaining. + */ + public Builder setActorTypeValue(int value) { + + actorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActorType getActorType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActorType result = + com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_); + return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @param value The actorType to set. + * @return This builder for chaining. + */ + public Builder setActorType(com.google.analytics.admin.v1alpha.ActorType value) { + if (value == null) { + throw new NullPointerException(); + } + + actorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearActorType() { + + actorType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object userActorEmail_ = ""; + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userActorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userActorEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return This builder for chaining. + */ + public Builder clearUserActorEmail() { + + userActorEmail_ = getDefaultInstance().getUserActorEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The bytes for userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userActorEmail_ = value; + onChanged(); + return this; + } + + private boolean changesFiltered_; + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @param value The changesFiltered to set. + * @return This builder for chaining. + */ + public Builder setChangesFiltered(boolean value) { + + changesFiltered_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return This builder for chaining. + */ + public Builder clearChangesFiltered() { + + changesFiltered_ = false; + onChanged(); + return this; + } + + private java.util.List changes_ = + java.util.Collections.emptyList(); + + private void ensureChangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changes_ = + new java.util.ArrayList( + changes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> + changesBuilder_; + + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List getChangesList() { + if (changesBuilder_ == null) { + return java.util.Collections.unmodifiableList(changes_); + } else { + return changesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public int getChangesCount() { + if (changesBuilder_ == null) { + return changes_.size(); + } else { + return changesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.set(index, value); + onChanged(); + } else { + changesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.set(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges(com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(value); + onChanged(); + } else { + changesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(index, value); + onChanged(); + } else { + changesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addAllChanges( + java.lang.Iterable + values) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changes_); + onChanged(); + } else { + changesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder clearChanges() { + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder removeChanges(int index) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.remove(index); + onChanged(); + } else { + changesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder getChangesBuilder( + int index) { + return getChangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesOrBuilderList() { + if (changesBuilder_ != null) { + return changesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changes_); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder() { + return getChangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder( + int index) { + return getChangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesBuilderList() { + return getChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> + getChangesFieldBuilder() { + if (changesBuilder_ == null) { + changesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>( + changes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + changes_ = null; + } + return changesBuilder_; + } + + @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.ChangeHistoryEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryEvent) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeHistoryEvent(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.ChangeHistoryEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java new file mode 100644 index 00000000..0229a14c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java @@ -0,0 +1,210 @@ +/* + * 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 ChangeHistoryEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + boolean hasChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + com.google.protobuf.Timestamp getChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder(); + + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + int getActorTypeValue(); + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + com.google.analytics.admin.v1alpha.ActorType getActorType(); + + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + java.lang.String getUserActorEmail(); + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + com.google.protobuf.ByteString getUserActorEmailBytes(); + + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + boolean getChangesFiltered(); + + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + java.util.List getChangesList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + int getChangesCount(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + java.util.List + getChangesOrBuilderList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder(int index); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java new file mode 100644 index 00000000..0c12ac82 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -0,0 +1,289 @@ +/* + * 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 resources whose changes may be returned from change history.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ChangeHistoryResourceType} + */ +public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + ACCOUNT(1), + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + PROPERTY(2), + /** + * + * + *
+   * WebDataStream resource
+   * 
+ * + * WEB_DATA_STREAM = 3; + */ + WEB_DATA_STREAM(3), + /** + * + * + *
+   * AndroidAppDataStream resource
+   * 
+ * + * ANDROID_APP_DATA_STREAM = 4; + */ + ANDROID_APP_DATA_STREAM(4), + /** + * + * + *
+   * IosAppDataStream resource
+   * 
+ * + * IOS_APP_DATA_STREAM = 5; + */ + IOS_APP_DATA_STREAM(5), + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + FIREBASE_LINK(6), + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + GOOGLE_ADS_LINK(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + public static final int ACCOUNT_VALUE = 1; + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + public static final int PROPERTY_VALUE = 2; + /** + * + * + *
+   * WebDataStream resource
+   * 
+ * + * WEB_DATA_STREAM = 3; + */ + public static final int WEB_DATA_STREAM_VALUE = 3; + /** + * + * + *
+   * AndroidAppDataStream resource
+   * 
+ * + * ANDROID_APP_DATA_STREAM = 4; + */ + public static final int ANDROID_APP_DATA_STREAM_VALUE = 4; + /** + * + * + *
+   * IosAppDataStream resource
+   * 
+ * + * IOS_APP_DATA_STREAM = 5; + */ + public static final int IOS_APP_DATA_STREAM_VALUE = 5; + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + public static final int FIREBASE_LINK_VALUE = 6; + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + public static final int GOOGLE_ADS_LINK_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 ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) { + switch (value) { + case 0: + return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 3: + return WEB_DATA_STREAM; + case 4: + return ANDROID_APP_DATA_STREAM; + case 5: + return IOS_APP_DATA_STREAM; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + 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 ChangeHistoryResourceType findValueByNumber(int number) { + return ChangeHistoryResourceType.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(4); + } + + private static final ChangeHistoryResourceType[] VALUES = values(); + + public static ChangeHistoryResourceType 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 ChangeHistoryResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChangeHistoryResourceType) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java deleted file mode 100644 index 37153637..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java +++ /dev/null @@ -1,980 +0,0 @@ -/* - * 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 CreateAndroidAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} - */ -public final class CreateAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - CreateAndroidAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateAndroidAppDataStreamRequest.newBuilder() to construct. - private CreateAndroidAppDataStreamRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateAndroidAppDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateAndroidAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateAndroidAppDataStreamRequest( - 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.AndroidAppDataStream.Builder subBuilder = null; - if (androidAppDataStream_ != null) { - subBuilder = androidAppDataStream_.toBuilder(); - } - androidAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(androidAppDataStream_); - androidAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); - } - - public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - @java.lang.Override - public boolean hasAndroidAppDataStream() { - return androidAppDataStream_ != null; - } - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - return getAndroidAppDataStream(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (androidAppDataStream_ != null) { - output.writeMessage(1, getAndroidAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (androidAppDataStream_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAndroidAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) obj; - - if (hasAndroidAppDataStream() != other.hasAndroidAppDataStream()) return false; - if (hasAndroidAppDataStream()) { - if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; - } - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAndroidAppDataStream()) { - hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppDataStream().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - 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.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest 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 CreateAndroidAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.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 (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = null; - } else { - androidAppDataStream_ = null; - androidAppDataStreamBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(this); - if (androidAppDataStreamBuilder_ == null) { - result.androidAppDataStream_ = androidAppDataStream_; - } else { - result.androidAppDataStream_ = androidAppDataStreamBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - .getDefaultInstance()) return this; - if (other.hasAndroidAppDataStream()) { - mergeAndroidAppDataStream(other.getAndroidAppDataStream()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - androidAppDataStreamBuilder_; - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - public boolean hasAndroidAppDataStream() { - return androidAppDataStreamBuilder_ != null || androidAppDataStream_ != null; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } else { - return androidAppDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - androidAppDataStream_ = value; - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = builderForValue.build(); - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (androidAppDataStream_ != null) { - androidAppDataStream_ = - com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( - androidAppDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - androidAppDataStream_ = value; - } - onChanged(); - } else { - androidAppDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = null; - onChanged(); - } else { - androidAppDataStream_ = null; - androidAppDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - getAndroidAppDataStreamBuilder() { - - onChanged(); - return getAndroidAppDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - if (androidAppDataStreamBuilder_ != null) { - return androidAppDataStreamBuilder_.getMessageOrBuilder(); - } else { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - getAndroidAppDataStreamFieldBuilder() { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( - getAndroidAppDataStream(), getParentForChildren(), isClean()); - androidAppDataStream_ = null; - } - return androidAppDataStreamBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAndroidAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAndroidAppDataStreamRequest(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.CreateAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java deleted file mode 100644 index c2f5b915..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 CreateAndroidAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - boolean hasAndroidAppDataStream(); - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java deleted file mode 100644 index 744017da..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java +++ /dev/null @@ -1,972 +0,0 @@ -/* - * 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 CreateIosAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} - */ -public final class CreateIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - CreateIosAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateIosAppDataStreamRequest.newBuilder() to construct. - private CreateIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateIosAppDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateIosAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateIosAppDataStreamRequest( - 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.IosAppDataStream.Builder subBuilder = null; - if (iosAppDataStream_ != null) { - subBuilder = iosAppDataStream_.toBuilder(); - } - iosAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(iosAppDataStream_); - iosAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); - } - - public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - @java.lang.Override - public boolean hasIosAppDataStream() { - return iosAppDataStream_ != null; - } - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - return getIosAppDataStream(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (iosAppDataStream_ != null) { - output.writeMessage(1, getIosAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (iosAppDataStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIosAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) obj; - - if (hasIosAppDataStream() != other.hasIosAppDataStream()) return false; - if (hasIosAppDataStream()) { - if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; - } - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIosAppDataStream()) { - hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getIosAppDataStream().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest 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 CreateIosAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.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 (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = null; - } else { - iosAppDataStream_ = null; - iosAppDataStreamBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(this); - if (iosAppDataStreamBuilder_ == null) { - result.iosAppDataStream_ = iosAppDataStream_; - } else { - result.iosAppDataStream_ = iosAppDataStreamBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.getDefaultInstance()) - return this; - if (other.hasIosAppDataStream()) { - mergeIosAppDataStream(other.getIosAppDataStream()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - iosAppDataStreamBuilder_; - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - public boolean hasIosAppDataStream() { - return iosAppDataStreamBuilder_ != null || iosAppDataStream_ != null; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } else { - return iosAppDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setIosAppDataStream(com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - iosAppDataStream_ = value; - onChanged(); - } else { - iosAppDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = builderForValue.build(); - onChanged(); - } else { - iosAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (iosAppDataStream_ != null) { - iosAppDataStream_ = - com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(iosAppDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - iosAppDataStream_ = value; - } - onChanged(); - } else { - iosAppDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = null; - onChanged(); - } else { - iosAppDataStream_ = null; - iosAppDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder - getIosAppDataStreamBuilder() { - - onChanged(); - return getIosAppDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - if (iosAppDataStreamBuilder_ != null) { - return iosAppDataStreamBuilder_.getMessageOrBuilder(); - } else { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - getIosAppDataStreamFieldBuilder() { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( - getIosAppDataStream(), getParentForChildren(), isClean()); - iosAppDataStream_ = null; - } - return iosAppDataStreamBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateIosAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateIosAppDataStreamRequest(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.CreateIosAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java deleted file mode 100644 index 7ac72dcd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 CreateIosAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - boolean hasIosAppDataStream(); - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 0a4fe0dd..9426b64f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -147,9 +147,34 @@ private Property( currencyCode_ = s; break; } - case 72: + case 90: { - deleted_ = input.readBool(); + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -489,7 +514,7 @@ public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory() * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -498,7 +523,7 @@ public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory()
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @@ -518,7 +543,7 @@ public java.lang.String getTimeZone() { * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -527,7 +552,7 @@ public java.lang.String getTimeZone() {
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @@ -597,23 +622,111 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } - public static final int DELETED_FIELD_NUMBER = 9; - private boolean deleted_; + public static final int DELETE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not set, then this
+   * property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not set, then this
+   * property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not set, then this
+   * property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp expireTime_; /** * * *
-   * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-   * are excluded from List results unless specifically requested.
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
    * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
* - * @return The deleted. + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public boolean getDeleted() { - return deleted_; + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); } private byte memoizedIsInitialized = -1; @@ -656,8 +769,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getCurrencyCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); } - if (deleted_ != false) { - output.writeBool(9, deleted_); + if (deleteTime_ != null) { + output.writeMessage(11, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(12, getExpireTime()); } unknownFields.writeTo(output); } @@ -694,8 +810,11 @@ public int getSerializedSize() { if (!getCurrencyCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); } - if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, deleted_); + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getExpireTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -727,7 +846,14 @@ public boolean equals(final java.lang.Object obj) { if (industryCategory_ != other.industryCategory_) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; - if (getDeleted() != other.getDeleted()) return false; + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -759,8 +885,14 @@ public int hashCode() { hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); - hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -930,8 +1062,18 @@ public Builder clear() { currencyCode_ = ""; - deleted_ = false; - + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } return this; } @@ -975,7 +1117,16 @@ public com.google.analytics.admin.v1alpha.Property buildPartial() { result.industryCategory_ = industryCategory_; result.timeZone_ = timeZone_; result.currencyCode_ = currencyCode_; - result.deleted_ = deleted_; + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } onBuilt(); return result; } @@ -1054,8 +1205,11 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { currencyCode_ = other.currencyCode_; onChanged(); } - if (other.getDeleted() != false) { - setDeleted(other.getDeleted()); + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1939,7 +2093,7 @@ public Builder clearIndustryCategory() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -1948,7 +2102,7 @@ public Builder clearIndustryCategory() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @@ -1967,7 +2121,7 @@ public java.lang.String getTimeZone() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -1976,7 +2130,7 @@ public java.lang.String getTimeZone() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @@ -1995,7 +2149,7 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -2004,7 +2158,7 @@ public com.google.protobuf.ByteString getTimeZoneBytes() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The timeZone to set. * @return This builder for chaining. @@ -2022,7 +2176,7 @@ public Builder setTimeZone(java.lang.String value) { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -2031,7 +2185,7 @@ public Builder setTimeZone(java.lang.String value) {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -2045,7 +2199,7 @@ public Builder clearTimeZone() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -2054,7 +2208,7 @@ public Builder clearTimeZone() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for timeZone to set. * @return This builder for chaining. @@ -2186,60 +2340,434 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean deleted_; + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** * * *
-     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-     * are excluded from List results unless specifically requested.
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
      * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The deleted. + * @return Whether the deleteTime field is set. */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; + public boolean hasDeleteTime() { + return deleteTimeBuilder_ != null || deleteTime_ != null; } /** * * *
-     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-     * are excluded from List results unless specifically requested.
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
      * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The deleted to set. - * @return This builder for chaining. + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleted(boolean value) { + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } - deleted_ = value; - onChanged(); return this; } /** * * *
-     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-     * are excluded from List results unless specifically requested.
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
      * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (deleteTime_ != null) { + deleteTime_ = + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + } else { + deleteTime_ = value; + } + onChanged(); + } else { + deleteTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** * - * @return This builder for chaining. + * + *
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearDeleted() { + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - deleted_ = false; onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not set, then this
+     * property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return expireTimeBuilder_ != null || expireTime_ != null; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + return this; } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expireTime_ != null) { + expireTime_ = + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index edd43768..525f31fe 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -217,7 +217,7 @@ public interface PropertyOrBuilder * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -226,7 +226,7 @@ public interface PropertyOrBuilder
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @@ -235,7 +235,7 @@ public interface PropertyOrBuilder * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -244,7 +244,7 @@ public interface PropertyOrBuilder
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @@ -283,13 +283,84 @@ public interface PropertyOrBuilder * * *
-   * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-   * are excluded from List results unless specifically requested.
+   * Output only. If set, the time at which this property was trashed. If not set, then this
+   * property is not currently in the trash can.
    * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not set, then this
+   * property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not set, then this
+   * property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * * - * @return The deleted. + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - boolean getDeleted(); + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index 200b3c4d..04c8393f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -83,6 +83,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -103,123 +115,163 @@ 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}\"\212" + + "leapis.com/Account\022\022accounts/{account}\"\345" + "\003\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\021\n\ttime_zone\030\007 \001" - + "(\t\022\025\n\rcurrency_code\030\010 \001(\t\022\024\n\007deleted\030\t \001" - + "(\010B\003\340A\003:B\352A?\n&analyticsadmin.googleapis." - + "com/Property\022\025properties/{property}\"\344\002\n\024" - + "AndroidAppDataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "\034\n\017firebase_app_id\030\002 \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.protob" - + "uf.TimestampB\003\340A\003\022\031\n\014package_name\030\005 \001(\tB" - + "\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352A{\n2analyti" - + "csadmin.googleapis.com/AndroidAppDataStr" - + "eam\022Eproperties/{property}/androidAppDat" - + "aStreams/{android_app_data_stream}\"\324\002\n\020I" - + "osAppDataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017fi" - + "rebase_app_id\030\002 \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.protobuf.Ti" - + "mestampB\003\340A\003\022\031\n\tbundle_id\030\005 \001(\tB\006\340A\005\340A\002\022" - + "\024\n\014display_name\030\006 \001(\t:r\352Ao\n.analyticsadm" - + "in.googleapis.com/IosAppDataStream\022=prop" - + "erties/{property}/iosAppDataStreams/{ios" - + "_app_data_stream}\"\350\002\n\rWebDataStream\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022\033\n\016measurement_id\030\002 \001(\tB\003" - + "\340A\003\022\034\n\017firebase_app_id\030\003 \001(\tB\003\340A\003\0224\n\013cre" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\030\n\013default_uri\030\006 \001" - + "(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\tB\003\340A\002:h\352Ae\n" - + "+analyticsadmin.googleapis.com/WebDataSt" - + "ream\0226properties/{property}/webDataStrea" - + "ms/{web_data_stream}\"\312\001\n\010UserLink\022\014\n\004nam" - + "e\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t\022\024\n\014direct" - + "_roles\030\003 \003(\t:\202\001\352A\177\n&analyticsadmin.googl" - + "eapis.com/UserLink\022(accounts/{account}/u" - + "serLinks/{user_link}\022+properties/{proper" - + "ty}/userLinks/{user_link}\"c\n\rAuditUserLi" - + "nk\022\014\n\004name\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t\022" - + "\024\n\014direct_roles\030\003 \003(\t\022\027\n\017effective_roles" - + "\030\004 \003(\t\"\231\004\n\033EnhancedMeasurementSettings\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stream_enabled\030\002 \001(" - + "\010\022\037\n\022page_views_enabled\030\003 \001(\010B\003\340A\003\022\027\n\017sc" - + "rolls_enabled\030\004 \001(\010\022\037\n\027outbound_clicks_e" - + "nabled\030\005 \001(\010\022\033\n\023site_search_enabled\030\007 \001(" - + "\010\022 \n\030video_engagement_enabled\030\t \001(\010\022\036\n\026f" - + "ile_downloads_enabled\030\n \001(\010\022\037\n\022page_load" - + "s_enabled\030\014 \001(\010B\003\340A\003\022\034\n\024page_changes_ena" - + "bled\030\r \001(\010\022#\n\026search_query_parameter\030\020 \001" - + "(\tB\003\340A\002\022\033\n\023uri_query_parameter\030\021 \001(\t:\223\001\352" - + "A\217\001\n9analyticsadmin.googleapis.com/Enhan" - + "cedMeasurementSettings\022Rproperties/{prop" - + "erty}/webDataStreams/{web_data_stream}/e" - + "nhancedMeasurementSettings\"\243\002\n\014FirebaseL" - + "ink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007project\030\002 \001(\tB" - + "\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022N\n\023maximum_user_acces" - + "s\030\004 \001(\01621.google.analytics.admin.v1alpha" - + ".MaximumUserAccess:d\352Aa\n*analyticsadmin." - + "googleapis.com/FirebaseLink\0223properties/" - + "{property}/firebaseLinks/{firebase_link}" - + "\"\217\001\n\rGlobalSiteTag\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n" - + "\007snippet\030\002 \001(\tB\003\340A\005:U\352AR\n+analyticsadmin" - + ".googleapis.com/GlobalSiteTag\022#propertie" - + "s/{property}/globalSiteTag\"\220\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\022\032\n\remail_add" - + "ress\030\006 \001(\tB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003:h\352Ae\n+analyticsadmin.googleapis.com/" - + "GoogleAdsLink\0226properties/{property}/goo" - + "gleAdsLinks/{google_ads_link}\"\353\002\n\023DataSh" - + "aringSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022+\n#shar" - + "ing_with_google_support_enabled\030\002 \001(\010\0222\n" - + "*sharing_with_google_assigned_sales_enab" - + "led\030\003 \001(\010\022-\n%sharing_with_google_any_sal" - + "es_enabled\030\004 \001(\010\022,\n$sharing_with_google_" - + "products_enabled\030\005 \001(\010\022#\n\033sharing_with_o" - + "thers_enabled\030\006 \001(\010:^\352A[\n1analyticsadmin" - + ".googleapis.com/DataSharingSettings\022&acc" - + "ounts/{account}/dataSharingSettings\"\225\002\n\016" - + "AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007account\030" - + "\002 \001(\tB*\372A\'\n%analyticsadmin.googleapis.co" - + "m/Account\022\024\n\014display_name\030\003 \001(\t\022K\n\022prope" - + "rty_summaries\030\004 \003(\0132/.google.analytics.a" - + "dmin.v1alpha.PropertySummary:U\352AR\n,analy" - + "ticsadmin.googleapis.com/AccountSummary\022" - + "\"accountSummaries/{account_summary}\"f\n\017P" - + "ropertySummary\022=\n\010property\030\001 \001(\tB+\372A(\n&a" - + "nalyticsadmin.googleapis.com/Property\022\024\n" - + "\014display_name\030\002 \001(\t*\247\001\n\021MaximumUserAcces" - + "s\022#\n\037MAXIMUM_USER_ACCESS_UNSPECIFIED\020\000\022\r" - + "\n\tNO_ACCESS\020\001\022\024\n\020READ_AND_ANALYZE\020\002\022\"\n\036E" - + "DITOR_WITHOUT_LINK_MANAGEMENT\020\003\022$\n EDITO" - + "R_INCLUDING_LINK_MANAGEMENT\020\004*\252\004\n\020Indust" - + "ryCategory\022!\n\035INDUSTRY_CATEGORY_UNSPECIF" - + "IED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINESS_AND_IN" - + "DUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALT" - + "HCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005O" - + "THER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT\020\010\022\026\n\022BE" - + "AUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_LITERATU" - + "RE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023H" - + "OBBIES_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_G" - + "OVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNIT" - + "IES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AN" - + "D_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENC" - + "E\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\032B{\n\"com.google" + + "1alpha.IndustryCategory\022\026\n\ttime_zone\030\007 \001" + + "(\tB\003\340A\002\022\025\n\rcurrency_code\030\010 \001(\t\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.proto" + + "buf.TimestampB\003\340A\003:B\352A?\n&analyticsadmin." + + "googleapis.com/Property\022\025properties/{pro" + + "perty}\"\344\002\n\024AndroidAppDataStream\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\002 \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.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\031\n\014package_" + + "name\030\005 \001(\tB\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352" + + "A{\n2analyticsadmin.googleapis.com/Androi" + + "dAppDataStream\022Eproperties/{property}/an" + + "droidAppDataStreams/{android_app_data_st" + + "ream}\"\324\002\n\020IosAppDataStream\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003\0224\n\013c" + + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\031\n\tbundle_id\030\005 \001" + + "(\tB\006\340A\005\340A\002\022\024\n\014display_name\030\006 \001(\t:r\352Ao\n.a" + + "nalyticsadmin.googleapis.com/IosAppDataS" + + "tream\022=properties/{property}/iosAppDataS" + + "treams/{ios_app_data_stream}\"\350\002\n\rWebData" + + "Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\033\n\016measurement" + + "_id\030\002 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\003 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\030\n\013defa" + + "ult_uri\030\006 \001(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\t" + + "B\003\340A\002:h\352Ae\n+analyticsadmin.googleapis.co" + + "m/WebDataStream\0226properties/{property}/w" + + "ebDataStreams/{web_data_stream}\"\312\001\n\010User" + + "Link\022\014\n\004name\030\001 \001(\t\022\025\n\remail_address\030\002 \001(" + + "\t\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n&analytics" + + "admin.googleapis.com/UserLink\022(accounts/" + + "{account}/userLinks/{user_link}\022+propert" + + "ies/{property}/userLinks/{user_link}\"c\n\r" + + "AuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\remail_add" + + "ress\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017effe" + + "ctive_roles\030\004 \003(\t\"\231\004\n\033EnhancedMeasuremen" + + "tSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stream_e" + + "nabled\030\002 \001(\010\022\037\n\022page_views_enabled\030\003 \001(\010" + + "B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010\022\037\n\027outbou" + + "nd_clicks_enabled\030\005 \001(\010\022\033\n\023site_search_e" + + "nabled\030\007 \001(\010\022 \n\030video_engagement_enabled" + + "\030\t \001(\010\022\036\n\026file_downloads_enabled\030\n \001(\010\022\037" + + "\n\022page_loads_enabled\030\014 \001(\010B\003\340A\003\022\034\n\024page_" + + "changes_enabled\030\r \001(\010\022#\n\026search_query_pa" + + "rameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_query_paramete" + + "r\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin.googleapi" + + "s.com/EnhancedMeasurementSettings\022Rprope" + + "rties/{property}/webDataStreams/{web_dat" + + "a_stream}/enhancedMeasurementSettings\"\243\002" + + "\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007pro" + + "ject\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022N\n\023maximum" + + "_user_access\030\004 \001(\01621.google.analytics.ad" + + "min.v1alpha.MaximumUserAccess:d\352Aa\n*anal" + + "yticsadmin.googleapis.com/FirebaseLink\0223" + + "properties/{property}/firebaseLinks/{fir" + + "ebase_link}\"\217\001\n\rGlobalSiteTag\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:U\352AR\n+ana" + + "lyticsadmin.googleapis.com/GlobalSiteTag" + + "\022#properties/{property}/globalSiteTag\"\220\003" + + "\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013cu" + + "stomer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_clien" + + "ts\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization_ena" + + "bled\030\005 \001(\0132\032.google.protobuf.BoolValue\022\032" + + "\n\remail_address\030\006 \001(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003:h\352Ae\n+analyticsadmin.goog" + + "leapis.com/GoogleAdsLink\0226properties/{pr" + + "operty}/googleAdsLinks/{google_ads_link}" + + "\"\353\002\n\023DataSharingSettings\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\003\022+\n#sharing_with_google_support_enabl" + + "ed\030\002 \001(\010\0222\n*sharing_with_google_assigned" + + "_sales_enabled\030\003 \001(\010\022-\n%sharing_with_goo" + + "gle_any_sales_enabled\030\004 \001(\010\022,\n$sharing_w" + + "ith_google_products_enabled\030\005 \001(\010\022#\n\033sha" + + "ring_with_others_enabled\030\006 \001(\010:^\352A[\n1ana" + + "lyticsadmin.googleapis.com/DataSharingSe" + + "ttings\022&accounts/{account}/dataSharingSe" + + "ttings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022" + + ";\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.go" + + "ogleapis.com/Account\022\024\n\014display_name\030\003 \001" + + "(\t\022K\n\022property_summaries\030\004 \003(\0132/.google." + + "analytics.admin.v1alpha.PropertySummary:" + + "U\352AR\n,analyticsadmin.googleapis.com/Acco" + + "untSummary\022\"accountSummaries/{account_su" + + "mmary}\"f\n\017PropertySummary\022=\n\010property\030\001 " + + "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" + + "Property\022\024\n\014display_name\030\002 \001(\t\"\212\002\n\022Chang" + + "eHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022=\n\nac" + + "tor_type\030\003 \001(\0162).google.analytics.admin." + + "v1alpha.ActorType\022\030\n\020user_actor_email\030\004 " + + "\001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022D\n\007changes" + + "\030\006 \003(\01323.google.analytics.admin.v1alpha." + + "ChangeHistoryChange\"\335\006\n\023ChangeHistoryCha" + + "nge\022\020\n\010resource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*." + + "google.analytics.admin.v1alpha.ActionTyp" + + "e\022i\n\026resource_before_change\030\003 \001(\0132I.goog" + + "le.analytics.admin.v1alpha.ChangeHistory" + + "Change.ChangeHistoryResource\022h\n\025resource" + + "_after_change\030\004 \001(\0132I.google.analytics.a" + + "dmin.v1alpha.ChangeHistoryChange.ChangeH" + + "istoryResource\032\242\004\n\025ChangeHistoryResource" + + "\022:\n\007account\030\001 \001(\0132\'.google.analytics.adm" + + "in.v1alpha.AccountH\000\022<\n\010property\030\002 \001(\0132(" + + ".google.analytics.admin.v1alpha.Property" + + "H\000\022H\n\017web_data_stream\030\003 \001(\0132-.google.ana" + + "lytics.admin.v1alpha.WebDataStreamH\000\022W\n\027" + + "android_app_data_stream\030\004 \001(\01324.google.a" + + "nalytics.admin.v1alpha.AndroidAppDataStr" + + "eamH\000\022O\n\023ios_app_data_stream\030\005 \001(\01320.goo" + + "gle.analytics.admin.v1alpha.IosAppDataSt" + + "reamH\000\022E\n\rfirebase_link\030\006 \001(\0132,.google.a" + + "nalytics.admin.v1alpha.FirebaseLinkH\000\022H\n" + + "\017google_ads_link\030\007 \001(\0132-.google.analytic" + + "s.admin.v1alpha.GoogleAdsLinkH\000B\n\n\010resou" + + "rce*\247\001\n\021MaximumUserAccess\022#\n\037MAXIMUM_USE" + + "R_ACCESS_UNSPECIFIED\020\000\022\r\n\tNO_ACCESS\020\001\022\024\n" + + "\020READ_AND_ANALYZE\020\002\022\"\n\036EDITOR_WITHOUT_LI" + + "NK_MANAGEMENT\020\003\022$\n EDITOR_INCLUDING_LINK" + + "_MANAGEMENT\020\004*\252\004\n\020IndustryCategory\022!\n\035IN" + + "DUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOT" + + "IVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MARKETS" + + "\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHN" + + "OLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_A" + + "ND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS" + + "\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOOD_AND" + + "_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_LEISU" + + "RE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNET_AN" + + "D_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004N" + + "EWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_" + + "AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013R" + + "EAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027" + + "\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010" + + "SHOPPING\020\032*J\n\tActorType\022\032\n\026ACTOR_TYPE_UN" + + "SPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUP" + + "PORT\020\003*P\n\nActionType\022\033\n\027ACTION_TYPE_UNSP" + + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007D" + + "ELETED\020\003*\327\001\n\031ChangeHistoryResourceType\022," + + "\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFI" + + "ED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\023\n\017WEB_D" + + "ATA_STREAM\020\003\022\033\n\027ANDROID_APP_DATA_STREAM\020" + + "\004\022\027\n\023IOS_APP_DATA_STREAM\020\005\022\021\n\rFIREBASE_L" + + "INK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007B{\n\"com.google" + ".analytics.admin.v1alphaB\016ResourcesProto" + "P\001ZCgoogle.golang.org/genproto/googleapi" + "s/analytics/admin/v1alpha;adminb\006proto3" @@ -255,7 +307,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IndustryCategory", "TimeZone", "CurrencyCode", - "Deleted", + "DeleteTime", + "ExpireTime", }); internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor = getDescriptor().getMessageTypes().get(2); @@ -381,6 +434,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "DisplayName", }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, + new java.lang.String[] { + "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, + new java.lang.String[] { + "Resource", "Action", "ResourceBeforeChange", "ResourceAfterChange", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor = + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor, + new java.lang.String[] { + "Account", + "Property", + "WebDataStream", + "AndroidAppDataStream", + "IosAppDataStream", + "FirebaseLink", + "GoogleAdsLink", + "Resource", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java new file mode 100644 index 00000000..c546aac8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java @@ -0,0 +1,2933 @@ +/* + * 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 SearchChangeHistoryEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} + */ +public final class SearchChangeHistoryEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + SearchChangeHistoryEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsRequest.newBuilder() to construct. + private SearchChangeHistoryEventsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsRequest() { + account_ = ""; + property_ = ""; + resourceType_ = java.util.Collections.emptyList(); + action_ = java.util.Collections.emptyList(); + actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchChangeHistoryEventsRequest( + 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(); + + account_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + property_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceType_.add(rawValue); + break; + } + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceType_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 32: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + action_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + action_.add(rawValue); + break; + } + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + action_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + action_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + actorEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + actorEmail_.add(s); + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (earliestChangeTime_ != null) { + subBuilder = earliestChangeTime_.toBuilder(); + } + earliestChangeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(earliestChangeTime_); + earliestChangeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (latestChangeTime_ != null) { + subBuilder = latestChangeTime_.toBuilder(); + } + latestChangeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestChangeTime_); + latestChangeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + pageSize_ = input.readInt32(); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + resourceType_ = java.util.Collections.unmodifiableList(resourceType_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + action_ = java.util.Collections.unmodifiableList(action_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + actorEmail_ = actorEmail_.getUnmodifiableView(); + } + 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_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private volatile java.lang.Object account_; + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + 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(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + private volatile java.lang.Object property_; + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + 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(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private java.util.List resourceType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType> + resourceType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>() { + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType result = + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.valueOf(from); + return result == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + @java.lang.Override + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + @java.lang.Override + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + @java.lang.Override + public java.util.List getResourceTypeValueList() { + return resourceType_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + @java.lang.Override + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + + private int resourceTypeMemoizedSerializedSize; + + public static final int ACTION_FIELD_NUMBER = 4; + private java.util.List action_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType> + action_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>() { + public com.google.analytics.admin.v1alpha.ActionType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.valueOf(from); + return result == null + ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + @java.lang.Override + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + @java.lang.Override + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + @java.lang.Override + public java.util.List getActionValueList() { + return action_; + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + @java.lang.Override + public int getActionValue(int index) { + return action_.get(index); + } + + private int actionMemoizedSerializedSize; + + public static final int ACTOR_EMAIL_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList actorEmail_; + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + return actorEmail_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + + public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp earliestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + @java.lang.Override + public boolean hasEarliestChangeTime() { + return earliestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEarliestChangeTime() { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + return getEarliestChangeTime(); + } + + public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp latestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + @java.lang.Override + public boolean hasLatestChangeTime() { + return latestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestChangeTime() { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + return getLatestChangeTime(); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_; + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 9; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 { + getSerializedSize(); + if (!getAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); + } + if (!getPropertyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); + } + if (getResourceTypeList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize); + } + for (int i = 0; i < resourceType_.size(); i++) { + output.writeEnumNoTag(resourceType_.get(i)); + } + if (getActionList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(actionMemoizedSerializedSize); + } + for (int i = 0; i < action_.size(); i++) { + output.writeEnumNoTag(action_.get(i)); + } + for (int i = 0; i < actorEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i)); + } + if (earliestChangeTime_ != null) { + output.writeMessage(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + output.writeMessage(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); + } + if (!getPropertyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(resourceType_.get(i)); + } + size += dataSize; + if (!getResourceTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + resourceTypeMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < action_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(action_.get(i)); + } + size += dataSize; + if (!getActionList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + actionMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < actorEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getActorEmailList().size(); + } + if (earliestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.SearchChangeHistoryEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) obj; + + if (!getAccount().equals(other.getAccount())) return false; + if (!getProperty().equals(other.getProperty())) return false; + if (!resourceType_.equals(other.resourceType_)) return false; + if (!action_.equals(other.action_)) return false; + if (!getActorEmailList().equals(other.getActorEmailList())) return false; + if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false; + if (hasEarliestChangeTime()) { + if (!getEarliestChangeTime().equals(other.getEarliestChangeTime())) return false; + } + if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false; + if (hasLatestChangeTime()) { + if (!getLatestChangeTime().equals(other.getLatestChangeTime())) 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) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + if (getResourceTypeCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_.hashCode(); + } + if (getActionCount() > 0) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_.hashCode(); + } + if (getActorEmailCount() > 0) { + hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getActorEmailList().hashCode(); + } + if (hasEarliestChangeTime()) { + hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEarliestChangeTime().hashCode(); + } + if (hasLatestChangeTime()) { + hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestChangeTime().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.SearchChangeHistoryEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + 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.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest 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 SearchChangeHistoryEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.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(); + account_ = ""; + + property_ = ""; + + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = null; + } else { + earliestChangeTime_ = null; + earliestChangeTimeBuilder_ = null; + } + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = null; + } else { + latestChangeTime_ = null; + latestChangeTimeBuilder_ = null; + } + 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_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest build() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest buildPartial() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = + new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(this); + int from_bitField0_ = bitField0_; + result.account_ = account_; + result.property_ = property_; + if (((bitField0_ & 0x00000001) != 0)) { + resourceType_ = java.util.Collections.unmodifiableList(resourceType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceType_ = resourceType_; + if (((bitField0_ & 0x00000002) != 0)) { + action_ = java.util.Collections.unmodifiableList(action_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.action_ = action_; + if (((bitField0_ & 0x00000004) != 0)) { + actorEmail_ = actorEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.actorEmail_ = actorEmail_; + if (earliestChangeTimeBuilder_ == null) { + result.earliestChangeTime_ = earliestChangeTime_; + } else { + result.earliestChangeTime_ = earliestChangeTimeBuilder_.build(); + } + if (latestChangeTimeBuilder_ == null) { + result.latestChangeTime_ = latestChangeTime_; + } else { + result.latestChangeTime_ = latestChangeTimeBuilder_.build(); + } + 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.SearchChangeHistoryEventsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance()) return this; + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + onChanged(); + } + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + onChanged(); + } + if (!other.resourceType_.isEmpty()) { + if (resourceType_.isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceTypeIsMutable(); + resourceType_.addAll(other.resourceType_); + } + onChanged(); + } + if (!other.action_.isEmpty()) { + if (action_.isEmpty()) { + action_ = other.action_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureActionIsMutable(); + action_.addAll(other.action_); + } + onChanged(); + } + if (!other.actorEmail_.isEmpty()) { + if (actorEmail_.isEmpty()) { + actorEmail_ = other.actorEmail_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureActorEmailIsMutable(); + actorEmail_.addAll(other.actorEmail_); + } + onChanged(); + } + if (other.hasEarliestChangeTime()) { + mergeEarliestChangeTime(other.getEarliestChangeTime()); + } + if (other.hasLatestChangeTime()) { + mergeLatestChangeTime(other.getLatestChangeTime()); + } + 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.SearchChangeHistoryEventsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + account_ = value; + onChanged(); + return this; + } + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + property_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + + property_ = getDefaultInstance().getProperty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + property_ = value; + onChanged(); + return this; + } + + private java.util.List resourceType_ = java.util.Collections.emptyList(); + + private void ensureResourceTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceType_ = new java.util.ArrayList(resourceType_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceType( + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceType( + java.lang.Iterable + values) { + ensureResourceTypeIsMutable(); + for (com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value : values) { + resourceType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + public java.util.List getResourceTypeValueList() { + return java.util.Collections.unmodifiableList(resourceType_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int index, int value) { + ensureResourceTypeIsMutable(); + resourceType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceTypeValue(int value) { + ensureResourceTypeIsMutable(); + resourceType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceTypeValue(java.lang.Iterable values) { + ensureResourceTypeIsMutable(); + for (int value : values) { + resourceType_.add(value); + } + onChanged(); + return this; + } + + private java.util.List action_ = java.util.Collections.emptyList(); + + private void ensureActionIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + action_ = new java.util.ArrayList(action_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(int index, com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The action to add. + * @return This builder for chaining. + */ + public Builder addAction(com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The action to add. + * @return This builder for chaining. + */ + public Builder addAllAction( + java.lang.Iterable values) { + ensureActionIsMutable(); + for (com.google.analytics.admin.v1alpha.ActionType value : values) { + action_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + public java.util.List getActionValueList() { + return java.util.Collections.unmodifiableList(action_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + public int getActionValue(int index) { + return action_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + * @return This builder for chaining. + */ + public Builder setActionValue(int index, int value) { + ensureActionIsMutable(); + action_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addActionValue(int value) { + ensureActionIsMutable(); + action_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addAllActionValue(java.lang.Iterable values) { + ensureActionIsMutable(); + for (int value : values) { + action_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList actorEmail_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureActorEmailIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + return actorEmail_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The actorEmail to set. + * @return This builder for chaining. + */ + public Builder setActorEmail(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addAllActorEmail(java.lang.Iterable values) { + ensureActorEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actorEmail_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearActorEmail() { + actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureActorEmailIsMutable(); + actorEmail_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp earliestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + public boolean hasEarliestChangeTime() { + return earliestChangeTimeBuilder_ != null || earliestChangeTime_ != null; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + public com.google.protobuf.Timestamp getEarliestChangeTime() { + if (earliestChangeTimeBuilder_ == null) { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } else { + return earliestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earliestChangeTime_ = value; + onChanged(); + } else { + earliestChangeTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = builderForValue.build(); + onChanged(); + } else { + earliestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (earliestChangeTime_ != null) { + earliestChangeTime_ = + com.google.protobuf.Timestamp.newBuilder(earliestChangeTime_) + .mergeFrom(value) + .buildPartial(); + } else { + earliestChangeTime_ = value; + } + onChanged(); + } else { + earliestChangeTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEarliestChangeTime() { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = null; + onChanged(); + } else { + earliestChangeTime_ = null; + earliestChangeTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() { + + onChanged(); + return getEarliestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + if (earliestChangeTimeBuilder_ != null) { + return earliestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEarliestChangeTimeFieldBuilder() { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestChangeTime(), getParentForChildren(), isClean()); + earliestChangeTime_ = null; + } + return earliestChangeTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + public boolean hasLatestChangeTime() { + return latestChangeTimeBuilder_ != null || latestChangeTime_ != null; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + public com.google.protobuf.Timestamp getLatestChangeTime() { + if (latestChangeTimeBuilder_ == null) { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } else { + return latestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestChangeTime_ = value; + onChanged(); + } else { + latestChangeTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = builderForValue.build(); + onChanged(); + } else { + latestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (latestChangeTime_ != null) { + latestChangeTime_ = + com.google.protobuf.Timestamp.newBuilder(latestChangeTime_) + .mergeFrom(value) + .buildPartial(); + } else { + latestChangeTime_ = value; + } + onChanged(); + } else { + latestChangeTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLatestChangeTime() { + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = null; + onChanged(); + } else { + latestChangeTime_ = null; + latestChangeTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() { + + onChanged(); + return getLatestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + if (latestChangeTimeBuilder_ != null) { + return latestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestChangeTimeFieldBuilder() { + if (latestChangeTimeBuilder_ == null) { + latestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestChangeTime(), getParentForChildren(), isClean()); + latestChangeTime_ = null; + } + return latestChangeTimeBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.SearchChangeHistoryEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchChangeHistoryEventsRequest(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.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java new file mode 100644 index 00000000..61d883dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java @@ -0,0 +1,422 @@ +/* + * 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 SearchChangeHistoryEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); + + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + java.util.List + getResourceTypeList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + int getResourceTypeCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + java.util.List getResourceTypeValueList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + int getResourceTypeValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + java.util.List getActionList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + int getActionCount(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + com.google.analytics.admin.v1alpha.ActionType getAction(int index); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + java.util.List getActionValueList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + int getActionValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + java.util.List getActorEmailList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + int getActorEmailCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + java.lang.String getActorEmail(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + com.google.protobuf.ByteString getActorEmailBytes(int index); + + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + boolean hasEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + com.google.protobuf.Timestamp getEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + boolean hasLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + com.google.protobuf.Timestamp getLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java new file mode 100644 index 00000000..87554d6b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java @@ -0,0 +1,1194 @@ +/* + * 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 SearchAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} + */ +public final class SearchChangeHistoryEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + SearchChangeHistoryEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsResponse.newBuilder() to construct. + private SearchChangeHistoryEventsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsResponse() { + changeHistoryEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchChangeHistoryEventsResponse( + 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)) { + changeHistoryEvents_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent>(); + mutable_bitField0_ |= 0x00000001; + } + changeHistoryEvents_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); + } + 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_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); + } + + public static final int CHANGE_HISTORY_EVENTS_FIELD_NUMBER = 1; + private java.util.List + changeHistoryEvents_; + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsOrBuilderList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public int getChangeHistoryEventsCount() { + return changeHistoryEvents_.size(); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { + return changeHistoryEvents_.get(index); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + return changeHistoryEvents_.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 < changeHistoryEvents_.size(); i++) { + output.writeMessage(1, changeHistoryEvents_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changeHistoryEvents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, changeHistoryEvents_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) obj; + + if (!getChangeHistoryEventsList().equals(other.getChangeHistoryEventsList())) 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 (getChangeHistoryEventsCount() > 0) { + hash = (37 * hash) + CHANGE_HISTORY_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getChangeHistoryEventsList().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.SearchChangeHistoryEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + 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.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse 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 SearchAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChangeHistoryEventsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changeHistoryEventsBuilder_.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_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse build() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse buildPartial() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = + new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(this); + int from_bitField0_ = bitField0_; + if (changeHistoryEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeHistoryEvents_ = changeHistoryEvents_; + } else { + result.changeHistoryEvents_ = changeHistoryEventsBuilder_.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.SearchChangeHistoryEventsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance()) return this; + if (changeHistoryEventsBuilder_ == null) { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEvents_.isEmpty()) { + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.addAll(other.changeHistoryEvents_); + } + onChanged(); + } + } else { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEventsBuilder_.isEmpty()) { + changeHistoryEventsBuilder_.dispose(); + changeHistoryEventsBuilder_ = null; + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + changeHistoryEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangeHistoryEventsFieldBuilder() + : null; + } else { + changeHistoryEventsBuilder_.addAllMessages(other.changeHistoryEvents_); + } + } + } + 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.SearchChangeHistoryEventsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + changeHistoryEvents_ = java.util.Collections.emptyList(); + + private void ensureChangeHistoryEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = + new java.util.ArrayList( + changeHistoryEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> + changeHistoryEventsBuilder_; + + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsList() { + if (changeHistoryEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } else { + return changeHistoryEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public int getChangeHistoryEventsCount() { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.size(); + } else { + return changeHistoryEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addAllChangeHistoryEvents( + java.lang.Iterable + values) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeHistoryEvents_); + onChanged(); + } else { + changeHistoryEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder clearChangeHistoryEvents() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changeHistoryEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder removeChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.remove(index); + onChanged(); + } else { + changeHistoryEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + getChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsOrBuilderList() { + if (changeHistoryEventsBuilder_ != null) { + return changeHistoryEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder() { + return getChangeHistoryEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsBuilderList() { + return getChangeHistoryEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> + getChangeHistoryEventsFieldBuilder() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder>( + changeHistoryEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeHistoryEvents_ = null; + } + return changeHistoryEventsBuilder_; + } + + 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.SearchChangeHistoryEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchChangeHistoryEventsResponse(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.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java new file mode 100644 index 00000000..2eb7cc15 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * 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 SearchChangeHistoryEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + int getChangeHistoryEventsCount(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsOrBuilderList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 712cc601..872d6abb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -140,7 +140,7 @@ service AnalyticsAdminService { // https://support.google.com/analytics/answer/6154772 // // Returns an error if the target is not found, or is not an GA4 Property. - rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { + rpc DeleteProperty(DeletePropertyRequest) returns (Property) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*}" }; @@ -358,23 +358,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "ios_app_data_stream,update_mask"; } - // Creates an iOS app stream with the specified location and attributes. - // - // Note that an iOS app stream must be linked to a Firebase app to receive - // traffic. - // - // To create a working app stream, make sure your property is linked to a - // Firebase project. Then, use the Firebase API to create a Firebase app, - // which will also create an appropriate data stream in Analytics (may take up - // to 24 hours). - rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "parent,ios_app_data_stream"; - } - // Returns child iOS app data streams under the specified parent property. // // iOS app data streams will be excluded if the caller does not have access. @@ -411,23 +394,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "android_app_data_stream,update_mask"; } - // Creates an Android app stream with the specified location and attributes. - // - // Note that an Android app stream must be linked to a Firebase app to receive - // traffic. - // - // To create a working app stream, make sure your property is linked to a - // Firebase project. Then, use the Firebase API to create a Firebase app, - // which will also create an appropriate data stream in Analytics (may take up - // to 24 hours). - rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "parent,android_app_data_stream"; - } - // Returns child android app streams under the specified parent property. // // Android app streams will be excluded if the caller does not have access. @@ -548,6 +514,15 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Searches through all changes to an account or its children given the + // specified set of filters. + rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { + option (google.api.http) = { + post: "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents" + body: "*" + }; + } } // Request message for GetAccount RPC. @@ -1071,21 +1046,6 @@ message UpdateIosAppDataStreamRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateIosAppDataStream RPC. -message CreateIosAppDataStreamRequest { - // Required. The iOS app data stream to create. - IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this ios app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - // Request message for ListIosAppDataStreams RPC. message ListIosAppDataStreamsRequest { // Required. The name of the parent property. @@ -1158,21 +1118,6 @@ message UpdateAndroidAppDataStreamRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateAndroidAppDataStream RPC. -message CreateAndroidAppDataStreamRequest { - // Required. The android app stream to create. - AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this android app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - // Request message for ListAndroidAppDataStreams RPC. message ListAndroidAppDataStreamsRequest { // Required. The name of the parent property. @@ -1429,3 +1374,62 @@ message ListAccountSummariesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for SearchChangeHistoryEvents RPC. +message SearchChangeHistoryEventsRequest { + // Required. The account resource for which to return change history resources. + string account = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; + + // Optional. Resource name for a child property. If set, only return changes + // made to this property or its child resources. + string property = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Optional. If set, only return changes if they are for a resource that matches at + // least one of these types. + repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes that match one or more of these types of + // actions. + repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes if they are made by a user in this list. + repeated string actor_email = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made after this time (inclusive). + google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made before this time (inclusive). + google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of ChangeHistoryEvent items to return. + // The service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 items will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `SearchChangeHistoryEvents` must match the call that + // provided the page token. + string page_token = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for SearchAccounts RPC. +message SearchChangeHistoryEventsResponse { + // Results that were accessible to the caller. + repeated ChangeHistoryEvent change_history_events = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index 3dfa5422..568d7471 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -131,6 +131,64 @@ enum IndustryCategory { SHOPPING = 26; } +// Different kinds of actors that can make changes to Google Analytics +// resources. +enum ActorType { + // Unknown or unspecified actor type. + ACTOR_TYPE_UNSPECIFIED = 0; + + // Changes made by the user specified in actor_email. + USER = 1; + + // Changes made by the Google Analytics system. + SYSTEM = 2; + + // Changes made by Google Analytics support team staff. + SUPPORT = 3; +} + +// Types of actions that may change a resource. +enum ActionType { + // Action type unknown or not specified. + ACTION_TYPE_UNSPECIFIED = 0; + + // Resource was created in this change. + CREATED = 1; + + // Resource was updated in this change. + UPDATED = 2; + + // Resource was deleted in this change. + DELETED = 3; +} + +// Types of resources whose changes may be returned from change history. +enum ChangeHistoryResourceType { + // Resource type unknown or not specified. + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Account resource + ACCOUNT = 1; + + // Property resource + PROPERTY = 2; + + // WebDataStream resource + WEB_DATA_STREAM = 3; + + // AndroidAppDataStream resource + ANDROID_APP_DATA_STREAM = 4; + + // IosAppDataStream resource + IOS_APP_DATA_STREAM = 5; + + // FirebaseLink resource + FIREBASE_LINK = 6; + + // GoogleAdsLink resource + GOOGLE_ADS_LINK = 7; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -194,7 +252,7 @@ message Property { // Example: AUTOMOTIVE, FOOD_AND_DRINK IndustryCategory industry_category = 6; - // Reporting Time Zone, used as the day boundary for reports, regardless of + // Required. Reporting Time Zone, used as the day boundary for reports, regardless of // where the data originates. If the time zone honors DST, Analytics will // automatically adjust for the changes. // @@ -203,7 +261,7 @@ message Property { // // Format: https://www.iana.org/time-zones // Example: "America/Los_Angeles" - string time_zone = 7; + string time_zone = 7 [(google.api.field_behavior) = REQUIRED]; // The currency type used in reports involving monetary values. // @@ -212,9 +270,14 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; - // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties - // are excluded from List results unless specifically requested. - bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If set, the time at which this property was trashed. If not set, then this + // property is not currently in the trash can. + google.protobuf.Timestamp delete_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, the time at which this trashed property will be permanently + // deleted. If not set, then this property is not currently in the trash can + // and is not slated to be deleted. + google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing a Google Analytics Android app stream. @@ -586,3 +649,75 @@ message PropertySummary { // Display name for the property referred to in this account summary. string display_name = 2; } + +// A set of changes within a Google Analytics account or its child properties +// that resulted from the same cause. Common causes would be updates made in the +// Google Analytics UI, changes from customer support, or automatic Google +// Analytics system changes. +message ChangeHistoryEvent { + // ID of this change history event. This ID is unique across Google Analytics. + string id = 1; + + // Time when change was made. + google.protobuf.Timestamp change_time = 2; + + // The type of actor that made this change. + ActorType actor_type = 3; + + // Email address of the Google account that made the change. This will be a + // valid email address if the actor field is set to USER, and empty otherwise. + // Google accounts that have been deleted will cause an error. + string user_actor_email = 4; + + // If true, then the list of changes returned was filtered, and does not + // represent all changes that occurred in this event. + bool changes_filtered = 5; + + // A list of changes made in this change history event that fit the filters + // specified in SearchChangeHistoryEventsRequest. + repeated ChangeHistoryChange changes = 6; +} + +// A description of a change to a single Google Analytics resource. +message ChangeHistoryChange { + // A snapshot of a resource as before or after the result of a change in + // change history. + message ChangeHistoryResource { + oneof resource { + // A snapshot of an Account resource in change history. + Account account = 1; + + // A snapshot of a Property resource in change history. + Property property = 2; + + // A snapshot of a WebDataStream resource in change history. + WebDataStream web_data_stream = 3; + + // A snapshot of an AndroidAppDataStream resource in change history. + AndroidAppDataStream android_app_data_stream = 4; + + // A snapshot of an IosAppDataStream resource in change history. + IosAppDataStream ios_app_data_stream = 5; + + // A snapshot of a FirebaseLink resource in change history. + FirebaseLink firebase_link = 6; + + // A snapshot of a GoogleAdsLink resource in change history. + GoogleAdsLink google_ads_link = 7; + } + } + + // Resource name of the resource whose changes are described by this entry. + string resource = 1; + + // The type of action that changed this resource. + ActionType action = 2; + + // Resource contents from before the change was made. If this resource was + // created in this change, this field will be missing. + ChangeHistoryResource resource_before_change = 3; + + // Resource contents from after the change was made. If this resource was + // deleted in this change, this field will be missing. + ChangeHistoryResource resource_after_change = 4; +} diff --git a/synth.metadata b/synth.metadata index 6d514883..abc9a9d7 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "5175561841917383aaf72efa000512f75843c951" + "sha": "439f8060cbaacca56dad0cb8356b6d2efcf4c147" } }, { "git": { "name": "googleapis-gen", "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "ebd77e76effb65c4fba8c64f31c15062c250a4c2", - "internalRef": "362856902" + "sha": "ee560452477d92572edb133386e7129532db8ba6", + "internalRef": "370749341" } }, { @@ -111,6 +111,8 @@ "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java", @@ -135,14 +137,15 @@ "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java", @@ -249,6 +252,10 @@ "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java",