diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 86273bfb0dda..02ec4ed2f8e2 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,20 +23,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-admin - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.20.0' +implementation 'com.google.analytics:google-analytics-admin:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.20.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.21.0" ``` diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 17be037cdb1e..b5e8cae5d7eb 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -580,7 +580,7 @@ public final UnaryCallable deleteAccountCallable() * @param account Required. The account to update. The account's `name` field is used to identify * the account. * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire * entity, use one path with the string "*" to match all fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -4320,8 +4320,8 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret( /** * Acknowledges the terms of user data collection for the specified property. * - *

This acknowledgement must be completed (either in the Google Analytics UI or via this API) - * before MeasurementProtocolSecret resources may be created. + *

This acknowledgement must be completed (either in the Google Analytics UI or through this + * API) before MeasurementProtocolSecret resources may be created. * *

Sample code: * @@ -4355,8 +4355,8 @@ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection /** * Acknowledges the terms of user data collection for the specified property. * - *

This acknowledgement must be completed (either in the Google Analytics UI or via this API) - * before MeasurementProtocolSecret resources may be created. + *

This acknowledgement must be completed (either in the Google Analytics UI or through this + * API) before MeasurementProtocolSecret resources may be created. * *

Sample code: * @@ -10401,8 +10401,7 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has - * no effect on GA4 property. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10414,28 +10413,29 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SetAutomatedGa4ConfigurationOptOutRequest request = - * SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") - * .setOptOut(true) - * .build(); - * SetAutomatedGa4ConfigurationOptOutResponse response = - * analyticsAdminServiceClient.setAutomatedGa4ConfigurationOptOut(request); + * AccountName parent = AccountName.of("[ACCOUNT]"); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = + * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param accessBinding Required. The access binding to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut( - SetAutomatedGa4ConfigurationOptOutRequest request) { - return setAutomatedGa4ConfigurationOptOutCallable().call(request); + public final AccessBinding createAccessBinding(AccountName parent, AccessBinding accessBinding) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessBinding(accessBinding) + .build(); + return createAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has - * no effect on GA4 property. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10447,30 +10447,29 @@ public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4Configura * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SetAutomatedGa4ConfigurationOptOutRequest request = - * SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") - * .setOptOut(true) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .setAutomatedGa4ConfigurationOptOutCallable() - * .futureCall(request); - * // Do something. - * SetAutomatedGa4ConfigurationOptOutResponse response = future.get(); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = + * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); * } * } + * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param accessBinding Required. The access binding to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutCallable() { - return stub.setAutomatedGa4ConfigurationOptOutCallable(); + public final AccessBinding createAccessBinding(PropertyName parent, AccessBinding accessBinding) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessBinding(accessBinding) + .build(); + return createAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this - * has no effect on GA4 property. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10482,27 +10481,59 @@ public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4Configura * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FetchAutomatedGa4ConfigurationOptOutRequest request = - * FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") + * String parent = AccountName.of("[ACCOUNT]").toString(); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = + * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + * } + * } + * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param accessBinding Required. The access binding to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessBinding createAccessBinding(String parent, AccessBinding accessBinding) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(parent) + .setAccessBinding(accessBinding) + .build(); + return createAccessBinding(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access binding on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateAccessBindingRequest request =
+   *       CreateAccessBindingRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .setAccessBinding(AccessBinding.newBuilder().build())
    *           .build();
-   *   FetchAutomatedGa4ConfigurationOptOutResponse response =
-   *       analyticsAdminServiceClient.fetchAutomatedGa4ConfigurationOptOut(request);
+   *   AccessBinding response = analyticsAdminServiceClient.createAccessBinding(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 FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut( - FetchAutomatedGa4ConfigurationOptOutRequest request) { - return fetchAutomatedGa4ConfigurationOptOutCallable().call(request); + public final AccessBinding createAccessBinding(CreateAccessBindingRequest request) { + return createAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this - * has no effect on GA4 property. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10514,28 +10545,26 @@ public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4Confi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FetchAutomatedGa4ConfigurationOptOutRequest request = - * FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") + * CreateAccessBindingRequest request = + * CreateAccessBindingRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .setAccessBinding(AccessBinding.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .fetchAutomatedGa4ConfigurationOptOutCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createAccessBindingCallable().futureCall(request); * // Do something. - * FetchAutomatedGa4ConfigurationOptOutResponse response = future.get(); + * AccessBinding response = future.get(); * } * } */ - public final UnaryCallable< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutCallable() { - return stub.fetchAutomatedGa4ConfigurationOptOutCallable(); + public final UnaryCallable + createAccessBindingCallable() { + return stub.createAccessBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Gets information about an access binding. * *

Sample code: * @@ -10547,25 +10576,26 @@ public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4Confi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); - * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name); + * AccessBindingName name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); * } * } * - * @param name Required. The name of the BigQuery link to lookup. Format: - * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: - * properties/123/bigQueryLinks/456 + * @param name Required. The name of the access binding to retrieve. Formats: - + * accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { - GetBigQueryLinkRequest request = - GetBigQueryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getBigQueryLink(request); + public final AccessBinding getAccessBinding(AccessBindingName name) { + GetAccessBindingRequest request = + GetAccessBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Gets information about an access binding. * *

Sample code: * @@ -10577,24 +10607,25 @@ public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString(); - * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name); + * String name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); + * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); * } * } * - * @param name Required. The name of the BigQuery link to lookup. Format: - * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: - * properties/123/bigQueryLinks/456 + * @param name Required. The name of the access binding to retrieve. Formats: - + * accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryLink getBigQueryLink(String name) { - GetBigQueryLinkRequest request = GetBigQueryLinkRequest.newBuilder().setName(name).build(); - return getBigQueryLink(request); + public final AccessBinding getAccessBinding(String name) { + GetAccessBindingRequest request = GetAccessBindingRequest.newBuilder().setName(name).build(); + return getAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Gets information about an access binding. * *

Sample code: * @@ -10606,24 +10637,26 @@ public final BigQueryLink getBigQueryLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetBigQueryLinkRequest request = - * GetBigQueryLinkRequest.newBuilder() - * .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + * GetAccessBindingRequest request = + * GetAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) * .build(); - * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(request); + * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(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 BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) { - return getBigQueryLinkCallable().call(request); + public final AccessBinding getAccessBinding(GetAccessBindingRequest request) { + return getAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Gets information about an access binding. * *

Sample code: * @@ -10635,24 +10668,26 @@ public final BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetBigQueryLinkRequest request = - * GetBigQueryLinkRequest.newBuilder() - * .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + * GetAccessBindingRequest request = + * GetAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getBigQueryLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getAccessBindingCallable().futureCall(request); * // Do something. - * BigQueryLink response = future.get(); + * AccessBinding response = future.get(); * } * } */ - public final UnaryCallable getBigQueryLinkCallable() { - return stub.getBigQueryLinkCallable(); + public final UnaryCallable getAccessBindingCallable() { + return stub.getAccessBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Updates an access binding on an account or property. * *

Sample code: * @@ -10664,29 +10699,23 @@ public final UnaryCallable getBigQueryLink * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (BigQueryLink element : - * analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(accessBinding); * } * } * - * @param parent Required. The name of the property to list BigQuery links under. Format: - * properties/{property_id} Example: properties/1234 + * @param accessBinding Required. The access binding to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent) { - ListBigQueryLinksRequest request = - ListBigQueryLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBigQueryLinks(request); + public final AccessBinding updateAccessBinding(AccessBinding accessBinding) { + UpdateAccessBindingRequest request = + UpdateAccessBindingRequest.newBuilder().setAccessBinding(accessBinding).build(); + return updateAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Updates an access binding on an account or property. * *

Sample code: * @@ -10698,27 +10727,24 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (BigQueryLink element : - * analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * UpdateAccessBindingRequest request = + * UpdateAccessBindingRequest.newBuilder() + * .setAccessBinding(AccessBinding.newBuilder().build()) + * .build(); + * AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(request); * } * } * - * @param parent Required. The name of the property to list BigQuery links under. Format: - * properties/{property_id} Example: properties/1234 + * @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 ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) { - ListBigQueryLinksRequest request = - ListBigQueryLinksRequest.newBuilder().setParent(parent).build(); - return listBigQueryLinks(request); + public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest request) { + return updateAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Updates an access binding on an account or property. * *

Sample code: * @@ -10730,29 +10756,57 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListBigQueryLinksRequest request = - * ListBigQueryLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * UpdateAccessBindingRequest request = + * UpdateAccessBindingRequest.newBuilder() + * .setAccessBinding(AccessBinding.newBuilder().build()) * .build(); - * for (BigQueryLink element : - * analyticsAdminServiceClient.listBigQueryLinks(request).iterateAll()) { - * // doThingsWith(element); - * } + * ApiFuture future = + * analyticsAdminServiceClient.updateAccessBindingCallable().futureCall(request); + * // Do something. + * AccessBinding response = future.get(); * } * } + */ + public final UnaryCallable + updateAccessBindingCallable() { + return stub.updateAccessBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access binding on an account or property. * - * @param request The request object containing all of the parameters for the API call. + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AccessBindingName name =
+   *       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]");
+   *   analyticsAdminServiceClient.deleteAccessBinding(name);
+   * }
+   * }
+ * + * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksRequest request) { - return listBigQueryLinksPagedCallable().call(request); + public final void deleteAccessBinding(AccessBindingName name) { + DeleteAccessBindingRequest request = + DeleteAccessBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Deletes an access binding on an account or property. * *

Sample code: * @@ -10764,29 +10818,25 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListBigQueryLinksRequest request = - * ListBigQueryLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listBigQueryLinksPagedCallable().futureCall(request); - * // Do something. - * for (BigQueryLink element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); + * analyticsAdminServiceClient.deleteAccessBinding(name); * } * } + * + * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listBigQueryLinksPagedCallable() { - return stub.listBigQueryLinksPagedCallable(); + public final void deleteAccessBinding(String name) { + DeleteAccessBindingRequest request = + DeleteAccessBindingRequest.newBuilder().setName(name).build(); + deleteAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Deletes an access binding on an account or property. * *

Sample code: * @@ -10798,51 +10848,1600 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListBigQueryLinksRequest request = - * ListBigQueryLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteAccessBindingRequest request = + * DeleteAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) * .build(); - * while (true) { - * ListBigQueryLinksResponse response = - * analyticsAdminServiceClient.listBigQueryLinksCallable().call(request); - * for (BigQueryLink element : response.getBigqueryLinksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * analyticsAdminServiceClient.deleteAccessBinding(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listBigQueryLinksCallable() { - return stub.listBigQueryLinksCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); + public final void deleteAccessBinding(DeleteAccessBindingRequest request) { + deleteAccessBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access binding on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteAccessBindingRequest request =
+   *       DeleteAccessBindingRequest.newBuilder()
+   *           .setName(
+   *               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteAccessBindingCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAccessBindingCallable() { + return stub.deleteAccessBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all access bindings on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AccountName parent = AccountName.of("[ACCOUNT]");
+   *   for (AccessBinding element :
+   *       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessBindingsPagedResponse listAccessBindings(AccountName parent) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all access bindings on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (AccessBinding element :
+   *       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessBindingsPagedResponse listAccessBindings(PropertyName parent) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all access bindings on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = AccountName.of("[ACCOUNT]").toString();
+   *   for (AccessBinding element :
+   *       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessBindingsPagedResponse listAccessBindings(String parent) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder().setParent(parent).build(); + return listAccessBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all access bindings on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListAccessBindingsRequest request =
+   *       ListAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (AccessBinding element :
+   *       analyticsAdminServiceClient.listAccessBindings(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 ListAccessBindingsPagedResponse listAccessBindings( + ListAccessBindingsRequest request) { + return listAccessBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all access bindings on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListAccessBindingsRequest request =
+   *       ListAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listAccessBindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AccessBinding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessBindingsPagedCallable() { + return stub.listAccessBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all access bindings on an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListAccessBindingsRequest request =
+   *       ListAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAccessBindingsResponse response =
+   *         analyticsAdminServiceClient.listAccessBindingsCallable().call(request);
+   *     for (AccessBinding element : response.getAccessBindingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessBindingsCallable() { + return stub.listAccessBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates information about multiple access bindings to an account or property. + * + *

This method is transactional. If any AccessBinding cannot be created, none of the + * AccessBindings will be created. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchCreateAccessBindingsRequest request =
+   *       BatchCreateAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreateAccessBindingsResponse response =
+   *       analyticsAdminServiceClient.batchCreateAccessBindings(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 BatchCreateAccessBindingsResponse batchCreateAccessBindings( + BatchCreateAccessBindingsRequest request) { + return batchCreateAccessBindingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates information about multiple access bindings to an account or property. + * + *

This method is transactional. If any AccessBinding cannot be created, none of the + * AccessBindings will be created. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchCreateAccessBindingsRequest request =
+   *       BatchCreateAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.batchCreateAccessBindingsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCreateAccessBindingsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchCreateAccessBindingsCallable() { + return stub.batchCreateAccessBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about multiple access bindings to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchGetAccessBindingsRequest request =
+   *       BatchGetAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchGetAccessBindingsResponse response =
+   *       analyticsAdminServiceClient.batchGetAccessBindings(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 BatchGetAccessBindingsResponse batchGetAccessBindings( + BatchGetAccessBindingsRequest request) { + return batchGetAccessBindingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about multiple access bindings to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchGetAccessBindingsRequest request =
+   *       BatchGetAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.batchGetAccessBindingsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchGetAccessBindingsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchGetAccessBindingsCallable() { + return stub.batchGetAccessBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates information about multiple access bindings to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchUpdateAccessBindingsRequest request =
+   *       BatchUpdateAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdateAccessBindingsResponse response =
+   *       analyticsAdminServiceClient.batchUpdateAccessBindings(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 BatchUpdateAccessBindingsResponse batchUpdateAccessBindings( + BatchUpdateAccessBindingsRequest request) { + return batchUpdateAccessBindingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates information about multiple access bindings to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchUpdateAccessBindingsRequest request =
+   *       BatchUpdateAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.batchUpdateAccessBindingsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchUpdateAccessBindingsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchUpdateAccessBindingsCallable() { + return stub.batchUpdateAccessBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes information about multiple users' links to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchDeleteAccessBindingsRequest request =
+   *       BatchDeleteAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   analyticsAdminServiceClient.batchDeleteAccessBindings(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 batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request) { + batchDeleteAccessBindingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes information about multiple users' links to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchDeleteAccessBindingsRequest request =
+   *       BatchDeleteAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.batchDeleteAccessBindingsCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchDeleteAccessBindingsCallable() { + return stub.batchDeleteAccessBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]");
+   *   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Audience to get. Example format: + * properties/1234/expandedDataSets/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name) { + GetExpandedDataSetRequest request = + GetExpandedDataSetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString();
+   *   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Audience to get. Example format: + * properties/1234/expandedDataSets/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExpandedDataSet getExpandedDataSet(String name) { + GetExpandedDataSetRequest request = + GetExpandedDataSetRequest.newBuilder().setName(name).build(); + return getExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetExpandedDataSetRequest request =
+   *       GetExpandedDataSetRequest.newBuilder()
+   *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
+   *           .build();
+   *   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(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 ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest request) { + return getExpandedDataSetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetExpandedDataSetRequest request =
+   *       GetExpandedDataSetRequest.newBuilder()
+   *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getExpandedDataSetCallable().futureCall(request);
+   *   // Do something.
+   *   ExpandedDataSet response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getExpandedDataSetCallable() { + return stub.getExpandedDataSetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ExpandedDataSets on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (ExpandedDataSet element :
+   *       analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName parent) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listExpandedDataSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ExpandedDataSets on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   for (ExpandedDataSet element :
+   *       analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListExpandedDataSetsPagedResponse listExpandedDataSets(String parent) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder().setParent(parent).build(); + return listExpandedDataSets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ExpandedDataSets on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListExpandedDataSetsRequest request =
+   *       ListExpandedDataSetsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ExpandedDataSet element :
+   *       analyticsAdminServiceClient.listExpandedDataSets(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 ListExpandedDataSetsPagedResponse listExpandedDataSets( + ListExpandedDataSetsRequest request) { + return listExpandedDataSetsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ExpandedDataSets on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListExpandedDataSetsRequest request =
+   *       ListExpandedDataSetsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listExpandedDataSetsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ExpandedDataSet element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExpandedDataSetsPagedCallable() { + return stub.listExpandedDataSetsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ExpandedDataSets on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListExpandedDataSetsRequest request =
+   *       ListExpandedDataSetsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListExpandedDataSetsResponse response =
+   *         analyticsAdminServiceClient.listExpandedDataSetsCallable().call(request);
+   *     for (ExpandedDataSet element : response.getExpandedDataSetsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listExpandedDataSetsCallable() { + return stub.listExpandedDataSetsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
+   *   ExpandedDataSet response =
+   *       analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param expandedDataSet Required. The ExpandedDataSet to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExpandedDataSet createExpandedDataSet( + PropertyName parent, ExpandedDataSet expandedDataSet) { + CreateExpandedDataSetRequest request = + CreateExpandedDataSetRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setExpandedDataSet(expandedDataSet) + .build(); + return createExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
+   *   ExpandedDataSet response =
+   *       analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param expandedDataSet Required. The ExpandedDataSet to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExpandedDataSet createExpandedDataSet( + String parent, ExpandedDataSet expandedDataSet) { + CreateExpandedDataSetRequest request = + CreateExpandedDataSetRequest.newBuilder() + .setParent(parent) + .setExpandedDataSet(expandedDataSet) + .build(); + return createExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateExpandedDataSetRequest request =
+   *       CreateExpandedDataSetRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
+   *           .build();
+   *   ExpandedDataSet response = analyticsAdminServiceClient.createExpandedDataSet(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 ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest request) { + return createExpandedDataSetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ExpandedDataSet. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateExpandedDataSetRequest request =
+   *       CreateExpandedDataSetRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.createExpandedDataSetCallable().futureCall(request);
+   *   // Do something.
+   *   ExpandedDataSet response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createExpandedDataSetCallable() { + return stub.createExpandedDataSetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ExpandedDataSet response =
+   *       analyticsAdminServiceClient.updateExpandedDataSet(expandedDataSet, updateMask);
+   * }
+   * }
+ * + * @param expandedDataSet Required. The ExpandedDataSet to update. The resource's `name` field is + * used to identify the ExpandedDataSet to be updated. + * @param updateMask Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ExpandedDataSet updateExpandedDataSet( + ExpandedDataSet expandedDataSet, FieldMask updateMask) { + UpdateExpandedDataSetRequest request = + UpdateExpandedDataSetRequest.newBuilder() + .setExpandedDataSet(expandedDataSet) + .setUpdateMask(updateMask) + .build(); + return updateExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateExpandedDataSetRequest request =
+   *       UpdateExpandedDataSetRequest.newBuilder()
+   *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ExpandedDataSet response = analyticsAdminServiceClient.updateExpandedDataSet(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 ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest request) { + return updateExpandedDataSetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateExpandedDataSetRequest request =
+   *       UpdateExpandedDataSetRequest.newBuilder()
+   *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateExpandedDataSetCallable().futureCall(request);
+   *   // Do something.
+   *   ExpandedDataSet response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateExpandedDataSetCallable() { + return stub.updateExpandedDataSetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]");
+   *   analyticsAdminServiceClient.deleteExpandedDataSet(name);
+   * }
+   * }
+ * + * @param name Required. Example format: properties/1234/expandedDataSets/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExpandedDataSet(ExpandedDataSetName name) { + DeleteExpandedDataSetRequest request = + DeleteExpandedDataSetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString();
+   *   analyticsAdminServiceClient.deleteExpandedDataSet(name);
+   * }
+   * }
+ * + * @param name Required. Example format: properties/1234/expandedDataSets/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteExpandedDataSet(String name) { + DeleteExpandedDataSetRequest request = + DeleteExpandedDataSetRequest.newBuilder().setName(name).build(); + deleteExpandedDataSet(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteExpandedDataSetRequest request =
+   *       DeleteExpandedDataSetRequest.newBuilder()
+   *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
+   *           .build();
+   *   analyticsAdminServiceClient.deleteExpandedDataSet(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 deleteExpandedDataSet(DeleteExpandedDataSetRequest request) { + deleteExpandedDataSetCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ExpandedDataSet on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteExpandedDataSetRequest request =
+   *       DeleteExpandedDataSetRequest.newBuilder()
+   *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteExpandedDataSetCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteExpandedDataSetCallable() { + return stub.deleteExpandedDataSetCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has + * no effect on GA4 property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SetAutomatedGa4ConfigurationOptOutRequest request =
+   *       SetAutomatedGa4ConfigurationOptOutRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .setOptOut(true)
+   *           .build();
+   *   SetAutomatedGa4ConfigurationOptOutResponse response =
+   *       analyticsAdminServiceClient.setAutomatedGa4ConfigurationOptOut(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 SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut( + SetAutomatedGa4ConfigurationOptOutRequest request) { + return setAutomatedGa4ConfigurationOptOutCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has + * no effect on GA4 property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SetAutomatedGa4ConfigurationOptOutRequest request =
+   *       SetAutomatedGa4ConfigurationOptOutRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .setOptOut(true)
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .setAutomatedGa4ConfigurationOptOutCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   SetAutomatedGa4ConfigurationOptOutResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutCallable() { + return stub.setAutomatedGa4ConfigurationOptOutCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this + * has no effect on GA4 property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   FetchAutomatedGa4ConfigurationOptOutRequest request =
+   *       FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .build();
+   *   FetchAutomatedGa4ConfigurationOptOutResponse response =
+   *       analyticsAdminServiceClient.fetchAutomatedGa4ConfigurationOptOut(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 FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut( + FetchAutomatedGa4ConfigurationOptOutRequest request) { + return fetchAutomatedGa4ConfigurationOptOutCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this + * has no effect on GA4 property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   FetchAutomatedGa4ConfigurationOptOutRequest request =
+   *       FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .fetchAutomatedGa4ConfigurationOptOutCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   FetchAutomatedGa4ConfigurationOptOutResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutCallable() { + return stub.fetchAutomatedGa4ConfigurationOptOutCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single BigQuery Link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]");
+   *   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name);
+   * }
+   * }
+ * + * @param name Required. The name of the BigQuery link to lookup. Format: + * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: + * properties/123/bigQueryLinks/456 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { + GetBigQueryLinkRequest request = + GetBigQueryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBigQueryLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single BigQuery Link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString();
+   *   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name);
+   * }
+   * }
+ * + * @param name Required. The name of the BigQuery link to lookup. Format: + * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: + * properties/123/bigQueryLinks/456 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BigQueryLink getBigQueryLink(String name) { + GetBigQueryLinkRequest request = GetBigQueryLinkRequest.newBuilder().setName(name).build(); + return getBigQueryLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single BigQuery Link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetBigQueryLinkRequest request =
+   *       GetBigQueryLinkRequest.newBuilder()
+   *           .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString())
+   *           .build();
+   *   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(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 BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) { + return getBigQueryLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single BigQuery Link. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetBigQueryLinkRequest request =
+   *       GetBigQueryLinkRequest.newBuilder()
+   *           .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getBigQueryLinkCallable().futureCall(request);
+   *   // Do something.
+   *   BigQueryLink response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBigQueryLinkCallable() { + return stub.getBigQueryLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BigQuery Links on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (BigQueryLink element :
+   *       analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the property to list BigQuery links under. Format: + * properties/{property_id} Example: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent) { + ListBigQueryLinksRequest request = + ListBigQueryLinksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBigQueryLinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BigQuery Links on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   for (BigQueryLink element :
+   *       analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the property to list BigQuery links under. Format: + * properties/{property_id} Example: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) { + ListBigQueryLinksRequest request = + ListBigQueryLinksRequest.newBuilder().setParent(parent).build(); + return listBigQueryLinks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BigQuery Links on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListBigQueryLinksRequest request =
+   *       ListBigQueryLinksRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (BigQueryLink element :
+   *       analyticsAdminServiceClient.listBigQueryLinks(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 ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksRequest request) { + return listBigQueryLinksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BigQuery Links on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListBigQueryLinksRequest request =
+   *       ListBigQueryLinksRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listBigQueryLinksPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (BigQueryLink element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBigQueryLinksPagedCallable() { + return stub.listBigQueryLinksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists BigQuery Links on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListBigQueryLinksRequest request =
+   *       ListBigQueryLinksRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListBigQueryLinksResponse response =
+   *         analyticsAdminServiceClient.listBigQueryLinksCallable().call(request);
+   *     for (BigQueryLink element : response.getBigqueryLinksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBigQueryLinksCallable() { + return stub.listBigQueryLinksCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); } @Override @@ -12280,6 +13879,170 @@ protected ListSearchAds360LinksFixedSizeCollection createCollection( } } + public static class ListAccessBindingsPagedResponse + extends AbstractPagedListResponse< + ListAccessBindingsRequest, + ListAccessBindingsResponse, + AccessBinding, + ListAccessBindingsPage, + ListAccessBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAccessBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAccessBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAccessBindingsPagedResponse(ListAccessBindingsPage page) { + super(page, ListAccessBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAccessBindingsPage + extends AbstractPage< + ListAccessBindingsRequest, + ListAccessBindingsResponse, + AccessBinding, + ListAccessBindingsPage> { + + private ListAccessBindingsPage( + PageContext context, + ListAccessBindingsResponse response) { + super(context, response); + } + + private static ListAccessBindingsPage createEmptyPage() { + return new ListAccessBindingsPage(null, null); + } + + @Override + protected ListAccessBindingsPage createPage( + PageContext context, + ListAccessBindingsResponse response) { + return new ListAccessBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAccessBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAccessBindingsRequest, + ListAccessBindingsResponse, + AccessBinding, + ListAccessBindingsPage, + ListAccessBindingsFixedSizeCollection> { + + private ListAccessBindingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAccessBindingsFixedSizeCollection createEmptyCollection() { + return new ListAccessBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListAccessBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAccessBindingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListExpandedDataSetsPagedResponse + extends AbstractPagedListResponse< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ExpandedDataSet, + ListExpandedDataSetsPage, + ListExpandedDataSetsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListExpandedDataSetsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListExpandedDataSetsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListExpandedDataSetsPagedResponse(ListExpandedDataSetsPage page) { + super(page, ListExpandedDataSetsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListExpandedDataSetsPage + extends AbstractPage< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ExpandedDataSet, + ListExpandedDataSetsPage> { + + private ListExpandedDataSetsPage( + PageContext + context, + ListExpandedDataSetsResponse response) { + super(context, response); + } + + private static ListExpandedDataSetsPage createEmptyPage() { + return new ListExpandedDataSetsPage(null, null); + } + + @Override + protected ListExpandedDataSetsPage createPage( + PageContext + context, + ListExpandedDataSetsResponse response) { + return new ListExpandedDataSetsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListExpandedDataSetsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ExpandedDataSet, + ListExpandedDataSetsPage, + ListExpandedDataSetsFixedSizeCollection> { + + private ListExpandedDataSetsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListExpandedDataSetsFixedSizeCollection createEmptyCollection() { + return new ListExpandedDataSetsFixedSizeCollection(null, 0); + } + + @Override + protected ListExpandedDataSetsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListExpandedDataSetsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBigQueryLinksPagedResponse extends AbstractPagedListResponse< ListBigQueryLinksRequest, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index d9195900e7e3..2976bf31c38b 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -648,6 +650,94 @@ public UnaryCallSettings deleteSearchAds36 return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings(); } + /** Returns the object with the settings used for calls to createAccessBinding. */ + public UnaryCallSettings + createAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to getAccessBinding. */ + public UnaryCallSettings getAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateAccessBinding. */ + public UnaryCallSettings + updateAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteAccessBinding. */ + public UnaryCallSettings deleteAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to listAccessBindings. */ + public PagedCallSettings< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateAccessBindings. */ + public UnaryCallSettings + batchCreateAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .batchCreateAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchGetAccessBindings. */ + public UnaryCallSettings + batchGetAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchGetAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateAccessBindings. */ + public UnaryCallSettings + batchUpdateAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .batchUpdateAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteAccessBindings. */ + public UnaryCallSettings + batchDeleteAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .batchDeleteAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getExpandedDataSet. */ + public UnaryCallSettings + getExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to listExpandedDataSets. */ + public PagedCallSettings< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listExpandedDataSetsSettings(); + } + + /** Returns the object with the settings used for calls to createExpandedDataSet. */ + public UnaryCallSettings + createExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to updateExpandedDataSet. */ + public UnaryCallSettings + updateExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to deleteExpandedDataSet. */ + public UnaryCallSettings deleteExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteExpandedDataSetSettings(); + } + /** Returns the object with the settings used for calls to setAutomatedGa4ConfigurationOptOut. */ public UnaryCallSettings< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> @@ -1353,6 +1443,96 @@ public UnaryCallSettings.Builder archiveAudienceS return getStubSettingsBuilder().runAccessReportSettings(); } + /** Returns the builder for the settings used for calls to createAccessBinding. */ + public UnaryCallSettings.Builder + createAccessBindingSettings() { + return getStubSettingsBuilder().createAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to getAccessBinding. */ + public UnaryCallSettings.Builder + getAccessBindingSettings() { + return getStubSettingsBuilder().getAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateAccessBinding. */ + public UnaryCallSettings.Builder + updateAccessBindingSettings() { + return getStubSettingsBuilder().updateAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccessBinding. */ + public UnaryCallSettings.Builder + deleteAccessBindingSettings() { + return getStubSettingsBuilder().deleteAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to listAccessBindings. */ + public PagedCallSettings.Builder< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings() { + return getStubSettingsBuilder().listAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateAccessBindings. */ + public UnaryCallSettings.Builder< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsSettings() { + return getStubSettingsBuilder().batchCreateAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchGetAccessBindings. */ + public UnaryCallSettings.Builder + batchGetAccessBindingsSettings() { + return getStubSettingsBuilder().batchGetAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateAccessBindings. */ + public UnaryCallSettings.Builder< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsSettings() { + return getStubSettingsBuilder().batchUpdateAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteAccessBindings. */ + public UnaryCallSettings.Builder + batchDeleteAccessBindingsSettings() { + return getStubSettingsBuilder().batchDeleteAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getExpandedDataSet. */ + public UnaryCallSettings.Builder + getExpandedDataSetSettings() { + return getStubSettingsBuilder().getExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to listExpandedDataSets. */ + public PagedCallSettings.Builder< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings() { + return getStubSettingsBuilder().listExpandedDataSetsSettings(); + } + + /** Returns the builder for the settings used for calls to createExpandedDataSet. */ + public UnaryCallSettings.Builder + createExpandedDataSetSettings() { + return getStubSettingsBuilder().createExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to updateExpandedDataSet. */ + public UnaryCallSettings.Builder + updateExpandedDataSetSettings() { + return getStubSettingsBuilder().updateExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExpandedDataSet. */ + public UnaryCallSettings.Builder + deleteExpandedDataSetSettings() { + return getStubSettingsBuilder().deleteExpandedDataSetSettings(); + } + /** * Returns the builder for the settings used for calls to setAutomatedGa4ConfigurationOptOut. */ diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 799c904f270e..14066e1bec0c 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -28,21 +28,36 @@ "AuditUserLinks": { "methods": ["auditUserLinks", "auditUserLinksPagedCallable", "auditUserLinksCallable"] }, + "BatchCreateAccessBindings": { + "methods": ["batchCreateAccessBindings", "batchCreateAccessBindingsCallable"] + }, "BatchCreateUserLinks": { "methods": ["batchCreateUserLinks", "batchCreateUserLinksCallable"] }, + "BatchDeleteAccessBindings": { + "methods": ["batchDeleteAccessBindings", "batchDeleteAccessBindingsCallable"] + }, "BatchDeleteUserLinks": { "methods": ["batchDeleteUserLinks", "batchDeleteUserLinksCallable"] }, + "BatchGetAccessBindings": { + "methods": ["batchGetAccessBindings", "batchGetAccessBindingsCallable"] + }, "BatchGetUserLinks": { "methods": ["batchGetUserLinks", "batchGetUserLinksCallable"] }, + "BatchUpdateAccessBindings": { + "methods": ["batchUpdateAccessBindings", "batchUpdateAccessBindingsCallable"] + }, "BatchUpdateUserLinks": { "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] }, "CancelDisplayVideo360AdvertiserLinkProposal": { "methods": ["cancelDisplayVideo360AdvertiserLinkProposal", "cancelDisplayVideo360AdvertiserLinkProposalCallable"] }, + "CreateAccessBinding": { + "methods": ["createAccessBinding", "createAccessBinding", "createAccessBinding", "createAccessBinding", "createAccessBindingCallable"] + }, "CreateAudience": { "methods": ["createAudience", "createAudience", "createAudience", "createAudienceCallable"] }, @@ -64,6 +79,9 @@ "CreateDisplayVideo360AdvertiserLinkProposal": { "methods": ["createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposalCallable"] }, + "CreateExpandedDataSet": { + "methods": ["createExpandedDataSet", "createExpandedDataSet", "createExpandedDataSet", "createExpandedDataSetCallable"] + }, "CreateFirebaseLink": { "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] }, @@ -82,6 +100,9 @@ "CreateUserLink": { "methods": ["createUserLink", "createUserLink", "createUserLink", "createUserLink", "createUserLinkCallable"] }, + "DeleteAccessBinding": { + "methods": ["deleteAccessBinding", "deleteAccessBinding", "deleteAccessBinding", "deleteAccessBindingCallable"] + }, "DeleteAccount": { "methods": ["deleteAccount", "deleteAccount", "deleteAccount", "deleteAccountCallable"] }, @@ -97,6 +118,9 @@ "DeleteDisplayVideo360AdvertiserLinkProposal": { "methods": ["deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposalCallable"] }, + "DeleteExpandedDataSet": { + "methods": ["deleteExpandedDataSet", "deleteExpandedDataSet", "deleteExpandedDataSet", "deleteExpandedDataSetCallable"] + }, "DeleteFirebaseLink": { "methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"] }, @@ -118,6 +142,9 @@ "FetchAutomatedGa4ConfigurationOptOut": { "methods": ["fetchAutomatedGa4ConfigurationOptOut", "fetchAutomatedGa4ConfigurationOptOutCallable"] }, + "GetAccessBinding": { + "methods": ["getAccessBinding", "getAccessBinding", "getAccessBinding", "getAccessBindingCallable"] + }, "GetAccount": { "methods": ["getAccount", "getAccount", "getAccount", "getAccountCallable"] }, @@ -154,6 +181,9 @@ "GetDisplayVideo360AdvertiserLinkProposal": { "methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"] }, + "GetExpandedDataSet": { + "methods": ["getExpandedDataSet", "getExpandedDataSet", "getExpandedDataSet", "getExpandedDataSetCallable"] + }, "GetGlobalSiteTag": { "methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"] }, @@ -172,6 +202,9 @@ "GetUserLink": { "methods": ["getUserLink", "getUserLink", "getUserLink", "getUserLinkCallable"] }, + "ListAccessBindings": { + "methods": ["listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindingsPagedCallable", "listAccessBindingsCallable"] + }, "ListAccountSummaries": { "methods": ["listAccountSummaries", "listAccountSummariesPagedCallable", "listAccountSummariesCallable"] }, @@ -202,6 +235,9 @@ "ListDisplayVideo360AdvertiserLinks": { "methods": ["listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinksPagedCallable", "listDisplayVideo360AdvertiserLinksCallable"] }, + "ListExpandedDataSets": { + "methods": ["listExpandedDataSets", "listExpandedDataSets", "listExpandedDataSets", "listExpandedDataSetsPagedCallable", "listExpandedDataSetsCallable"] + }, "ListFirebaseLinks": { "methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"] }, @@ -232,6 +268,9 @@ "SetAutomatedGa4ConfigurationOptOut": { "methods": ["setAutomatedGa4ConfigurationOptOut", "setAutomatedGa4ConfigurationOptOutCallable"] }, + "UpdateAccessBinding": { + "methods": ["updateAccessBinding", "updateAccessBinding", "updateAccessBindingCallable"] + }, "UpdateAccount": { "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] }, @@ -256,6 +295,9 @@ "UpdateDisplayVideo360AdvertiserLink": { "methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"] }, + "UpdateExpandedDataSet": { + "methods": ["updateExpandedDataSet", "updateExpandedDataSet", "updateExpandedDataSetCallable"] + }, "UpdateGoogleAdsLink": { "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 2cec2b797d68..d3a45e54a4a2 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha.stub; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -35,6 +37,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; +import com.google.analytics.admin.v1alpha.AccessBinding; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; @@ -47,16 +50,24 @@ import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; @@ -64,6 +75,7 @@ import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -75,11 +87,13 @@ import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; @@ -88,9 +102,11 @@ import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.GetAudienceRequest; @@ -103,6 +119,7 @@ import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; @@ -112,6 +129,8 @@ import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; @@ -132,6 +151,8 @@ import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -155,6 +176,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; @@ -163,6 +185,7 @@ import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; @@ -685,6 +708,80 @@ public UnaryCallable runAccessR throw new UnsupportedOperationException("Not implemented: runAccessReportCallable()"); } + public UnaryCallable createAccessBindingCallable() { + throw new UnsupportedOperationException("Not implemented: createAccessBindingCallable()"); + } + + public UnaryCallable getAccessBindingCallable() { + throw new UnsupportedOperationException("Not implemented: getAccessBindingCallable()"); + } + + public UnaryCallable updateAccessBindingCallable() { + throw new UnsupportedOperationException("Not implemented: updateAccessBindingCallable()"); + } + + public UnaryCallable deleteAccessBindingCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAccessBindingCallable()"); + } + + public UnaryCallable + listAccessBindingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessBindingsPagedCallable()"); + } + + public UnaryCallable + listAccessBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessBindingsCallable()"); + } + + public UnaryCallable + batchCreateAccessBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateAccessBindingsCallable()"); + } + + public UnaryCallable + batchGetAccessBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: batchGetAccessBindingsCallable()"); + } + + public UnaryCallable + batchUpdateAccessBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateAccessBindingsCallable()"); + } + + public UnaryCallable + batchDeleteAccessBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeleteAccessBindingsCallable()"); + } + + public UnaryCallable getExpandedDataSetCallable() { + throw new UnsupportedOperationException("Not implemented: getExpandedDataSetCallable()"); + } + + public UnaryCallable + listExpandedDataSetsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listExpandedDataSetsPagedCallable()"); + } + + public UnaryCallable + listExpandedDataSetsCallable() { + throw new UnsupportedOperationException("Not implemented: listExpandedDataSetsCallable()"); + } + + public UnaryCallable + createExpandedDataSetCallable() { + throw new UnsupportedOperationException("Not implemented: createExpandedDataSetCallable()"); + } + + public UnaryCallable + updateExpandedDataSetCallable() { + throw new UnsupportedOperationException("Not implemented: updateExpandedDataSetCallable()"); + } + + public UnaryCallable deleteExpandedDataSetCallable() { + throw new UnsupportedOperationException("Not implemented: deleteExpandedDataSetCallable()"); + } + public UnaryCallable< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutCallable() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index d66ff9257ab6..e517121f9d04 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha.stub; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -35,6 +37,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; +import com.google.analytics.admin.v1alpha.AccessBinding; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AccountSummary; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; @@ -49,17 +52,25 @@ import com.google.analytics.admin.v1alpha.AuditUserLink; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; @@ -67,6 +78,7 @@ import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -78,11 +90,13 @@ import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; @@ -91,9 +105,11 @@ import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.GetAudienceRequest; @@ -106,6 +122,7 @@ import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; @@ -115,6 +132,8 @@ import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; @@ -135,6 +154,8 @@ import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -158,6 +179,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; @@ -166,6 +188,7 @@ import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; @@ -445,6 +468,38 @@ public class AnalyticsAdminServiceStubSettings updateAttributionSettingsSettings; private final UnaryCallSettings runAccessReportSettings; + private final UnaryCallSettings + createAccessBindingSettings; + private final UnaryCallSettings getAccessBindingSettings; + private final UnaryCallSettings + updateAccessBindingSettings; + private final UnaryCallSettings deleteAccessBindingSettings; + private final PagedCallSettings< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings; + private final UnaryCallSettings< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsSettings; + private final UnaryCallSettings + batchGetAccessBindingsSettings; + private final UnaryCallSettings< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsSettings; + private final UnaryCallSettings + batchDeleteAccessBindingsSettings; + private final UnaryCallSettings + getExpandedDataSetSettings; + private final PagedCallSettings< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings; + private final UnaryCallSettings + createExpandedDataSetSettings; + private final UnaryCallSettings + updateExpandedDataSetSettings; + private final UnaryCallSettings + deleteExpandedDataSetSettings; private final UnaryCallSettings< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutSettings; @@ -1157,6 +1212,87 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> + LIST_ACCESS_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAccessBindingsRequest injectToken( + ListAccessBindingsRequest payload, String token) { + return ListAccessBindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAccessBindingsRequest injectPageSize( + ListAccessBindingsRequest payload, int pageSize) { + return ListAccessBindingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAccessBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAccessBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAccessBindingsResponse payload) { + return payload.getAccessBindingsList() == null + ? ImmutableList.of() + : payload.getAccessBindingsList(); + } + }; + + private static final PagedListDescriptor< + ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet> + LIST_EXPANDED_DATA_SETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListExpandedDataSetsRequest injectToken( + ListExpandedDataSetsRequest payload, String token) { + return ListExpandedDataSetsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListExpandedDataSetsRequest injectPageSize( + ListExpandedDataSetsRequest payload, int pageSize) { + return ListExpandedDataSetsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListExpandedDataSetsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListExpandedDataSetsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListExpandedDataSetsResponse payload) { + return payload.getExpandedDataSetsList() == null + ? ImmutableList.of() + : payload.getExpandedDataSetsList(); + } + }; + private static final PagedListDescriptor< ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> LIST_BIG_QUERY_LINKS_PAGE_STR_DESC = @@ -1588,6 +1724,51 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + LIST_ACCESS_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAccessBindingsRequest, + ListAccessBindingsResponse, + ListAccessBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAccessBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ACCESS_BINDINGS_PAGE_STR_DESC, request, context); + return ListAccessBindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + LIST_EXPANDED_DATA_SETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListExpandedDataSetsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet> + pageContext = + PageContext.create( + callable, LIST_EXPANDED_DATA_SETS_PAGE_STR_DESC, request, context); + return ListExpandedDataSetsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse> LIST_BIG_QUERY_LINKS_PAGE_STR_FACT = @@ -2138,6 +2319,91 @@ public UnaryCallSettings deleteSearchAds36 return runAccessReportSettings; } + /** Returns the object with the settings used for calls to createAccessBinding. */ + public UnaryCallSettings + createAccessBindingSettings() { + return createAccessBindingSettings; + } + + /** Returns the object with the settings used for calls to getAccessBinding. */ + public UnaryCallSettings getAccessBindingSettings() { + return getAccessBindingSettings; + } + + /** Returns the object with the settings used for calls to updateAccessBinding. */ + public UnaryCallSettings + updateAccessBindingSettings() { + return updateAccessBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteAccessBinding. */ + public UnaryCallSettings deleteAccessBindingSettings() { + return deleteAccessBindingSettings; + } + + /** Returns the object with the settings used for calls to listAccessBindings. */ + public PagedCallSettings< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings() { + return listAccessBindingsSettings; + } + + /** Returns the object with the settings used for calls to batchCreateAccessBindings. */ + public UnaryCallSettings + batchCreateAccessBindingsSettings() { + return batchCreateAccessBindingsSettings; + } + + /** Returns the object with the settings used for calls to batchGetAccessBindings. */ + public UnaryCallSettings + batchGetAccessBindingsSettings() { + return batchGetAccessBindingsSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateAccessBindings. */ + public UnaryCallSettings + batchUpdateAccessBindingsSettings() { + return batchUpdateAccessBindingsSettings; + } + + /** Returns the object with the settings used for calls to batchDeleteAccessBindings. */ + public UnaryCallSettings + batchDeleteAccessBindingsSettings() { + return batchDeleteAccessBindingsSettings; + } + + /** Returns the object with the settings used for calls to getExpandedDataSet. */ + public UnaryCallSettings + getExpandedDataSetSettings() { + return getExpandedDataSetSettings; + } + + /** Returns the object with the settings used for calls to listExpandedDataSets. */ + public PagedCallSettings< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings() { + return listExpandedDataSetsSettings; + } + + /** Returns the object with the settings used for calls to createExpandedDataSet. */ + public UnaryCallSettings + createExpandedDataSetSettings() { + return createExpandedDataSetSettings; + } + + /** Returns the object with the settings used for calls to updateExpandedDataSet. */ + public UnaryCallSettings + updateExpandedDataSetSettings() { + return updateExpandedDataSetSettings; + } + + /** Returns the object with the settings used for calls to deleteExpandedDataSet. */ + public UnaryCallSettings deleteExpandedDataSetSettings() { + return deleteExpandedDataSetSettings; + } + /** Returns the object with the settings used for calls to setAutomatedGa4ConfigurationOptOut. */ public UnaryCallSettings< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> @@ -2375,6 +2641,20 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getAttributionSettingsSettings = settingsBuilder.getAttributionSettingsSettings().build(); updateAttributionSettingsSettings = settingsBuilder.updateAttributionSettingsSettings().build(); runAccessReportSettings = settingsBuilder.runAccessReportSettings().build(); + createAccessBindingSettings = settingsBuilder.createAccessBindingSettings().build(); + getAccessBindingSettings = settingsBuilder.getAccessBindingSettings().build(); + updateAccessBindingSettings = settingsBuilder.updateAccessBindingSettings().build(); + deleteAccessBindingSettings = settingsBuilder.deleteAccessBindingSettings().build(); + listAccessBindingsSettings = settingsBuilder.listAccessBindingsSettings().build(); + batchCreateAccessBindingsSettings = settingsBuilder.batchCreateAccessBindingsSettings().build(); + batchGetAccessBindingsSettings = settingsBuilder.batchGetAccessBindingsSettings().build(); + batchUpdateAccessBindingsSettings = settingsBuilder.batchUpdateAccessBindingsSettings().build(); + batchDeleteAccessBindingsSettings = settingsBuilder.batchDeleteAccessBindingsSettings().build(); + getExpandedDataSetSettings = settingsBuilder.getExpandedDataSetSettings().build(); + listExpandedDataSetsSettings = settingsBuilder.listExpandedDataSetsSettings().build(); + createExpandedDataSetSettings = settingsBuilder.createExpandedDataSetSettings().build(); + updateExpandedDataSetSettings = settingsBuilder.updateExpandedDataSetSettings().build(); + deleteExpandedDataSetSettings = settingsBuilder.deleteExpandedDataSetSettings().build(); setAutomatedGa4ConfigurationOptOutSettings = settingsBuilder.setAutomatedGa4ConfigurationOptOutSettings().build(); fetchAutomatedGa4ConfigurationOptOutSettings = @@ -2592,6 +2872,41 @@ public static class Builder updateAttributionSettingsSettings; private final UnaryCallSettings.Builder runAccessReportSettings; + private final UnaryCallSettings.Builder + createAccessBindingSettings; + private final UnaryCallSettings.Builder + getAccessBindingSettings; + private final UnaryCallSettings.Builder + updateAccessBindingSettings; + private final UnaryCallSettings.Builder + deleteAccessBindingSettings; + private final PagedCallSettings.Builder< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings; + private final UnaryCallSettings.Builder< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsSettings; + private final UnaryCallSettings.Builder< + BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> + batchGetAccessBindingsSettings; + private final UnaryCallSettings.Builder< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsSettings; + private final UnaryCallSettings.Builder + batchDeleteAccessBindingsSettings; + private final UnaryCallSettings.Builder + getExpandedDataSetSettings; + private final PagedCallSettings.Builder< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings; + private final UnaryCallSettings.Builder + createExpandedDataSetSettings; + private final UnaryCallSettings.Builder + updateExpandedDataSetSettings; + private final UnaryCallSettings.Builder + deleteExpandedDataSetSettings; private final UnaryCallSettings.Builder< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutSettings; @@ -2753,6 +3068,21 @@ protected Builder(ClientContext clientContext) { getAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); runAccessReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAccessBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAccessBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAccessBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAccessBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAccessBindingsSettings = PagedCallSettings.newBuilder(LIST_ACCESS_BINDINGS_PAGE_STR_FACT); + batchCreateAccessBindingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchGetAccessBindingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateAccessBindingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeleteAccessBindingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getExpandedDataSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listExpandedDataSetsSettings = + PagedCallSettings.newBuilder(LIST_EXPANDED_DATA_SETS_PAGE_STR_FACT); + createExpandedDataSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateExpandedDataSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteExpandedDataSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setAutomatedGa4ConfigurationOptOutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); fetchAutomatedGa4ConfigurationOptOutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2845,6 +3175,20 @@ protected Builder(ClientContext clientContext) { getAttributionSettingsSettings, updateAttributionSettingsSettings, runAccessReportSettings, + createAccessBindingSettings, + getAccessBindingSettings, + updateAccessBindingSettings, + deleteAccessBindingSettings, + listAccessBindingsSettings, + batchCreateAccessBindingsSettings, + batchGetAccessBindingsSettings, + batchUpdateAccessBindingsSettings, + batchDeleteAccessBindingsSettings, + getExpandedDataSetSettings, + listExpandedDataSetsSettings, + createExpandedDataSetSettings, + updateExpandedDataSetSettings, + deleteExpandedDataSetSettings, setAutomatedGa4ConfigurationOptOutSettings, fetchAutomatedGa4ConfigurationOptOutSettings, getBigQueryLinkSettings, @@ -2958,6 +3302,20 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getAttributionSettingsSettings = settings.getAttributionSettingsSettings.toBuilder(); updateAttributionSettingsSettings = settings.updateAttributionSettingsSettings.toBuilder(); runAccessReportSettings = settings.runAccessReportSettings.toBuilder(); + createAccessBindingSettings = settings.createAccessBindingSettings.toBuilder(); + getAccessBindingSettings = settings.getAccessBindingSettings.toBuilder(); + updateAccessBindingSettings = settings.updateAccessBindingSettings.toBuilder(); + deleteAccessBindingSettings = settings.deleteAccessBindingSettings.toBuilder(); + listAccessBindingsSettings = settings.listAccessBindingsSettings.toBuilder(); + batchCreateAccessBindingsSettings = settings.batchCreateAccessBindingsSettings.toBuilder(); + batchGetAccessBindingsSettings = settings.batchGetAccessBindingsSettings.toBuilder(); + batchUpdateAccessBindingsSettings = settings.batchUpdateAccessBindingsSettings.toBuilder(); + batchDeleteAccessBindingsSettings = settings.batchDeleteAccessBindingsSettings.toBuilder(); + getExpandedDataSetSettings = settings.getExpandedDataSetSettings.toBuilder(); + listExpandedDataSetsSettings = settings.listExpandedDataSetsSettings.toBuilder(); + createExpandedDataSetSettings = settings.createExpandedDataSetSettings.toBuilder(); + updateExpandedDataSetSettings = settings.updateExpandedDataSetSettings.toBuilder(); + deleteExpandedDataSetSettings = settings.deleteExpandedDataSetSettings.toBuilder(); setAutomatedGa4ConfigurationOptOutSettings = settings.setAutomatedGa4ConfigurationOptOutSettings.toBuilder(); fetchAutomatedGa4ConfigurationOptOutSettings = @@ -3051,6 +3409,20 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getAttributionSettingsSettings, updateAttributionSettingsSettings, runAccessReportSettings, + createAccessBindingSettings, + getAccessBindingSettings, + updateAccessBindingSettings, + deleteAccessBindingSettings, + listAccessBindingsSettings, + batchCreateAccessBindingsSettings, + batchGetAccessBindingsSettings, + batchUpdateAccessBindingsSettings, + batchDeleteAccessBindingsSettings, + getExpandedDataSetSettings, + listExpandedDataSetsSettings, + createExpandedDataSetSettings, + updateExpandedDataSetSettings, + deleteExpandedDataSetSettings, setAutomatedGa4ConfigurationOptOutSettings, fetchAutomatedGa4ConfigurationOptOutSettings, getBigQueryLinkSettings, @@ -3504,6 +3876,76 @@ 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 + .createAccessBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAccessBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAccessBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAccessBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAccessBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchCreateAccessBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchGetAccessBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchUpdateAccessBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .batchDeleteAccessBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getExpandedDataSetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listExpandedDataSetsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createExpandedDataSetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateExpandedDataSetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteExpandedDataSetSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .setAutomatedGa4ConfigurationOptOutSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -4101,6 +4543,96 @@ public UnaryCallSettings.Builder archiveAudienceS return runAccessReportSettings; } + /** Returns the builder for the settings used for calls to createAccessBinding. */ + public UnaryCallSettings.Builder + createAccessBindingSettings() { + return createAccessBindingSettings; + } + + /** Returns the builder for the settings used for calls to getAccessBinding. */ + public UnaryCallSettings.Builder + getAccessBindingSettings() { + return getAccessBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateAccessBinding. */ + public UnaryCallSettings.Builder + updateAccessBindingSettings() { + return updateAccessBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteAccessBinding. */ + public UnaryCallSettings.Builder + deleteAccessBindingSettings() { + return deleteAccessBindingSettings; + } + + /** Returns the builder for the settings used for calls to listAccessBindings. */ + public PagedCallSettings.Builder< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings() { + return listAccessBindingsSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateAccessBindings. */ + public UnaryCallSettings.Builder< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsSettings() { + return batchCreateAccessBindingsSettings; + } + + /** Returns the builder for the settings used for calls to batchGetAccessBindings. */ + public UnaryCallSettings.Builder + batchGetAccessBindingsSettings() { + return batchGetAccessBindingsSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateAccessBindings. */ + public UnaryCallSettings.Builder< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsSettings() { + return batchUpdateAccessBindingsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeleteAccessBindings. */ + public UnaryCallSettings.Builder + batchDeleteAccessBindingsSettings() { + return batchDeleteAccessBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getExpandedDataSet. */ + public UnaryCallSettings.Builder + getExpandedDataSetSettings() { + return getExpandedDataSetSettings; + } + + /** Returns the builder for the settings used for calls to listExpandedDataSets. */ + public PagedCallSettings.Builder< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings() { + return listExpandedDataSetsSettings; + } + + /** Returns the builder for the settings used for calls to createExpandedDataSet. */ + public UnaryCallSettings.Builder + createExpandedDataSetSettings() { + return createExpandedDataSetSettings; + } + + /** Returns the builder for the settings used for calls to updateExpandedDataSet. */ + public UnaryCallSettings.Builder + updateExpandedDataSetSettings() { + return updateExpandedDataSetSettings; + } + + /** Returns the builder for the settings used for calls to deleteExpandedDataSet. */ + public UnaryCallSettings.Builder + deleteExpandedDataSetSettings() { + return deleteExpandedDataSetSettings; + } + /** * Returns the builder for the settings used for calls to setAutomatedGa4ConfigurationOptOut. */ diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 0463c28a4973..044f4bfc173c 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha.stub; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -35,6 +37,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; +import com.google.analytics.admin.v1alpha.AccessBinding; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; @@ -47,16 +50,24 @@ import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; @@ -64,6 +75,7 @@ import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -75,11 +87,13 @@ import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; @@ -88,9 +102,11 @@ import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.GetAudienceRequest; @@ -103,6 +119,7 @@ import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; @@ -112,6 +129,8 @@ import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; @@ -132,6 +151,8 @@ import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -155,6 +176,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; @@ -163,6 +185,7 @@ import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; @@ -1211,6 +1234,171 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(RunAccessReportResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + createAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAccessBindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchCreateAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchCreateAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> + batchGetAccessBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchGetAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchGetAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchUpdateAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchUpdateAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchDeleteAccessBindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(GetExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listExpandedDataSetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExpandedDataSetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExpandedDataSetsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutMethodDescriptor = @@ -1455,6 +1643,35 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { updateAttributionSettingsCallable; private final UnaryCallable runAccessReportCallable; + private final UnaryCallable + createAccessBindingCallable; + private final UnaryCallable getAccessBindingCallable; + private final UnaryCallable + updateAccessBindingCallable; + private final UnaryCallable deleteAccessBindingCallable; + private final UnaryCallable + listAccessBindingsCallable; + private final UnaryCallable + listAccessBindingsPagedCallable; + private final UnaryCallable + batchCreateAccessBindingsCallable; + private final UnaryCallable + batchGetAccessBindingsCallable; + private final UnaryCallable + batchUpdateAccessBindingsCallable; + private final UnaryCallable + batchDeleteAccessBindingsCallable; + private final UnaryCallable + getExpandedDataSetCallable; + private final UnaryCallable + listExpandedDataSetsCallable; + private final UnaryCallable + listExpandedDataSetsPagedCallable; + private final UnaryCallable + createExpandedDataSetCallable; + private final UnaryCallable + updateExpandedDataSetCallable; + private final UnaryCallable deleteExpandedDataSetCallable; private final UnaryCallable< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutCallable; @@ -2432,6 +2649,164 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings + createAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "access_binding.name", + String.valueOf(request.getAccessBinding().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listAccessBindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + batchCreateAccessBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchCreateAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + batchGetAccessBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchGetAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + batchUpdateAccessBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchUpdateAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + batchDeleteAccessBindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listExpandedDataSetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExpandedDataSetsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + createExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "expanded_data_set.name", + String.valueOf(request.getExpandedDataSet().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutTransportSettings = @@ -2910,6 +3285,84 @@ protected GrpcAnalyticsAdminServiceStub( this.runAccessReportCallable = callableFactory.createUnaryCallable( runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); + this.createAccessBindingCallable = + callableFactory.createUnaryCallable( + createAccessBindingTransportSettings, + settings.createAccessBindingSettings(), + clientContext); + this.getAccessBindingCallable = + callableFactory.createUnaryCallable( + getAccessBindingTransportSettings, settings.getAccessBindingSettings(), clientContext); + this.updateAccessBindingCallable = + callableFactory.createUnaryCallable( + updateAccessBindingTransportSettings, + settings.updateAccessBindingSettings(), + clientContext); + this.deleteAccessBindingCallable = + callableFactory.createUnaryCallable( + deleteAccessBindingTransportSettings, + settings.deleteAccessBindingSettings(), + clientContext); + this.listAccessBindingsCallable = + callableFactory.createUnaryCallable( + listAccessBindingsTransportSettings, + settings.listAccessBindingsSettings(), + clientContext); + this.listAccessBindingsPagedCallable = + callableFactory.createPagedCallable( + listAccessBindingsTransportSettings, + settings.listAccessBindingsSettings(), + clientContext); + this.batchCreateAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchCreateAccessBindingsTransportSettings, + settings.batchCreateAccessBindingsSettings(), + clientContext); + this.batchGetAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchGetAccessBindingsTransportSettings, + settings.batchGetAccessBindingsSettings(), + clientContext); + this.batchUpdateAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchUpdateAccessBindingsTransportSettings, + settings.batchUpdateAccessBindingsSettings(), + clientContext); + this.batchDeleteAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchDeleteAccessBindingsTransportSettings, + settings.batchDeleteAccessBindingsSettings(), + clientContext); + this.getExpandedDataSetCallable = + callableFactory.createUnaryCallable( + getExpandedDataSetTransportSettings, + settings.getExpandedDataSetSettings(), + clientContext); + this.listExpandedDataSetsCallable = + callableFactory.createUnaryCallable( + listExpandedDataSetsTransportSettings, + settings.listExpandedDataSetsSettings(), + clientContext); + this.listExpandedDataSetsPagedCallable = + callableFactory.createPagedCallable( + listExpandedDataSetsTransportSettings, + settings.listExpandedDataSetsSettings(), + clientContext); + this.createExpandedDataSetCallable = + callableFactory.createUnaryCallable( + createExpandedDataSetTransportSettings, + settings.createExpandedDataSetSettings(), + clientContext); + this.updateExpandedDataSetCallable = + callableFactory.createUnaryCallable( + updateExpandedDataSetTransportSettings, + settings.updateExpandedDataSetSettings(), + clientContext); + this.deleteExpandedDataSetCallable = + callableFactory.createUnaryCallable( + deleteExpandedDataSetTransportSettings, + settings.deleteExpandedDataSetSettings(), + clientContext); this.setAutomatedGa4ConfigurationOptOutCallable = callableFactory.createUnaryCallable( setAutomatedGa4ConfigurationOptOutTransportSettings, @@ -3518,6 +3971,96 @@ public UnaryCallable runAccessR return runAccessReportCallable; } + @Override + public UnaryCallable createAccessBindingCallable() { + return createAccessBindingCallable; + } + + @Override + public UnaryCallable getAccessBindingCallable() { + return getAccessBindingCallable; + } + + @Override + public UnaryCallable updateAccessBindingCallable() { + return updateAccessBindingCallable; + } + + @Override + public UnaryCallable deleteAccessBindingCallable() { + return deleteAccessBindingCallable; + } + + @Override + public UnaryCallable + listAccessBindingsCallable() { + return listAccessBindingsCallable; + } + + @Override + public UnaryCallable + listAccessBindingsPagedCallable() { + return listAccessBindingsPagedCallable; + } + + @Override + public UnaryCallable + batchCreateAccessBindingsCallable() { + return batchCreateAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchGetAccessBindingsCallable() { + return batchGetAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchUpdateAccessBindingsCallable() { + return batchUpdateAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchDeleteAccessBindingsCallable() { + return batchDeleteAccessBindingsCallable; + } + + @Override + public UnaryCallable getExpandedDataSetCallable() { + return getExpandedDataSetCallable; + } + + @Override + public UnaryCallable + listExpandedDataSetsCallable() { + return listExpandedDataSetsCallable; + } + + @Override + public UnaryCallable + listExpandedDataSetsPagedCallable() { + return listExpandedDataSetsPagedCallable; + } + + @Override + public UnaryCallable + createExpandedDataSetCallable() { + return createExpandedDataSetCallable; + } + + @Override + public UnaryCallable + updateExpandedDataSetCallable() { + return updateExpandedDataSetCallable; + } + + @Override + public UnaryCallable deleteExpandedDataSetCallable() { + return deleteExpandedDataSetCallable; + } + @Override public UnaryCallable< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index 6350fd7afc03..cefc8ff5418b 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha.stub; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -35,6 +37,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; +import com.google.analytics.admin.v1alpha.AccessBinding; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; @@ -47,16 +50,24 @@ import com.google.analytics.admin.v1alpha.Audience; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; import com.google.analytics.admin.v1alpha.CreateAudienceRequest; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; @@ -64,6 +75,7 @@ import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -75,11 +87,13 @@ import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; @@ -88,9 +102,11 @@ import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.GetAudienceRequest; @@ -103,6 +119,7 @@ import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; @@ -112,6 +129,8 @@ import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; @@ -132,6 +151,8 @@ import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -155,6 +176,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; @@ -163,6 +185,7 @@ import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; @@ -3455,6 +3478,548 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor + createAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=accounts/*}/accessBindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessBinding", request.getAccessBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=accounts/*/accessBindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1alpha/{name=properties/*/accessBindings/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{accessBinding.name=accounts/*/accessBindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "accessBinding.name", request.getAccessBinding().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{accessBinding.name=properties/*/accessBindings/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessBinding", request.getAccessBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessBinding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=accounts/*/accessBindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1alpha/{name=properties/*/accessBindings/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAccessBindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=accounts/*}/accessBindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAccessBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=accounts/*}/accessBindings:batchCreate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=properties/*}/accessBindings:batchCreate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateAccessBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> + batchGetAccessBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=accounts/*}/accessBindings:batchGet", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings:batchGet") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "names", request.getNamesList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchGetAccessBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=properties/*}/accessBindings:batchUpdate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateAccessBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchDeleteAccessBindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=accounts/*}/accessBindings:batchDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=properties/*}/accessBindings:batchDelete") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/expandedDataSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListExpandedDataSetsRequest, ListExpandedDataSetsResponse> + listExpandedDataSetsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=properties/*}/expandedDataSets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExpandedDataSetsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=properties/*}/expandedDataSets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("expandedDataSet", request.getExpandedDataSet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{expandedDataSet.name=properties/*/expandedDataSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "expandedDataSet.name", + request.getExpandedDataSet().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("expandedDataSet", request.getExpandedDataSet(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/expandedDataSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutMethodDescriptor = @@ -3800,6 +4365,35 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub updateAttributionSettingsCallable; private final UnaryCallable runAccessReportCallable; + private final UnaryCallable + createAccessBindingCallable; + private final UnaryCallable getAccessBindingCallable; + private final UnaryCallable + updateAccessBindingCallable; + private final UnaryCallable deleteAccessBindingCallable; + private final UnaryCallable + listAccessBindingsCallable; + private final UnaryCallable + listAccessBindingsPagedCallable; + private final UnaryCallable + batchCreateAccessBindingsCallable; + private final UnaryCallable + batchGetAccessBindingsCallable; + private final UnaryCallable + batchUpdateAccessBindingsCallable; + private final UnaryCallable + batchDeleteAccessBindingsCallable; + private final UnaryCallable + getExpandedDataSetCallable; + private final UnaryCallable + listExpandedDataSetsCallable; + private final UnaryCallable + listExpandedDataSetsPagedCallable; + private final UnaryCallable + createExpandedDataSetCallable; + private final UnaryCallable + updateExpandedDataSetCallable; + private final UnaryCallable deleteExpandedDataSetCallable; private final UnaryCallable< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutCallable; @@ -4390,6 +4984,92 @@ protected HttpJsonAnalyticsAdminServiceStub( .setMethodDescriptor(runAccessReportMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + createAccessBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAccessBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getAccessBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAccessBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateAccessBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAccessBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteAccessBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAccessBindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAccessBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + batchCreateAccessBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchCreateAccessBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + batchGetAccessBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchGetAccessBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + batchUpdateAccessBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchUpdateAccessBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + batchDeleteAccessBindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteAccessBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getExpandedDataSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getExpandedDataSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listExpandedDataSetsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listExpandedDataSetsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + createExpandedDataSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createExpandedDataSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateExpandedDataSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateExpandedDataSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteExpandedDataSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteExpandedDataSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> setAutomatedGa4ConfigurationOptOutTransportSettings = @@ -4860,6 +5540,84 @@ protected HttpJsonAnalyticsAdminServiceStub( this.runAccessReportCallable = callableFactory.createUnaryCallable( runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); + this.createAccessBindingCallable = + callableFactory.createUnaryCallable( + createAccessBindingTransportSettings, + settings.createAccessBindingSettings(), + clientContext); + this.getAccessBindingCallable = + callableFactory.createUnaryCallable( + getAccessBindingTransportSettings, settings.getAccessBindingSettings(), clientContext); + this.updateAccessBindingCallable = + callableFactory.createUnaryCallable( + updateAccessBindingTransportSettings, + settings.updateAccessBindingSettings(), + clientContext); + this.deleteAccessBindingCallable = + callableFactory.createUnaryCallable( + deleteAccessBindingTransportSettings, + settings.deleteAccessBindingSettings(), + clientContext); + this.listAccessBindingsCallable = + callableFactory.createUnaryCallable( + listAccessBindingsTransportSettings, + settings.listAccessBindingsSettings(), + clientContext); + this.listAccessBindingsPagedCallable = + callableFactory.createPagedCallable( + listAccessBindingsTransportSettings, + settings.listAccessBindingsSettings(), + clientContext); + this.batchCreateAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchCreateAccessBindingsTransportSettings, + settings.batchCreateAccessBindingsSettings(), + clientContext); + this.batchGetAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchGetAccessBindingsTransportSettings, + settings.batchGetAccessBindingsSettings(), + clientContext); + this.batchUpdateAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchUpdateAccessBindingsTransportSettings, + settings.batchUpdateAccessBindingsSettings(), + clientContext); + this.batchDeleteAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchDeleteAccessBindingsTransportSettings, + settings.batchDeleteAccessBindingsSettings(), + clientContext); + this.getExpandedDataSetCallable = + callableFactory.createUnaryCallable( + getExpandedDataSetTransportSettings, + settings.getExpandedDataSetSettings(), + clientContext); + this.listExpandedDataSetsCallable = + callableFactory.createUnaryCallable( + listExpandedDataSetsTransportSettings, + settings.listExpandedDataSetsSettings(), + clientContext); + this.listExpandedDataSetsPagedCallable = + callableFactory.createPagedCallable( + listExpandedDataSetsTransportSettings, + settings.listExpandedDataSetsSettings(), + clientContext); + this.createExpandedDataSetCallable = + callableFactory.createUnaryCallable( + createExpandedDataSetTransportSettings, + settings.createExpandedDataSetSettings(), + clientContext); + this.updateExpandedDataSetCallable = + callableFactory.createUnaryCallable( + updateExpandedDataSetTransportSettings, + settings.updateExpandedDataSetSettings(), + clientContext); + this.deleteExpandedDataSetCallable = + callableFactory.createUnaryCallable( + deleteExpandedDataSetTransportSettings, + settings.deleteExpandedDataSetSettings(), + clientContext); this.setAutomatedGa4ConfigurationOptOutCallable = callableFactory.createUnaryCallable( setAutomatedGa4ConfigurationOptOutTransportSettings, @@ -4975,6 +5733,20 @@ public static List getMethodDescriptors() { methodDescriptors.add(getAttributionSettingsMethodDescriptor); methodDescriptors.add(updateAttributionSettingsMethodDescriptor); methodDescriptors.add(runAccessReportMethodDescriptor); + methodDescriptors.add(createAccessBindingMethodDescriptor); + methodDescriptors.add(getAccessBindingMethodDescriptor); + methodDescriptors.add(updateAccessBindingMethodDescriptor); + methodDescriptors.add(deleteAccessBindingMethodDescriptor); + methodDescriptors.add(listAccessBindingsMethodDescriptor); + methodDescriptors.add(batchCreateAccessBindingsMethodDescriptor); + methodDescriptors.add(batchGetAccessBindingsMethodDescriptor); + methodDescriptors.add(batchUpdateAccessBindingsMethodDescriptor); + methodDescriptors.add(batchDeleteAccessBindingsMethodDescriptor); + methodDescriptors.add(getExpandedDataSetMethodDescriptor); + methodDescriptors.add(listExpandedDataSetsMethodDescriptor); + methodDescriptors.add(createExpandedDataSetMethodDescriptor); + methodDescriptors.add(updateExpandedDataSetMethodDescriptor); + methodDescriptors.add(deleteExpandedDataSetMethodDescriptor); methodDescriptors.add(setAutomatedGa4ConfigurationOptOutMethodDescriptor); methodDescriptors.add(fetchAutomatedGa4ConfigurationOptOutMethodDescriptor); methodDescriptors.add(getBigQueryLinkMethodDescriptor); @@ -5558,6 +6330,96 @@ public UnaryCallable runAccessR return runAccessReportCallable; } + @Override + public UnaryCallable createAccessBindingCallable() { + return createAccessBindingCallable; + } + + @Override + public UnaryCallable getAccessBindingCallable() { + return getAccessBindingCallable; + } + + @Override + public UnaryCallable updateAccessBindingCallable() { + return updateAccessBindingCallable; + } + + @Override + public UnaryCallable deleteAccessBindingCallable() { + return deleteAccessBindingCallable; + } + + @Override + public UnaryCallable + listAccessBindingsCallable() { + return listAccessBindingsCallable; + } + + @Override + public UnaryCallable + listAccessBindingsPagedCallable() { + return listAccessBindingsPagedCallable; + } + + @Override + public UnaryCallable + batchCreateAccessBindingsCallable() { + return batchCreateAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchGetAccessBindingsCallable() { + return batchGetAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchUpdateAccessBindingsCallable() { + return batchUpdateAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchDeleteAccessBindingsCallable() { + return batchDeleteAccessBindingsCallable; + } + + @Override + public UnaryCallable getExpandedDataSetCallable() { + return getExpandedDataSetCallable; + } + + @Override + public UnaryCallable + listExpandedDataSetsCallable() { + return listExpandedDataSetsCallable; + } + + @Override + public UnaryCallable + listExpandedDataSetsPagedCallable() { + return listExpandedDataSetsPagedCallable; + } + + @Override + public UnaryCallable + createExpandedDataSetCallable() { + return createExpandedDataSetCallable; + } + + @Override + public UnaryCallable + updateExpandedDataSetCallable() { + return updateExpandedDataSetCallable; + } + + @Override + public UnaryCallable deleteExpandedDataSetCallable() { + return deleteExpandedDataSetCallable; + } + @Override public UnaryCallable< SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index 5687b466928c..176606e6784c 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -7262,6 +7264,1198 @@ public void runAccessReportExceptionTest() throws Exception { } } + @Test + public void createAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAccessBindingTest3() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "accounts/account-4811"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessBindingExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "accounts/account-4811"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + + AccessBinding actualResponse = client.getAccessBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.getAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + + AccessBinding actualResponse = client.getAccessBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + client.getAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AccessBinding accessBinding = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + + AccessBinding actualResponse = client.updateAccessBinding(accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAccessBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessBinding accessBinding = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + client.updateAccessBinding(accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAccessBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + + client.deleteAccessBinding(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAccessBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.deleteAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAccessBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + + client.deleteAccessBinding(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAccessBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + client.deleteAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessBindingsTest() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AccountName parent = AccountName.of("[ACCOUNT]"); + + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + client.listAccessBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessBindingsTest2() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAccessBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessBindingsTest3() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "accounts/account-4811"; + + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessBindingsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "accounts/account-4811"; + client.listAccessBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateAccessBindingsTest() throws Exception { + BatchCreateAccessBindingsResponse expectedResponse = + BatchCreateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateAccessBindingsResponse actualResponse = client.batchCreateAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateAccessBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchGetAccessBindingsTest() throws Exception { + BatchGetAccessBindingsResponse expectedResponse = + BatchGetAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + + BatchGetAccessBindingsResponse actualResponse = client.batchGetAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchGetAccessBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchGetAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateAccessBindingsTest() throws Exception { + BatchUpdateAccessBindingsResponse expectedResponse = + BatchUpdateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateAccessBindingsResponse actualResponse = client.batchUpdateAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateAccessBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteAccessBindingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + client.batchDeleteAccessBindings(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteAccessBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchDeleteAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getExpandedDataSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.getExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getExpandedDataSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + client.getExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExpandedDataSetsTest() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listExpandedDataSetsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listExpandedDataSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExpandedDataSetsTest2() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "properties/propertie-2024"; + + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listExpandedDataSetsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "properties/propertie-2024"; + client.listExpandedDataSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createExpandedDataSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "properties/propertie-2024"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createExpandedDataSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "properties/propertie-2024"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ExpandedDataSet expandedDataSet = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExpandedDataSet actualResponse = client.updateExpandedDataSet(expandedDataSet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateExpandedDataSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExpandedDataSet expandedDataSet = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExpandedDataSet(expandedDataSet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExpandedDataSetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + + client.deleteExpandedDataSet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExpandedDataSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.deleteExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExpandedDataSetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + + client.deleteExpandedDataSet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteExpandedDataSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + client.deleteExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { SetAutomatedGa4ConfigurationOptOutResponse expectedResponse = diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index f524c7963db4..be33824b14b0 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -17,6 +17,7 @@ package com.google.analytics.admin.v1alpha; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; @@ -27,6 +28,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; @@ -6350,6 +6352,1045 @@ public void runAccessReportExceptionTest() throws Exception { } } + @Test + public void createAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAccessBindingTest3() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessBindingExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + + AccessBinding actualResponse = client.getAccessBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessBindingRequest actualRequest = ((GetAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.getAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + AccessBinding actualResponse = client.getAccessBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessBindingRequest actualRequest = ((GetAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + + AccessBinding actualResponse = client.updateAccessBinding(accessBinding); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAccessBindingRequest actualRequest = ((UpdateAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAccessBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.updateAccessBinding(accessBinding); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAccessBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + + client.deleteAccessBinding(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAccessBindingRequest actualRequest = ((DeleteAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAccessBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.deleteAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAccessBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAccessBinding(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAccessBindingRequest actualRequest = ((DeleteAccessBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAccessBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAccessBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessBindingsTest() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AccountName parent = AccountName.of("[ACCOUNT]"); + + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + client.listAccessBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessBindingsTest2() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAccessBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessBindingsTest3() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessBindingsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAccessBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateAccessBindingsTest() throws Exception { + BatchCreateAccessBindingsResponse expectedResponse = + BatchCreateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateAccessBindingsResponse actualResponse = client.batchCreateAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateAccessBindingsRequest actualRequest = + ((BatchCreateAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateAccessBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchGetAccessBindingsTest() throws Exception { + BatchGetAccessBindingsResponse expectedResponse = + BatchGetAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + + BatchGetAccessBindingsResponse actualResponse = client.batchGetAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchGetAccessBindingsRequest actualRequest = + ((BatchGetAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchGetAccessBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchGetAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateAccessBindingsTest() throws Exception { + BatchUpdateAccessBindingsResponse expectedResponse = + BatchUpdateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateAccessBindingsResponse actualResponse = client.batchUpdateAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchUpdateAccessBindingsRequest actualRequest = + ((BatchUpdateAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchUpdateAccessBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteAccessBindingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + + client.batchDeleteAccessBindings(request); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteAccessBindingsRequest actualRequest = + ((BatchDeleteAccessBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteAccessBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchDeleteAccessBindings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExpandedDataSetRequest actualRequest = ((GetExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExpandedDataSetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.getExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetExpandedDataSetRequest actualRequest = ((GetExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getExpandedDataSetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExpandedDataSetsTest() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExpandedDataSetsRequest actualRequest = + ((ListExpandedDataSetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExpandedDataSetsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listExpandedDataSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listExpandedDataSetsTest2() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListExpandedDataSetsRequest actualRequest = + ((ListExpandedDataSetsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listExpandedDataSetsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listExpandedDataSets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExpandedDataSetRequest actualRequest = + ((CreateExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExpandedDataSetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateExpandedDataSetRequest actualRequest = + ((CreateExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createExpandedDataSetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ExpandedDataSet actualResponse = client.updateExpandedDataSet(expandedDataSet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateExpandedDataSetRequest actualRequest = + ((UpdateExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateExpandedDataSetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExpandedDataSet(expandedDataSet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExpandedDataSetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + + client.deleteExpandedDataSet(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExpandedDataSetRequest actualRequest = + ((DeleteExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExpandedDataSetExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.deleteExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteExpandedDataSetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteExpandedDataSet(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteExpandedDataSetRequest actualRequest = + ((DeleteExpandedDataSetRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteExpandedDataSetExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteExpandedDataSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { SetAutomatedGa4ConfigurationOptOutResponse expectedResponse = diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index d452a1011169..ecadf826b6b6 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -1850,6 +1850,305 @@ public void runAccessReport( } } + @Override + public void createAccessBinding( + CreateAccessBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessBinding) { + requests.add(request); + responseObserver.onNext(((AccessBinding) 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 CreateAccessBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAccessBinding( + GetAccessBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessBinding) { + requests.add(request); + responseObserver.onNext(((AccessBinding) 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 GetAccessBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAccessBinding( + UpdateAccessBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessBinding) { + requests.add(request); + responseObserver.onNext(((AccessBinding) 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 UpdateAccessBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessBinding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAccessBinding( + DeleteAccessBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAccessBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAccessBindings( + ListAccessBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAccessBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListAccessBindingsResponse) 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 ListAccessBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAccessBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchCreateAccessBindings( + BatchCreateAccessBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchCreateAccessBindingsResponse) { + requests.add(request); + responseObserver.onNext(((BatchCreateAccessBindingsResponse) 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 BatchCreateAccessBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchCreateAccessBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchGetAccessBindings( + BatchGetAccessBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchGetAccessBindingsResponse) { + requests.add(request); + responseObserver.onNext(((BatchGetAccessBindingsResponse) 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 BatchGetAccessBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchGetAccessBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchUpdateAccessBindings( + BatchUpdateAccessBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchUpdateAccessBindingsResponse) { + requests.add(request); + responseObserver.onNext(((BatchUpdateAccessBindingsResponse) 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 BatchUpdateAccessBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchUpdateAccessBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchDeleteAccessBindings( + BatchDeleteAccessBindingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchDeleteAccessBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getExpandedDataSet( + GetExpandedDataSetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExpandedDataSet) { + requests.add(request); + responseObserver.onNext(((ExpandedDataSet) 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 GetExpandedDataSet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExpandedDataSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listExpandedDataSets( + ListExpandedDataSetsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListExpandedDataSetsResponse) { + requests.add(request); + responseObserver.onNext(((ListExpandedDataSetsResponse) 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 ListExpandedDataSets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListExpandedDataSetsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createExpandedDataSet( + CreateExpandedDataSetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExpandedDataSet) { + requests.add(request); + responseObserver.onNext(((ExpandedDataSet) 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 CreateExpandedDataSet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExpandedDataSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateExpandedDataSet( + UpdateExpandedDataSetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ExpandedDataSet) { + requests.add(request); + responseObserver.onNext(((ExpandedDataSet) 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 UpdateExpandedDataSet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ExpandedDataSet.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteExpandedDataSet( + DeleteExpandedDataSetRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteExpandedDataSet, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void setAutomatedGa4ConfigurationOptOut( SetAutomatedGa4ConfigurationOptOutRequest request, diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index a03aa8f3f496..5df0f09fd4b7 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -4254,6 +4254,716 @@ private AnalyticsAdminServiceGrpc() {} return getRunAccessReportMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getCreateAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAccessBinding", + requestType = com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, + responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getCreateAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getCreateAccessBindingMethod; + if ((getCreateAccessBindingMethod = AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateAccessBindingMethod = AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod = + getCreateAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AccessBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAccessBinding")) + .build(); + } + } + } + return getCreateAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getGetAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessBinding", + requestType = com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, + responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getGetAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getGetAccessBindingMethod; + if ((getGetAccessBindingMethod = AnalyticsAdminServiceGrpc.getGetAccessBindingMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAccessBindingMethod = AnalyticsAdminServiceGrpc.getGetAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetAccessBindingMethod = + getGetAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AccessBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccessBinding")) + .build(); + } + } + } + return getGetAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getUpdateAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccessBinding", + requestType = com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, + responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getUpdateAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getUpdateAccessBindingMethod; + if ((getUpdateAccessBindingMethod = AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAccessBindingMethod = AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod = + getUpdateAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AccessBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccessBinding")) + .build(); + } + } + } + return getUpdateAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.protobuf.Empty> + getDeleteAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccessBinding", + requestType = com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.protobuf.Empty> + getDeleteAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.protobuf.Empty> + getDeleteAccessBindingMethod; + if ((getDeleteAccessBindingMethod = AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteAccessBindingMethod = AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod = + getDeleteAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccessBinding")) + .build(); + } + } + } + return getDeleteAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + getListAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccessBindings", + requestType = com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + getListAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + getListAccessBindingsMethod; + if ((getListAccessBindingsMethod = AnalyticsAdminServiceGrpc.getListAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAccessBindingsMethod = AnalyticsAdminServiceGrpc.getListAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListAccessBindingsMethod = + getListAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccessBindings")) + .build(); + } + } + } + return getListAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + getBatchCreateAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCreateAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + getBatchCreateAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + getBatchCreateAccessBindingsMethod; + if ((getBatchCreateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchCreateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod = + getBatchCreateAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCreateAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchCreateAccessBindings")) + .build(); + } + } + } + return getBatchCreateAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + getBatchGetAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + getBatchGetAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + getBatchGetAccessBindingsMethod; + if ((getBatchGetAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchGetAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod = + getBatchGetAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchGetAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchGetAccessBindings")) + .build(); + } + } + } + return getBatchGetAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + getBatchUpdateAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchUpdateAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + getBatchUpdateAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + getBatchUpdateAccessBindingsMethod; + if ((getBatchUpdateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchUpdateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod = + getBatchUpdateAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchUpdateAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchUpdateAccessBindings")) + .build(); + } + } + } + return getBatchUpdateAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty> + getBatchDeleteAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchDeleteAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty> + getBatchDeleteAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty> + getBatchDeleteAccessBindingsMethod; + if ((getBatchDeleteAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchDeleteAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod = + getBatchDeleteAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchDeleteAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchDeleteAccessBindings")) + .build(); + } + } + } + return getBatchDeleteAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getGetExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, + responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getGetExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getGetExpandedDataSetMethod; + if ((getGetExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod = + getGetExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ExpandedDataSet + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetExpandedDataSet")) + .build(); + } + } + } + return getGetExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + getListExpandedDataSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExpandedDataSets", + requestType = com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + getListExpandedDataSetsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + getListExpandedDataSetsMethod; + if ((getListExpandedDataSetsMethod = AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListExpandedDataSetsMethod = + AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod = + getListExpandedDataSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListExpandedDataSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListExpandedDataSets")) + .build(); + } + } + } + return getListExpandedDataSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getCreateExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, + responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getCreateExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getCreateExpandedDataSetMethod; + if ((getCreateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateExpandedDataSetMethod = + AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod = + getCreateExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ExpandedDataSet + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateExpandedDataSet")) + .build(); + } + } + } + return getCreateExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getUpdateExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, + responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getUpdateExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getUpdateExpandedDataSetMethod; + if ((getUpdateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateExpandedDataSetMethod = + AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod = + getUpdateExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ExpandedDataSet + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateExpandedDataSet")) + .build(); + } + } + } + return getUpdateExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty> + getDeleteExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty> + getDeleteExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty> + getDeleteExpandedDataSetMethod; + if ((getDeleteExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteExpandedDataSetMethod = + AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod = + getDeleteExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteExpandedDataSet")) + .build(); + } + } + } + return getDeleteExpandedDataSetMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> @@ -5073,7 +5783,8 @@ public void updateMeasurementProtocolSecret( *
      * Acknowledges the terms of user data collection for the specified property.
      * This acknowledgement must be completed (either in the Google Analytics UI
-     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
      * 
*/ public void acknowledgeUserDataCollection( @@ -5839,6 +6550,220 @@ public void runAccessReport( getRunAccessReportMethod(), responseObserver); } + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + public void createAccessBinding( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + public void getAccessBinding( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + public void updateAccessBinding( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + public void deleteAccessBinding( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + public void listAccessBindings( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + public void batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about multiple access bindings to an account or property.
+     * 
+ */ + public void batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchGetAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates information about multiple access bindings to an account or
+     * property.
+     * 
+ */ + public void batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public void batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single ExpandedDataSet.
+     * 
+ */ + public void getExpandedDataSet( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ExpandedDataSets on a property.
+     * 
+ */ + public void listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExpandedDataSetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a ExpandedDataSet.
+     * 
+ */ + public void createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ExpandedDataSet on a property.
+     * 
+ */ + public void updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a ExpandedDataSet on a property.
+     * 
+ */ + public void deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExpandedDataSetMethod(), responseObserver); + } + /** * * @@ -6418,72 +7343,167 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.CreateAudienceRequest, com.google.analytics.admin.v1alpha.Audience>(this, METHODID_CREATE_AUDIENCE))) .addMethod( - getUpdateAudienceMethod(), + getUpdateAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>(this, METHODID_UPDATE_AUDIENCE))) + .addMethod( + getArchiveAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, + com.google.protobuf.Empty>(this, METHODID_ARCHIVE_AUDIENCE))) + .addMethod( + getGetSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link>( + this, METHODID_GET_SEARCH_ADS360LINK))) + .addMethod( + getListSearchAds360LinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse>( + this, METHODID_LIST_SEARCH_ADS360LINKS))) + .addMethod( + getCreateSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link>( + this, METHODID_CREATE_SEARCH_ADS360LINK))) + .addMethod( + getDeleteSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_SEARCH_ADS360LINK))) + .addMethod( + getUpdateSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link>( + this, METHODID_UPDATE_SEARCH_ADS360LINK))) + .addMethod( + getGetAttributionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings>( + this, METHODID_GET_ATTRIBUTION_SETTINGS))) + .addMethod( + getUpdateAttributionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings>( + this, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) + .addMethod( + getRunAccessReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse>( + this, METHODID_RUN_ACCESS_REPORT))) + .addMethod( + getCreateAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding>( + this, METHODID_CREATE_ACCESS_BINDING))) + .addMethod( + getGetAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding>( + this, METHODID_GET_ACCESS_BINDING))) + .addMethod( + getUpdateAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding>( + this, METHODID_UPDATE_ACCESS_BINDING))) + .addMethod( + getDeleteAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ACCESS_BINDING))) + .addMethod( + getListAccessBindingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>(this, METHODID_UPDATE_AUDIENCE))) + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse>( + this, METHODID_LIST_ACCESS_BINDINGS))) .addMethod( - getArchiveAudienceMethod(), + getBatchCreateAccessBindingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, - com.google.protobuf.Empty>(this, METHODID_ARCHIVE_AUDIENCE))) + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse>( + this, METHODID_BATCH_CREATE_ACCESS_BINDINGS))) .addMethod( - getGetSearchAds360LinkMethod(), + getBatchGetAccessBindingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, - com.google.analytics.admin.v1alpha.SearchAds360Link>( - this, METHODID_GET_SEARCH_ADS360LINK))) + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse>( + this, METHODID_BATCH_GET_ACCESS_BINDINGS))) .addMethod( - getListSearchAds360LinksMethod(), + getBatchUpdateAccessBindingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse>( - this, METHODID_LIST_SEARCH_ADS360LINKS))) + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse>( + this, METHODID_BATCH_UPDATE_ACCESS_BINDINGS))) .addMethod( - getCreateSearchAds360LinkMethod(), + getBatchDeleteAccessBindingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, - com.google.analytics.admin.v1alpha.SearchAds360Link>( - this, METHODID_CREATE_SEARCH_ADS360LINK))) + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_ACCESS_BINDINGS))) .addMethod( - getDeleteSearchAds360LinkMethod(), + getGetExpandedDataSetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SEARCH_ADS360LINK))) + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet>( + this, METHODID_GET_EXPANDED_DATA_SET))) .addMethod( - getUpdateSearchAds360LinkMethod(), + getListExpandedDataSetsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, - com.google.analytics.admin.v1alpha.SearchAds360Link>( - this, METHODID_UPDATE_SEARCH_ADS360LINK))) + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse>( + this, METHODID_LIST_EXPANDED_DATA_SETS))) .addMethod( - getGetAttributionSettingsMethod(), + getCreateExpandedDataSetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, - com.google.analytics.admin.v1alpha.AttributionSettings>( - this, METHODID_GET_ATTRIBUTION_SETTINGS))) + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet>( + this, METHODID_CREATE_EXPANDED_DATA_SET))) .addMethod( - getUpdateAttributionSettingsMethod(), + getUpdateExpandedDataSetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, - com.google.analytics.admin.v1alpha.AttributionSettings>( - this, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet>( + this, METHODID_UPDATE_EXPANDED_DATA_SET))) .addMethod( - getRunAccessReportMethod(), + getDeleteExpandedDataSetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.google.analytics.admin.v1alpha.RunAccessReportRequest, - com.google.analytics.admin.v1alpha.RunAccessReportResponse>( - this, METHODID_RUN_ACCESS_REPORT))) + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_EXPANDED_DATA_SET))) .addMethod( getSetAutomatedGa4ConfigurationOptOutMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -7162,7 +8182,8 @@ public void updateMeasurementProtocolSecret( *
      * Acknowledges the terms of user data collection for the specified property.
      * This acknowledgement must be completed (either in the Google Analytics UI
-     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
      * 
*/ public void acknowledgeUserDataCollection( @@ -7881,7 +8902,258 @@ public void archiveAudience( com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), + getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Look up a single SearchAds360Link
+     * 
+ */ + public void getSearchAds360Link( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all SearchAds360Links on a property.
+     * 
+ */ + public void listSearchAds360Links( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSearchAds360LinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a SearchAds360Link.
+     * 
+ */ + public void createSearchAds360Link( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a SearchAds360Link on a property.
+     * 
+ */ + public void deleteSearchAds360Link( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a SearchAds360Link on a property.
+     * 
+ */ + public void updateSearchAds360Link( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public void getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public void updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public void runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + public void createAccessBinding( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + public void getAccessBinding( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + public void updateAccessBinding( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + public void deleteAccessBinding( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + public void listAccessBindings( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + public void batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateAccessBindingsMethod(), getCallOptions()), request, responseObserver); } @@ -7890,15 +9162,16 @@ public void archiveAudience( * * *
-     * Look up a single SearchAds360Link
+     * Gets information about multiple access bindings to an account or property.
      * 
*/ - public void getSearchAds360Link( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver + public void batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSearchAds360LinkMethod(), getCallOptions()), + getChannel().newCall(getBatchGetAccessBindingsMethod(), getCallOptions()), request, responseObserver); } @@ -7907,16 +9180,17 @@ public void getSearchAds360Link( * * *
-     * Lists all SearchAds360Links on a property.
+     * Updates information about multiple access bindings to an account or
+     * property.
      * 
*/ - public void listSearchAds360Links( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request, + public void batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request, io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSearchAds360LinksMethod(), getCallOptions()), + getChannel().newCall(getBatchUpdateAccessBindingsMethod(), getCallOptions()), request, responseObserver); } @@ -7925,15 +9199,14 @@ public void listSearchAds360Links( * * *
-     * Creates a SearchAds360Link.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public void createSearchAds360Link( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSearchAds360LinkMethod(), getCallOptions()), + getChannel().newCall(getBatchDeleteAccessBindingsMethod(), getCallOptions()), request, responseObserver); } @@ -7942,14 +9215,15 @@ public void createSearchAds360Link( * * *
-     * Deletes a SearchAds360Link on a property.
+     * Lookup for a single ExpandedDataSet.
      * 
*/ - public void deleteSearchAds360Link( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getExpandedDataSet( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSearchAds360LinkMethod(), getCallOptions()), + getChannel().newCall(getGetExpandedDataSetMethod(), getCallOptions()), request, responseObserver); } @@ -7958,15 +9232,15 @@ public void deleteSearchAds360Link( * * *
-     * Updates a SearchAds360Link on a property.
+     * Lists ExpandedDataSets on a property.
      * 
*/ - public void updateSearchAds360Link( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver + public void listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSearchAds360LinkMethod(), getCallOptions()), + getChannel().newCall(getListExpandedDataSetsMethod(), getCallOptions()), request, responseObserver); } @@ -7975,15 +9249,15 @@ public void updateSearchAds360Link( * * *
-     * Lookup for a AttributionSettings singleton.
+     * Creates a ExpandedDataSet.
      * 
*/ - public void getAttributionSettings( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, - io.grpc.stub.StreamObserver + public void createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), + getChannel().newCall(getCreateExpandedDataSetMethod(), getCallOptions()), request, responseObserver); } @@ -7992,15 +9266,15 @@ public void getAttributionSettings( * * *
-     * Updates attribution settings on a property.
+     * Updates a ExpandedDataSet on a property.
      * 
*/ - public void updateAttributionSettings( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, - io.grpc.stub.StreamObserver + public void updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), + getChannel().newCall(getUpdateExpandedDataSetMethod(), getCallOptions()), request, responseObserver); } @@ -8009,25 +9283,14 @@ public void updateAttributionSettings( * * *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * Deletes a ExpandedDataSet on a property.
      * 
*/ - public void runAccessReport( - com.google.analytics.admin.v1alpha.RunAccessReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), + getChannel().newCall(getDeleteExpandedDataSetMethod(), getCallOptions()), request, responseObserver); } @@ -8630,7 +9893,8 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( *
      * Acknowledges the terms of user data collection for the specified property.
      * This acknowledgement must be completed (either in the Google Analytics UI
-     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
      * 
*/ public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse @@ -9123,206 +10387,394 @@ public com.google.analytics.admin.v1alpha.DataStream updateDataStream( * Lists DataStreams on a property. * */ - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStreams( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAudiencesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Look up a single SearchAds360Link
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all SearchAds360Links on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse listSearchAds360Links( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSearchAds360LinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a SearchAds360Link.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchAds360Link createSearchAds360Link( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a SearchAds360Link on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteSearchAds360Link( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a SearchAds360Link on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchAds360Link updateSearchAds360Link( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttributionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataStreamsMethod(), getCallOptions(), request); + getChannel(), getRunAccessReportMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single DataStream.
+     * Creates an access binding on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.DataStream getDataStream( - com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.AccessBinding createAccessBinding( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataStreamMethod(), getCallOptions(), request); + getChannel(), getCreateAccessBindingMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single Audience.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
+     * Gets information about an access binding.
      * 
*/ - public com.google.analytics.admin.v1alpha.Audience getAudience( - com.google.analytics.admin.v1alpha.GetAudienceRequest request) { + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAudienceMethod(), getCallOptions(), request); + getChannel(), getGetAccessBindingMethod(), getCallOptions(), request); } /** * * *
-     * Lists Audiences on a property.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
+     * Updates an access binding on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences( - com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { + public com.google.analytics.admin.v1alpha.AccessBinding updateAccessBinding( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAudiencesMethod(), getCallOptions(), request); + getChannel(), getUpdateAccessBindingMethod(), getCallOptions(), request); } /** * * *
-     * Creates an Audience.
+     * Deletes an access binding on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.Audience createAudience( - com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { + public com.google.protobuf.Empty deleteAccessBinding( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAudienceMethod(), getCallOptions(), request); + getChannel(), getDeleteAccessBindingMethod(), getCallOptions(), request); } /** * * *
-     * Updates an Audience on a property.
+     * Lists all access bindings on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.Audience updateAudience( - com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse listAccessBindings( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAudienceMethod(), getCallOptions(), request); + getChannel(), getListAccessBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Archives an Audience on a property.
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
      * 
*/ - public com.google.protobuf.Empty archiveAudience( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getArchiveAudienceMethod(), getCallOptions(), request); + getChannel(), getBatchCreateAccessBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Look up a single SearchAds360Link
+     * Gets information about multiple access bindings to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSearchAds360LinkMethod(), getCallOptions(), request); + getChannel(), getBatchGetAccessBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Lists all SearchAds360Links on a property.
+     * Updates information about multiple access bindings to an account or
+     * property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse listSearchAds360Links( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSearchAds360LinksMethod(), getCallOptions(), request); + getChannel(), getBatchUpdateAccessBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Creates a SearchAds360Link.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.SearchAds360Link createSearchAds360Link( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { + public com.google.protobuf.Empty batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSearchAds360LinkMethod(), getCallOptions(), request); + getChannel(), getBatchDeleteAccessBindingsMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a SearchAds360Link on a property.
+     * Lookup for a single ExpandedDataSet.
      * 
*/ - public com.google.protobuf.Empty deleteSearchAds360Link( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSearchAds360LinkMethod(), getCallOptions(), request); + getChannel(), getGetExpandedDataSetMethod(), getCallOptions(), request); } /** * * *
-     * Updates a SearchAds360Link on a property.
+     * Lists ExpandedDataSets on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.SearchAds360Link updateSearchAds360Link( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSearchAds360LinkMethod(), getCallOptions(), request); + getChannel(), getListExpandedDataSetsMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a AttributionSettings singleton.
+     * Creates a ExpandedDataSet.
      * 
*/ - public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { + public com.google.analytics.admin.v1alpha.ExpandedDataSet createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAttributionSettingsMethod(), getCallOptions(), request); + getChannel(), getCreateExpandedDataSetMethod(), getCallOptions(), request); } /** * * *
-     * Updates attribution settings on a property.
+     * Updates a ExpandedDataSet on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionSettings( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { + public com.google.analytics.admin.v1alpha.ExpandedDataSet updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); + getChannel(), getUpdateExpandedDataSetMethod(), getCallOptions(), request); } /** * * *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * Deletes a ExpandedDataSet on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessReport( - com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { + public com.google.protobuf.Empty deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAccessReportMethod(), getCallOptions(), request); + getChannel(), getDeleteExpandedDataSetMethod(), getCallOptions(), request); } /** @@ -9948,7 +11400,8 @@ protected AnalyticsAdminServiceFutureStub build( *
      * Acknowledges the terms of user data collection for the specified property.
      * This acknowledgement must be completed (either in the Google Analytics UI
-     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -10703,6 +12156,211 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AccessBinding> + createAccessBinding(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AccessBinding> + getAccessBinding(com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AccessBinding> + updateAccessBinding(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccessBinding(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + listAccessBindings(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about multiple access bindings to an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates information about multiple access bindings to an account or
+     * property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single ExpandedDataSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getExpandedDataSet(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ExpandedDataSets on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExpandedDataSetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a ExpandedDataSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ExpandedDataSet> + createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ExpandedDataSet on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ExpandedDataSet> + updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a ExpandedDataSet on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExpandedDataSetMethod(), getCallOptions()), request); + } + /** * * @@ -10853,10 +12511,24 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 81; private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 82; private static final int METHODID_RUN_ACCESS_REPORT = 83; - private static final int METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 84; - private static final int METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 85; - private static final int METHODID_GET_BIG_QUERY_LINK = 86; - private static final int METHODID_LIST_BIG_QUERY_LINKS = 87; + private static final int METHODID_CREATE_ACCESS_BINDING = 84; + private static final int METHODID_GET_ACCESS_BINDING = 85; + private static final int METHODID_UPDATE_ACCESS_BINDING = 86; + private static final int METHODID_DELETE_ACCESS_BINDING = 87; + private static final int METHODID_LIST_ACCESS_BINDINGS = 88; + private static final int METHODID_BATCH_CREATE_ACCESS_BINDINGS = 89; + private static final int METHODID_BATCH_GET_ACCESS_BINDINGS = 90; + private static final int METHODID_BATCH_UPDATE_ACCESS_BINDINGS = 91; + private static final int METHODID_BATCH_DELETE_ACCESS_BINDINGS = 92; + private static final int METHODID_GET_EXPANDED_DATA_SET = 93; + private static final int METHODID_LIST_EXPANDED_DATA_SETS = 94; + private static final int METHODID_CREATE_EXPANDED_DATA_SET = 95; + private static final int METHODID_UPDATE_EXPANDED_DATA_SET = 96; + private static final int METHODID_DELETE_EXPANDED_DATA_SET = 97; + private static final int METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 98; + private static final int METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 99; + private static final int METHODID_GET_BIG_QUERY_LINK = 100; + private static final int METHODID_LIST_BIG_QUERY_LINKS = 101; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -11418,6 +13090,92 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.RunAccessReportResponse>) responseObserver); break; + case METHODID_CREATE_ACCESS_BINDING: + serviceImpl.createAccessBinding( + (com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACCESS_BINDING: + serviceImpl.getAccessBinding( + (com.google.analytics.admin.v1alpha.GetAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ACCESS_BINDING: + serviceImpl.updateAccessBinding( + (com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ACCESS_BINDING: + serviceImpl.deleteAccessBinding( + (com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ACCESS_BINDINGS: + serviceImpl.listAccessBindings( + (com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_CREATE_ACCESS_BINDINGS: + serviceImpl.batchCreateAccessBindings( + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_GET_ACCESS_BINDINGS: + serviceImpl.batchGetAccessBindings( + (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_UPDATE_ACCESS_BINDINGS: + serviceImpl.batchUpdateAccessBindings( + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_DELETE_ACCESS_BINDINGS: + serviceImpl.batchDeleteAccessBindings( + (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EXPANDED_DATA_SET: + serviceImpl.getExpandedDataSet( + (com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EXPANDED_DATA_SETS: + serviceImpl.listExpandedDataSets( + (com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse>) + responseObserver); + break; + case METHODID_CREATE_EXPANDED_DATA_SET: + serviceImpl.createExpandedDataSet( + (com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_EXPANDED_DATA_SET: + serviceImpl.updateExpandedDataSet( + (com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_EXPANDED_DATA_SET: + serviceImpl.deleteExpandedDataSet( + (com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT: serviceImpl.setAutomatedGa4ConfigurationOptOut( (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) @@ -11597,6 +13355,20 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetAttributionSettingsMethod()) .addMethod(getUpdateAttributionSettingsMethod()) .addMethod(getRunAccessReportMethod()) + .addMethod(getCreateAccessBindingMethod()) + .addMethod(getGetAccessBindingMethod()) + .addMethod(getUpdateAccessBindingMethod()) + .addMethod(getDeleteAccessBindingMethod()) + .addMethod(getListAccessBindingsMethod()) + .addMethod(getBatchCreateAccessBindingsMethod()) + .addMethod(getBatchGetAccessBindingsMethod()) + .addMethod(getBatchUpdateAccessBindingsMethod()) + .addMethod(getBatchDeleteAccessBindingsMethod()) + .addMethod(getGetExpandedDataSetMethod()) + .addMethod(getListExpandedDataSetsMethod()) + .addMethod(getCreateExpandedDataSetMethod()) + .addMethod(getUpdateExpandedDataSetMethod()) + .addMethod(getDeleteExpandedDataSetMethod()) .addMethod(getSetAutomatedGa4ConfigurationOptOutMethod()) .addMethod(getFetchAutomatedGa4ConfigurationOptOutMethod()) .addMethod(getGetBigQueryLinkMethod()) diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java new file mode 100644 index 000000000000..e9b5c8577072 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java @@ -0,0 +1,1372 @@ +/* + * 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 binding of a user to a set of roles.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBinding} + */ +public final class AccessBinding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBinding) + AccessBindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessBinding.newBuilder() to construct. + private AccessBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessBinding() { + name_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessBinding(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBinding.class, + com.google.analytics.admin.v1alpha.AccessBinding.Builder.class); + } + + private int accessTargetCase_ = 0; + private java.lang.Object accessTarget_; + + public enum AccessTargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER(2), + ACCESSTARGET_NOT_SET(0); + private final int value; + + private AccessTargetCase(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 AccessTargetCase valueOf(int value) { + return forNumber(value); + } + + public static AccessTargetCase forNumber(int value) { + switch (value) { + case 2: + return USER; + case 0: + return ACCESSTARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AccessTargetCase getAccessTargetCase() { + return AccessTargetCase.forNumber(accessTargetCase_); + } + + public static final int USER_FIELD_NUMBER = 2; + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return Whether the user field is set. + */ + public boolean hasUser() { + return accessTargetCase_ == 2; + } + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + 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(); + if (accessTargetCase_ == 2) { + accessTarget_ = s; + } + return s; + } + } + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (accessTargetCase_ == 2) { + accessTarget_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this binding.
+   * Format: accounts/{account}/accessBindings/{access_binding} or
+   * properties/{property}/accessBindings/{access_binding}
+   * Example:
+   * "accounts/100/accessBindings/200"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this binding.
+   * Format: accounts/{account}/accessBindings/{access_binding} or
+   * properties/{property}/accessBindings/{access_binding}
+   * Example:
+   * "accounts/100/accessBindings/200"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList roles_; + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (accessTargetCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessTarget_); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, roles_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (accessTargetCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accessTarget_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + size += getUnknownFields().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.AccessBinding)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessBinding other = + (com.google.analytics.admin.v1alpha.AccessBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getAccessTargetCase().equals(other.getAccessTargetCase())) return false; + switch (accessTargetCase_) { + case 2: + if (!getUser().equals(other.getUser())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + switch (accessTargetCase_) { + case 2: + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding 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.AccessBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding 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.AccessBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding 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.AccessBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding 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.AccessBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding 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.AccessBinding 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.AccessBinding 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.AccessBinding 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 binding of a user to a set of roles.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessBinding) + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBinding.class, + com.google.analytics.admin.v1alpha.AccessBinding.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessBinding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + accessTargetCase_ = 0; + accessTarget_ = 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_AccessBinding_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding build() { + com.google.analytics.admin.v1alpha.AccessBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding buildPartial() { + com.google.analytics.admin.v1alpha.AccessBinding result = + new com.google.analytics.admin.v1alpha.AccessBinding(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.AccessBinding result) { + if (((bitField0_ & 0x00000004) != 0)) { + roles_ = roles_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.roles_ = roles_; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessBinding result) { + result.accessTargetCase_ = accessTargetCase_; + result.accessTarget_ = this.accessTarget_; + } + + @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.AccessBinding) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBinding other) { + if (other == com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + switch (other.getAccessTargetCase()) { + case USER: + { + accessTargetCase_ = 2; + accessTarget_ = other.accessTarget_; + onChanged(); + break; + } + case ACCESSTARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + accessTargetCase_ = 2; + accessTarget_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int accessTargetCase_ = 0; + private java.lang.Object accessTarget_; + + public AccessTargetCase getAccessTargetCase() { + return AccessTargetCase.forNumber(accessTargetCase_); + } + + public Builder clearAccessTarget() { + accessTargetCase_ = 0; + accessTarget_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return accessTargetCase_ == 2; + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (accessTargetCase_ == 2) { + accessTarget_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (accessTargetCase_ == 2) { + accessTarget_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accessTargetCase_ = 2; + accessTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + if (accessTargetCase_ == 2) { + accessTargetCase_ = 0; + accessTarget_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessTargetCase_ = 2; + accessTarget_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this binding.
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList roles_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureRolesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_.getUnmodifiableView(); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(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.AccessBinding) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBinding) + private static final com.google.analytics.admin.v1alpha.AccessBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBinding(); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.AccessBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java new file mode 100644 index 000000000000..37ab8019f066 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java @@ -0,0 +1,299 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AccessBindingName implements ResourceName { + private static final PathTemplate ACCOUNT_ACCESS_BINDING = + PathTemplate.createWithoutUrlEncoding("accounts/{account}/accessBindings/{access_binding}"); + private static final PathTemplate PROPERTY_ACCESS_BINDING = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/accessBindings/{access_binding}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String account; + private final String accessBinding; + private final String property; + + @Deprecated + protected AccessBindingName() { + account = null; + accessBinding = null; + property = null; + } + + private AccessBindingName(Builder builder) { + account = Preconditions.checkNotNull(builder.getAccount()); + accessBinding = Preconditions.checkNotNull(builder.getAccessBinding()); + property = null; + pathTemplate = ACCOUNT_ACCESS_BINDING; + } + + private AccessBindingName(PropertyAccessBindingBuilder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + accessBinding = Preconditions.checkNotNull(builder.getAccessBinding()); + account = null; + pathTemplate = PROPERTY_ACCESS_BINDING; + } + + public String getAccount() { + return account; + } + + public String getAccessBinding() { + return accessBinding; + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newAccountAccessBindingBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static PropertyAccessBindingBuilder newPropertyAccessBindingBuilder() { + return new PropertyAccessBindingBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AccessBindingName of(String account, String accessBinding) { + return newBuilder().setAccount(account).setAccessBinding(accessBinding).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static AccessBindingName ofAccountAccessBindingName(String account, String accessBinding) { + return newBuilder().setAccount(account).setAccessBinding(accessBinding).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static AccessBindingName ofPropertyAccessBindingName( + String property, String accessBinding) { + return newPropertyAccessBindingBuilder() + .setProperty(property) + .setAccessBinding(accessBinding) + .build(); + } + + public static String format(String account, String accessBinding) { + return newBuilder().setAccount(account).setAccessBinding(accessBinding).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatAccountAccessBindingName(String account, String accessBinding) { + return newBuilder().setAccount(account).setAccessBinding(accessBinding).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatPropertyAccessBindingName(String property, String accessBinding) { + return newPropertyAccessBindingBuilder() + .setProperty(property) + .setAccessBinding(accessBinding) + .build() + .toString(); + } + + public static AccessBindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ACCOUNT_ACCESS_BINDING.matches(formattedString)) { + Map matchMap = ACCOUNT_ACCESS_BINDING.match(formattedString); + return ofAccountAccessBindingName(matchMap.get("account"), matchMap.get("access_binding")); + } else if (PROPERTY_ACCESS_BINDING.matches(formattedString)) { + Map matchMap = PROPERTY_ACCESS_BINDING.match(formattedString); + return ofPropertyAccessBindingName(matchMap.get("property"), matchMap.get("access_binding")); + } + throw new ValidationException("AccessBindingName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AccessBindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ACCOUNT_ACCESS_BINDING.matches(formattedString) + || PROPERTY_ACCESS_BINDING.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (account != null) { + fieldMapBuilder.put("account", account); + } + if (accessBinding != null) { + fieldMapBuilder.put("access_binding", accessBinding); + } + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + AccessBindingName that = ((AccessBindingName) o); + return Objects.equals(this.account, that.account) + && Objects.equals(this.accessBinding, that.accessBinding) + && Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(account); + h *= 1000003; + h ^= Objects.hashCode(accessBinding); + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for accounts/{account}/accessBindings/{access_binding}. */ + public static class Builder { + private String account; + private String accessBinding; + + protected Builder() {} + + public String getAccount() { + return account; + } + + public String getAccessBinding() { + return accessBinding; + } + + public Builder setAccount(String account) { + this.account = account; + return this; + } + + public Builder setAccessBinding(String accessBinding) { + this.accessBinding = accessBinding; + return this; + } + + private Builder(AccessBindingName accessBindingName) { + Preconditions.checkArgument( + Objects.equals(accessBindingName.pathTemplate, ACCOUNT_ACCESS_BINDING), + "toBuilder is only supported when AccessBindingName has the pattern of accounts/{account}/accessBindings/{access_binding}"); + this.account = accessBindingName.account; + this.accessBinding = accessBindingName.accessBinding; + } + + public AccessBindingName build() { + return new AccessBindingName(this); + } + } + + /** Builder for properties/{property}/accessBindings/{access_binding}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class PropertyAccessBindingBuilder { + private String property; + private String accessBinding; + + protected PropertyAccessBindingBuilder() {} + + public String getProperty() { + return property; + } + + public String getAccessBinding() { + return accessBinding; + } + + public PropertyAccessBindingBuilder setProperty(String property) { + this.property = property; + return this; + } + + public PropertyAccessBindingBuilder setAccessBinding(String accessBinding) { + this.accessBinding = accessBinding; + return this; + } + + public AccessBindingName build() { + return new AccessBindingName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java new file mode 100644 index 000000000000..4f7181e656e2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java @@ -0,0 +1,187 @@ +/* + * 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 AccessBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return Whether the user field is set. + */ + boolean hasUser(); + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return The user. + */ + java.lang.String getUser(); + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
+   * Output only. Resource name of this binding.
+   * Format: accounts/{account}/accessBindings/{access_binding} or
+   * properties/{property}/accessBindings/{access_binding}
+   * Example:
+   * "accounts/100/accessBindings/200"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this binding.
+   * Format: accounts/{account}/accessBindings/{access_binding} or
+   * properties/{property}/accessBindings/{access_binding}
+   * Example:
+   * "accounts/100/accessBindings/200"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @return A list containing the roles. + */ + java.util.List getRolesList(); + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @return The count of roles. + */ + int getRolesCount(); + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString getRolesBytes(int index); + + public com.google.analytics.admin.v1alpha.AccessBinding.AccessTargetCase getAccessTargetCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index ef15bf56be6b..e0562fa6cfb2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -459,6 +459,82 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -500,888 +576,1043 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cs_admin.proto\022\036google.analytics.admin.v" + "1alpha\0322google/analytics/admin/v1alpha/a" + "ccess_report.proto\032-google/analytics/adm" - + "in/v1alpha/audience.proto\032.google/analyt" - + "ics/admin/v1alpha/resources.proto\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\244\004\n\026RunAccessReportRequest\022\016\n\006entit" - + "y\030\001 \001(\t\022C\n\ndimensions\030\002 \003(\0132/.google.ana" - + "lytics.admin.v1alpha.AccessDimension\022=\n\007" - + "metrics\030\003 \003(\0132,.google.analytics.admin.v" - + "1alpha.AccessMetric\022D\n\013date_ranges\030\004 \003(\013" - + "2/.google.analytics.admin.v1alpha.Access" - + "DateRange\022P\n\020dimension_filter\030\005 \001(\01326.go" - + "ogle.analytics.admin.v1alpha.AccessFilte" - + "rExpression\022M\n\rmetric_filter\030\006 \001(\01326.goo" - + "gle.analytics.admin.v1alpha.AccessFilter" - + "Expression\022\016\n\006offset\030\007 \001(\003\022\r\n\005limit\030\010 \001(" - + "\003\022\021\n\ttime_zone\030\t \001(\t\022@\n\torder_bys\030\n \003(\0132" - + "-.google.analytics.admin.v1alpha.AccessO" - + "rderBy\022\033\n\023return_entity_quota\030\013 \001(\010\"\277\002\n\027" - + "RunAccessReportResponse\022P\n\021dimension_hea" - + "ders\030\001 \003(\01325.google.analytics.admin.v1al" - + "pha.AccessDimensionHeader\022J\n\016metric_head" - + "ers\030\002 \003(\01322.google.analytics.admin.v1alp" - + "ha.AccessMetricHeader\0227\n\004rows\030\003 \003(\0132).go" - + "ogle.analytics.admin.v1alpha.AccessRow\022\021" - + "\n\trow_count\030\004 \001(\005\022:\n\005quota\030\005 \001(\0132+.googl" - + "e.analytics.admin.v1alpha.AccessQuota\"P\n" - + "\021GetAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%analyticsadmin.googleapis.com/Account\"" - + "R\n\023ListAccountsRequest\022\021\n\tpage_size\030\001 \001(" - + "\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 " - + "\001(\010\"j\n\024ListAccountsResponse\0229\n\010accounts\030" - + "\001 \003(\0132\'.google.analytics.admin.v1alpha.A" - + "ccount\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024Delet" - + "eAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%a" - + "nalyticsadmin.googleapis.com/Account\"\213\001\n" - + "\024UpdateAccountRequest\022=\n\007account\030\001 \001(\0132\'" - + ".google.analytics.admin.v1alpha.AccountB" - + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"o\n\035ProvisionAccountTi" - + "cketRequest\0228\n\007account\030\001 \001(\0132\'.google.an" - + "alytics.admin.v1alpha.Account\022\024\n\014redirec" - + "t_uri\030\002 \001(\t\";\n\036ProvisionAccountTicketRes" - + "ponse\022\031\n\021account_ticket_id\030\001 \001(\t\"R\n\022GetP" - + "ropertyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&an" - + "alyticsadmin.googleapis.com/Property\"i\n\025" - + "ListPropertiesRequest\022\023\n\006filter\030\001 \001(\tB\003\340" - + "A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\022\024\n\014show_deleted\030\004 \001(\010\"o\n\026ListPropertie" - + "sResponse\022<\n\nproperties\030\001 \003(\0132(.google.a" - + "nalytics.admin.v1alpha.Property\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\216\001\n\025UpdatePropertyReque" + + "in/v1alpha/audience.proto\0326google/analyt" + + "ics/admin/v1alpha/expanded_data_set.prot" + + "o\032.google/analytics/admin/v1alpha/resour" + + "ces.proto\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\033google/protobuf/empty.proto\032 googl" + + "e/protobuf/field_mask.proto\032\037google/prot" + + "obuf/timestamp.proto\"\244\004\n\026RunAccessReport" + + "Request\022\016\n\006entity\030\001 \001(\t\022C\n\ndimensions\030\002 " + + "\003(\0132/.google.analytics.admin.v1alpha.Acc" + + "essDimension\022=\n\007metrics\030\003 \003(\0132,.google.a" + + "nalytics.admin.v1alpha.AccessMetric\022D\n\013d" + + "ate_ranges\030\004 \003(\0132/.google.analytics.admi" + + "n.v1alpha.AccessDateRange\022P\n\020dimension_f" + + "ilter\030\005 \001(\01326.google.analytics.admin.v1a" + + "lpha.AccessFilterExpression\022M\n\rmetric_fi" + + "lter\030\006 \001(\01326.google.analytics.admin.v1al" + + "pha.AccessFilterExpression\022\016\n\006offset\030\007 \001" + + "(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime_zone\030\t \001(\t\022@\n\t" + + "order_bys\030\n \003(\0132-.google.analytics.admin" + + ".v1alpha.AccessOrderBy\022\033\n\023return_entity_" + + "quota\030\013 \001(\010\"\277\002\n\027RunAccessReportResponse\022" + + "P\n\021dimension_headers\030\001 \003(\01325.google.anal" + + "ytics.admin.v1alpha.AccessDimensionHeade" + + "r\022J\n\016metric_headers\030\002 \003(\01322.google.analy" + + "tics.admin.v1alpha.AccessMetricHeader\0227\n" + + "\004rows\030\003 \003(\0132).google.analytics.admin.v1a" + + "lpha.AccessRow\022\021\n\trow_count\030\004 \001(\005\022:\n\005quo" + + "ta\030\005 \001(\0132+.google.analytics.admin.v1alph" + + "a.AccessQuota\"P\n\021GetAccountRequest\022;\n\004na" + + "me\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.googlea" + + "pis.com/Account\"R\n\023ListAccountsRequest\022\021" + + "\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\024\n" + + "\014show_deleted\030\003 \001(\010\"j\n\024ListAccountsRespo" + + "nse\0229\n\010accounts\030\001 \003(\0132\'.google.analytics" + + ".admin.v1alpha.Account\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"S\n\024DeleteAccountRequest\022;\n\004name\030" + + "\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.googleapis" + + ".com/Account\"\213\001\n\024UpdateAccountRequest\022=\n" + + "\007account\030\001 \001(\0132\'.google.analytics.admin." + + "v1alpha.AccountB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"o\n\035Pr" + + "ovisionAccountTicketRequest\0228\n\007account\030\001" + + " \001(\0132\'.google.analytics.admin.v1alpha.Ac" + + "count\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provision" + + "AccountTicketResponse\022\031\n\021account_ticket_" + + "id\030\001 \001(\t\"R\n\022GetPropertyRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\n&analyticsadmin.googleapis." + + "com/Property\"i\n\025ListPropertiesRequest\022\023\n" + + "\006filter\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"" + + "o\n\026ListPropertiesResponse\022<\n\nproperties\030" + + "\001 \003(\0132(.google.analytics.admin.v1alpha.P" + + "roperty\022\027\n\017next_page_token\030\002 \001(\t\"\216\001\n\025Upd" + + "atePropertyRequest\022?\n\010property\030\001 \001(\0132(.g" + + "oogle.analytics.admin.v1alpha.PropertyB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"X\n\025CreatePropertyReque" + "st\022?\n\010property\030\001 \001(\0132(.google.analytics." - + "admin.v1alpha.PropertyB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"X\n\025CreatePropertyRequest\022?\n\010property\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.Pr" - + "opertyB\003\340A\002\"U\n\025DeletePropertyRequest\022<\n\004" - + "name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googl" - + "eapis.com/Property\"R\n\022GetUserLinkRequest" - + "\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.g" - + "oogleapis.com/UserLink\"\231\001\n\030BatchGetUserL" - + "inksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&ana" - + "lyticsadmin.googleapis.com/UserLink\022=\n\005n" - + "ames\030\002 \003(\tB.\340A\002\372A(\n&analyticsadmin.googl" - + "eapis.com/UserLink\"Y\n\031BatchGetUserLinksR" - + "esponse\022<\n\nuser_links\030\001 \003(\0132(.google.ana" - + "lytics.admin.v1alpha.UserLink\"}\n\024ListUse" - + "rLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&a" - + "nalyticsadmin.googleapis.com/UserLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025" - + "ListUserLinksResponse\022<\n\nuser_links\030\001 \003(" - + "\0132(.google.analytics.admin.v1alpha.UserL" - + "ink\022\027\n\017next_page_token\030\002 \001(\t\"~\n\025AuditUse" + + "admin.v1alpha.PropertyB\003\340A\002\"U\n\025DeletePro" + + "pertyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&anal" + + "yticsadmin.googleapis.com/Property\"R\n\022Ge" + + "tUserLinkRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&" + + "analyticsadmin.googleapis.com/UserLink\"\231" + + "\001\n\030BatchGetUserLinksRequest\022>\n\006parent\030\001 " + + "\001(\tB.\340A\002\372A(\022&analyticsadmin.googleapis.c" + + "om/UserLink\022=\n\005names\030\002 \003(\tB.\340A\002\372A(\n&anal" + + "yticsadmin.googleapis.com/UserLink\"Y\n\031Ba" + + "tchGetUserLinksResponse\022<\n\nuser_links\030\001 " + + "\003(\0132(.google.analytics.admin.v1alpha.Use" + + "rLink\"}\n\024ListUserLinksRequest\022>\n\006parent\030" + + "\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleapis" + + ".com/UserLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"n\n\025ListUserLinksResponse\022<\n" + + "\nuser_links\030\001 \003(\0132(.google.analytics.adm" + + "in.v1alpha.UserLink\022\027\n\017next_page_token\030\002" + + " \001(\t\"~\n\025AuditUserLinksRequest\022>\n\006parent\030" + + "\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleapis" + + ".com/UserLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"t\n\026AuditUserLinksResponse\022A" + + "\n\nuser_links\030\001 \003(\0132-.google.analytics.ad" + + "min.v1alpha.AuditUserLink\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\267\001\n\025CreateUserLinkRequest\022>\n\006" + + "parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.goo" + + "gleapis.com/UserLink\022\034\n\017notify_new_user\030" + + "\002 \001(\010B\003\340A\001\022@\n\tuser_link\030\003 \001(\0132(.google.a" + + "nalytics.admin.v1alpha.UserLinkB\003\340A\002\"\312\001\n" + + "\033BatchCreateUserLinksRequest\022>\n\006parent\030\001" + + " \001(\tB.\340A\002\372A(\022&analyticsadmin.googleapis." + + "com/UserLink\022\035\n\020notify_new_users\030\002 \001(\010B\003" + + "\340A\001\022L\n\010requests\030\003 \003(\01325.google.analytics" + + ".admin.v1alpha.CreateUserLinkRequestB\003\340A" + + "\002\"\\\n\034BatchCreateUserLinksResponse\022<\n\nuse" + + "r_links\030\001 \003(\0132(.google.analytics.admin.v" + + "1alpha.UserLink\"Y\n\025UpdateUserLinkRequest" + + "\022@\n\tuser_link\030\001 \001(\0132(.google.analytics.a" + + "dmin.v1alpha.UserLinkB\003\340A\002\"\253\001\n\033BatchUpda" + + "teUserLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372" + + "A(\022&analyticsadmin.googleapis.com/UserLi" + + "nk\022L\n\010requests\030\002 \003(\01325.google.analytics." + + "admin.v1alpha.UpdateUserLinkRequestB\003\340A\002" + + "\"\\\n\034BatchUpdateUserLinksResponse\022<\n\nuser" + + "_links\030\001 \003(\0132(.google.analytics.admin.v1" + + "alpha.UserLink\"U\n\025DeleteUserLinkRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.go" + + "ogleapis.com/UserLink\"\253\001\n\033BatchDeleteUse" + "rLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&a" - + "nalyticsadmin.googleapis.com/UserLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026" - + "AuditUserLinksResponse\022A\n\nuser_links\030\001 \003" - + "(\0132-.google.analytics.admin.v1alpha.Audi" - + "tUserLink\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\025C" - + "reateUserLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A" - + "\002\372A(\022&analyticsadmin.googleapis.com/User" - + "Link\022\034\n\017notify_new_user\030\002 \001(\010B\003\340A\001\022@\n\tus" - + "er_link\030\003 \001(\0132(.google.analytics.admin.v" - + "1alpha.UserLinkB\003\340A\002\"\312\001\n\033BatchCreateUser" - + "LinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&an" - + "alyticsadmin.googleapis.com/UserLink\022\035\n\020" - + "notify_new_users\030\002 \001(\010B\003\340A\001\022L\n\010requests\030" - + "\003 \003(\01325.google.analytics.admin.v1alpha.C" - + "reateUserLinkRequestB\003\340A\002\"\\\n\034BatchCreate" - + "UserLinksResponse\022<\n\nuser_links\030\001 \003(\0132(." - + "google.analytics.admin.v1alpha.UserLink\"" - + "Y\n\025UpdateUserLinkRequest\022@\n\tuser_link\030\001 " - + "\001(\0132(.google.analytics.admin.v1alpha.Use" - + "rLinkB\003\340A\002\"\253\001\n\033BatchUpdateUserLinksReque" - + "st\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadm" - + "in.googleapis.com/UserLink\022L\n\010requests\030\002" - + " \003(\01325.google.analytics.admin.v1alpha.Up" - + "dateUserLinkRequestB\003\340A\002\"\\\n\034BatchUpdateU" - + "serLinksResponse\022<\n\nuser_links\030\001 \003(\0132(.g" - + "oogle.analytics.admin.v1alpha.UserLink\"U" - + "\n\025DeleteUserLinkRequest\022<\n\004name\030\001 \001(\tB.\340" - + "A\002\372A(\n&analyticsadmin.googleapis.com/Use" - + "rLink\"\253\001\n\033BatchDeleteUserLinksRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.go" - + "ogleapis.com/UserLink\022L\n\010requests\030\002 \003(\0132" - + "5.google.analytics.admin.v1alpha.DeleteU" - + "serLinkRequestB\003\340A\002\"\251\001\n\031CreateFirebaseLi" - + "nkRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analy" - + "ticsadmin.googleapis.com/FirebaseLink\022H\n" - + "\rfirebase_link\030\002 \001(\0132,.google.analytics." - + "admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n\031Delet" - + "eFirebaseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" - + "A,\n*analyticsadmin.googleapis.com/Fireba" - + "seLink\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006p" - + "arent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.goog" - + "leapis.com/FirebaseLink\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListFirebaseLi" - + "nksResponse\022D\n\016firebase_links\030\001 \003(\0132,.go" - + "ogle.analytics.admin.v1alpha.FirebaseLin" - + "k\022\027\n\017next_page_token\030\002 \001(\t\"\\\n\027GetGlobalS" - + "iteTagRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+ana" - + "lyticsadmin.googleapis.com/GlobalSiteTag" - + "\"\256\001\n\032CreateGoogleAdsLinkRequest\022C\n\006paren" - + "t\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleap" - + "is.com/GoogleAdsLink\022K\n\017google_ads_link\030" - + "\002 \001(\0132-.google.analytics.admin.v1alpha.G" - + "oogleAdsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLin" - + "kRequest\022F\n\017google_ads_link\030\001 \001(\0132-.goog" - + "le.analytics.admin.v1alpha.GoogleAdsLink" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"_\n\032DeleteGoogleAdsLinkReq" - + "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadm" - + "in.googleapis.com/GoogleAdsLink\"\207\001\n\031List" - + "GoogleAdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340" - + "A\002\372A-\022+analyticsadmin.googleapis.com/Goo" - + "gleAdsLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"~\n\032ListGoogleAdsLinksResponse\022" - + "G\n\020google_ads_links\030\001 \003(\0132-.google.analy" - + "tics.admin.v1alpha.GoogleAdsLink\022\027\n\017next" - + "_page_token\030\002 \001(\t\"h\n\035GetDataSharingSetti" - + "ngsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyt" - + "icsadmin.googleapis.com/DataSharingSetti" - + "ngs\"D\n\033ListAccountSummariesRequest\022\021\n\tpa" - + "ge_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034Li" - + "stAccountSummariesResponse\022I\n\021account_su" - + "mmaries\030\001 \003(\0132..google.analytics.admin.v" - + "1alpha.AccountSummary\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\206\001\n$AcknowledgeUserDataCollection" - + "Request\022@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analy" - + "ticsadmin.googleapis.com/Property\022\034\n\017ack" - + "nowledgement\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUs" - + "erDataCollectionResponse\"\203\004\n SearchChang" - + "eHistoryEventsRequest\022>\n\007account\030\001 \001(\tB-" - + "\340A\002\372A\'\n%analyticsadmin.googleapis.com/Ac" - + "count\022@\n\010property\030\002 \001(\tB.\340A\001\372A(\n&analyti" - + "csadmin.googleapis.com/Property\022U\n\rresou" - + "rce_type\030\003 \003(\01629.google.analytics.admin." - + "v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?" - + "\n\006action\030\004 \003(\0162*.google.analytics.admin." - + "v1alpha.ActionTypeB\003\340A\001\022\030\n\013actor_email\030\005" - + " \003(\tB\003\340A\001\022=\n\024earliest_change_time\030\006 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\001\022;\n\022late" - + "st_change_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\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!SearchChangeH" - + "istoryEventsResponse\022Q\n\025change_history_e" - + "vents\030\001 \003(\01322.google.analytics.admin.v1a" - + "lpha.ChangeHistoryEvent\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"t\n#GetMeasurementProtocolSecret" - + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" - + "admin.googleapis.com/MeasurementProtocol" - + "Secret\"\336\001\n&CreateMeasurementProtocolSecr" - + "etRequest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analy" - + "ticsadmin.googleapis.com/MeasurementProt" - + "ocolSecret\022c\n\033measurement_protocol_secre" - + "t\030\002 \001(\01329.google.analytics.admin.v1alpha" - + ".MeasurementProtocolSecretB\003\340A\002\"w\n&Delet" - + "eMeasurementProtocolSecretRequest\022M\n\004nam" - + "e\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin.googleap" - + "is.com/MeasurementProtocolSecret\"\276\001\n&Upd" - + "ateMeasurementProtocolSecretRequest\022c\n\033m" - + "easurement_protocol_secret\030\001 \001(\01329.googl" - + "e.analytics.admin.v1alpha.MeasurementPro" - + "tocolSecretB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\"\237\001\n%ListMeasur" - + "ementProtocolSecretsRequest\022O\n\006parent\030\001 " - + "\001(\tB?\340A\002\372A9\0227analyticsadmin.googleapis.c" - + "om/MeasurementProtocolSecret\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n&ListMeas" - + "urementProtocolSecretsResponse\022_\n\034measur" - + "ement_protocol_secrets\030\001 \003(\01329.google.an" - + "alytics.admin.v1alpha.MeasurementProtoco" - + "lSecret\022\027\n\017next_page_token\030\002 \001(\t\"l\n\037GetG" - + "oogleSignalsSettingsRequest\022I\n\004name\030\001 \001(" - + "\tB;\340A\002\372A5\n3analyticsadmin.googleapis.com" - + "/GoogleSignalsSettings\"\267\001\n\"UpdateGoogleS" - + "ignalsSettingsRequest\022[\n\027google_signals_" - + "settings\030\001 \001(\01325.google.analytics.admin." - + "v1alpha.GoogleSignalsSettingsB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"\265\001\n\034CreateConversionEventReques" - + "t\022N\n\020conversion_event\030\001 \001(\0132/.google.ana" - + "lytics.admin.v1alpha.ConversionEventB\003\340A" - + "\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/\022-analyticsadmi" - + "n.googleapis.com/ConversionEvent\"`\n\031GetC" - + "onversionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002" - + "\372A/\n-analyticsadmin.googleapis.com/Conve" - + "rsionEvent\"c\n\034DeleteConversionEventReque" - + "st\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin" - + ".googleapis.com/ConversionEvent\"\213\001\n\033List" - + "ConversionEventsRequest\022E\n\006parent\030\001 \001(\tB" - + "5\340A\002\372A/\022-analyticsadmin.googleapis.com/C" - + "onversionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\"\203\001\n\034ListConversionEventsRe" - + "sponse\022J\n\021conversion_events\030\001 \003(\0132/.goog" - + "le.analytics.admin.v1alpha.ConversionEve" - + "nt\022\027\n\017next_page_token\030\002 \001(\t\"|\n\'GetDispla" - + "yVideo360AdvertiserLinkRequest\022Q\n\004name\030\001" - + " \001(\tBC\340A\002\372A=\n;analyticsadmin.googleapis." - + "com/DisplayVideo360AdvertiserLink\"\247\001\n)Li" - + "stDisplayVideo360AdvertiserLinksRequest\022" - + "S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin." - + "googleapis.com/DisplayVideo360Advertiser" - + "Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"\260\001\n*ListDisplayVideo360AdvertiserLin" - + "ksResponse\022i\n\"display_video_360_advertis" - + "er_links\030\001 \003(\0132=.google.analytics.admin." - + "v1alpha.DisplayVideo360AdvertiserLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\360\001\n*CreateDisplay" - + "Video360AdvertiserLinkRequest\022S\n\006parent\030" - + "\001 \001(\tBC\340A\002\372A=\022;analyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLink\022m\n!di" - + "splay_video_360_advertiser_link\030\002 \001(\0132=." - + "google.analytics.admin.v1alpha.DisplayVi" - + "deo360AdvertiserLinkB\003\340A\002\"\177\n*DeleteDispl" - + "ayVideo360AdvertiserLinkRequest\022Q\n\004name\030" - + "\001 \001(\tBC\340A\002\372A=\n;analyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLink\"\314\001\n*U" - + "pdateDisplayVideo360AdvertiserLinkReques" - + "t\022h\n!display_video_360_advertiser_link\030\001" - + " \001(\0132=.google.analytics.admin.v1alpha.Di" - + "splayVideo360AdvertiserLink\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"\214\001\n/GetDisplayVideo360AdvertiserLinkPr" - + "oposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCana" - + "lyticsadmin.googleapis.com/DisplayVideo3" - + "60AdvertiserLinkProposal\"\267\001\n1ListDisplay" - + "Video360AdvertiserLinkProposalsRequest\022[" - + "\n\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.g" - + "oogleapis.com/DisplayVideo360AdvertiserL" - + "inkProposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\311\001\n2ListDisplayVideo360Advert" - + "iserLinkProposalsResponse\022z\n+display_vid" - + "eo_360_advertiser_link_proposals\030\001 \003(\0132E" - + ".google.analytics.admin.v1alpha.DisplayV" - + "ideo360AdvertiserLinkProposal\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"\221\002\n2CreateDisplayVideo360" - + "AdvertiserLinkProposalRequest\022[\n\006parent\030" - + "\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLinkPropos" - + "al\022~\n*display_video_360_advertiser_link_" - + "proposal\030\002 \001(\0132E.google.analytics.admin." + + "nalyticsadmin.googleapis.com/UserLink\022L\n" + + "\010requests\030\002 \003(\01325.google.analytics.admin" + + ".v1alpha.DeleteUserLinkRequestB\003\340A\002\"\251\001\n\031" + + "CreateFirebaseLinkRequest\022B\n\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com" + + "/FirebaseLink\022H\n\rfirebase_link\030\002 \001(\0132,.g" + + "oogle.analytics.admin.v1alpha.FirebaseLi" + + "nkB\003\340A\002\"]\n\031DeleteFirebaseLinkRequest\022@\n\004" + + "name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.googl" + + "eapis.com/FirebaseLink\"\205\001\n\030ListFirebaseL" + + "inksRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*ana" + + "lyticsadmin.googleapis.com/FirebaseLink\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z" + + "\n\031ListFirebaseLinksResponse\022D\n\016firebase_" + + "links\030\001 \003(\0132,.google.analytics.admin.v1a" + + "lpha.FirebaseLink\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\\\n\027GetGlobalSiteTagRequest\022A\n\004name\030\001 " + + "\001(\tB3\340A\002\372A-\n+analyticsadmin.googleapis.c" + + "om/GlobalSiteTag\"\256\001\n\032CreateGoogleAdsLink" + + "Request\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyti" + + "csadmin.googleapis.com/GoogleAdsLink\022K\n\017" + + "google_ads_link\030\002 \001(\0132-.google.analytics" + + ".admin.v1alpha.GoogleAdsLinkB\003\340A\002\"\232\001\n\032Up" + + "dateGoogleAdsLinkRequest\022F\n\017google_ads_l" + + "ink\030\001 \001(\0132-.google.analytics.admin.v1alp" + + "ha.GoogleAdsLink\0224\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMaskB\003\340A\002\"_\n\032Delete" + + "GoogleAdsLinkRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372" + + "A-\n+analyticsadmin.googleapis.com/Google" + + "AdsLink\"\207\001\n\031ListGoogleAdsLinksRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.go" + + "ogleapis.com/GoogleAdsLink\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\032ListGoogleA" + + "dsLinksResponse\022G\n\020google_ads_links\030\001 \003(" + + "\0132-.google.analytics.admin.v1alpha.Googl" + + "eAdsLink\022\027\n\017next_page_token\030\002 \001(\t\"h\n\035Get" + + "DataSharingSettingsRequest\022G\n\004name\030\001 \001(\t" + + "B9\340A\002\372A3\n1analyticsadmin.googleapis.com/" + + "DataSharingSettings\"D\n\033ListAccountSummar" + + "iesRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_to" + + "ken\030\002 \001(\t\"\202\001\n\034ListAccountSummariesRespon" + + "se\022I\n\021account_summaries\030\001 \003(\0132..google.a" + + "nalytics.admin.v1alpha.AccountSummary\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\206\001\n$AcknowledgeUs" + + "erDataCollectionRequest\022@\n\010property\030\001 \001(" + + "\tB.\340A\002\372A(\n&analyticsadmin.googleapis.com" + + "/Property\022\034\n\017acknowledgement\030\002 \001(\tB\003\340A\002\"" + + "\'\n%AcknowledgeUserDataCollectionResponse" + + "\"\203\004\n SearchChangeHistoryEventsRequest\022>\n" + + "\007account\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.g" + + "oogleapis.com/Account\022@\n\010property\030\002 \001(\tB" + + ".\340A\001\372A(\n&analyticsadmin.googleapis.com/P" + + "roperty\022U\n\rresource_type\030\003 \003(\01629.google." + + "analytics.admin.v1alpha.ChangeHistoryRes" + + "ourceTypeB\003\340A\001\022?\n\006action\030\004 \003(\0162*.google." + + "analytics.admin.v1alpha.ActionTypeB\003\340A\001\022" + + "\030\n\013actor_email\030\005 \003(\tB\003\340A\001\022=\n\024earliest_ch" + + "ange_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\001\022;\n\022latest_change_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001\022\026\n\tpage_si" + + "ze\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\025" + + "change_history_events\030\001 \003(\01322.google.ana" + + "lytics.admin.v1alpha.ChangeHistoryEvent\022" + + "\027\n\017next_page_token\030\002 \001(\t\"t\n#GetMeasureme" + + "ntProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340" + + "A\002\372A9\n7analyticsadmin.googleapis.com/Mea" + + "surementProtocolSecret\"\336\001\n&CreateMeasure" + + "mentProtocolSecretRequest\022O\n\006parent\030\001 \001(" + + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com" + + "/MeasurementProtocolSecret\022c\n\033measuremen" + + "t_protocol_secret\030\002 \001(\01329.google.analyti" + + "cs.admin.v1alpha.MeasurementProtocolSecr" + + "etB\003\340A\002\"w\n&DeleteMeasurementProtocolSecr" + + "etRequest\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyti" + + "csadmin.googleapis.com/MeasurementProtoc" + + "olSecret\"\276\001\n&UpdateMeasurementProtocolSe" + + "cretRequest\022c\n\033measurement_protocol_secr" + + "et\030\001 \001(\01329.google.analytics.admin.v1alph" + + "a.MeasurementProtocolSecretB\003\340A\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\"\237\001\n%ListMeasurementProtocolSecretsRequ" + + "est\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsad" + + "min.googleapis.com/MeasurementProtocolSe" + + "cret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\242\001\n&ListMeasurementProtocolSecretsRe" + + "sponse\022_\n\034measurement_protocol_secrets\030\001" + + " \003(\01329.google.analytics.admin.v1alpha.Me" + + "asurementProtocolSecret\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"l\n\037GetGoogleSignalsSettingsRequ" + + "est\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmi" + + "n.googleapis.com/GoogleSignalsSettings\"\267" + + "\001\n\"UpdateGoogleSignalsSettingsRequest\022[\n" + + "\027google_signals_settings\030\001 \001(\01325.google." + + "analytics.admin.v1alpha.GoogleSignalsSet" + + "tingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\"\265\001\n\034CreateConve" + + "rsionEventRequest\022N\n\020conversion_event\030\001 " + + "\001(\0132/.google.analytics.admin.v1alpha.Con" + + "versionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A" + + "/\022-analyticsadmin.googleapis.com/Convers" + + "ionEvent\"`\n\031GetConversionEventRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.goog" + + "leapis.com/ConversionEvent\"c\n\034DeleteConv" + + "ersionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/" + + "\n-analyticsadmin.googleapis.com/Conversi" + + "onEvent\"\213\001\n\033ListConversionEventsRequest\022" + + "E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin." + + "googleapis.com/ConversionEvent\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListCo" + + "nversionEventsResponse\022J\n\021conversion_eve" + + "nts\030\001 \003(\0132/.google.analytics.admin.v1alp" + + "ha.ConversionEvent\022\027\n\017next_page_token\030\002 " + + "\001(\t\"|\n\'GetDisplayVideo360AdvertiserLinkR" + + "equest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;analyticsa" + + "dmin.googleapis.com/DisplayVideo360Adver" + + "tiserLink\"\247\001\n)ListDisplayVideo360Adverti" + + "serLinksRequest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022" + + ";analyticsadmin.googleapis.com/DisplayVi" + + "deo360AdvertiserLink\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"\260\001\n*ListDisplayVideo" + + "360AdvertiserLinksResponse\022i\n\"display_vi" + + "deo_360_advertiser_links\030\001 \003(\0132=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLink\022\027\n\017next_page_token\030\002 \001(\t\"\360" + + "\001\n*CreateDisplayVideo360AdvertiserLinkRe" + + "quest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022;analytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLink\022m\n!display_video_360_advertis" + + "er_link\030\002 \001(\0132=.google.analytics.admin.v" + + "1alpha.DisplayVideo360AdvertiserLinkB\003\340A" + + "\002\"\177\n*DeleteDisplayVideo360AdvertiserLink" + + "Request\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;analytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLink\"\314\001\n*UpdateDisplayVideo360Adve" + + "rtiserLinkRequest\022h\n!display_video_360_a" + + "dvertiser_link\030\001 \001(\0132=.google.analytics." + + "admin.v1alpha.DisplayVideo360AdvertiserL" + + "ink\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"\214\001\n/GetDisplayVideo360" + + "AdvertiserLinkProposalRequest\022Y\n\004name\030\001 " + + "\001(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.c" + + "om/DisplayVideo360AdvertiserLinkProposal" + + "\"\267\001\n1ListDisplayVideo360AdvertiserLinkPr" + + "oposalsRequest\022[\n\006parent\030\001 \001(\tBK\340A\002\372AE\022C" + + "analyticsadmin.googleapis.com/DisplayVid" + + "eo360AdvertiserLinkProposal\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\311\001\n2ListDispl" + + "ayVideo360AdvertiserLinkProposalsRespons" + + "e\022z\n+display_video_360_advertiser_link_p" + + "roposals\030\001 \003(\0132E.google.analytics.admin." + "v1alpha.DisplayVideo360AdvertiserLinkPro" - + "posalB\003\340A\002\"\217\001\n2DeleteDisplayVideo360Adve" - + "rtiserLinkProposalRequest\022Y\n\004name\030\001 \001(\tB" - + "K\340A\002\372AE\nCanalyticsadmin.googleapis.com/D" - + "isplayVideo360AdvertiserLinkProposal\"\220\001\n" - + "3ApproveDisplayVideo360AdvertiserLinkPro" - + "posalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanal" - + "yticsadmin.googleapis.com/DisplayVideo36" - + "0AdvertiserLinkProposal\"\240\001\n4ApproveDispl" - + "ayVideo360AdvertiserLinkProposalResponse" - + "\022h\n!display_video_360_advertiser_link\030\001 " - + "\001(\0132=.google.analytics.admin.v1alpha.Dis" - + "playVideo360AdvertiserLink\"\217\001\n2CancelDis" + + "posal\022\027\n\017next_page_token\030\002 \001(\t\"\221\002\n2Creat" + + "eDisplayVideo360AdvertiserLinkProposalRe" + + "quest\022[\n\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLinkProposal\022~\n*display_video_360_" + + "advertiser_link_proposal\030\002 \001(\0132E.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLinkProposalB\003\340A\002\"\217\001\n2DeleteDis" + "playVideo360AdvertiserLinkProposalReques" + "t\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin." + "googleapis.com/DisplayVideo360Advertiser" - + "LinkProposal\"b\n\032GetSearchAds360LinkReque" - + "st\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.analyticsadmin" - + ".googleapis.com/SearchAds360Link\"\215\001\n\034Lis" - + "tSearchAds360LinksRequest\022F\n\006parent\030\001 \001(" - + "\tB6\340A\002\372A0\022.analyticsadmin.googleapis.com" - + "/SearchAds360Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\210\001\n\035ListSearchAds360Lin" - + "ksResponse\022N\n\024search_ads_360_links\030\001 \003(\013" - + "20.google.analytics.admin.v1alpha.Search" - + "Ads360Link\022\027\n\017next_page_token\030\002 \001(\t\"\273\001\n\035" - + "CreateSearchAds360LinkRequest\022F\n\006parent\030" - + "\001 \001(\tB6\340A\002\372A0\022.analyticsadmin.googleapis" - + ".com/SearchAds360Link\022R\n\023search_ads_360_" - + "link\030\002 \001(\01320.google.analytics.admin.v1al" - + "pha.SearchAds360LinkB\003\340A\002\"e\n\035DeleteSearc" + + "LinkProposal\"\220\001\n3ApproveDisplayVideo360A" + + "dvertiserLinkProposalRequest\022Y\n\004name\030\001 \001" + + "(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.co" + + "m/DisplayVideo360AdvertiserLinkProposal\"" + + "\240\001\n4ApproveDisplayVideo360AdvertiserLink" + + "ProposalResponse\022h\n!display_video_360_ad" + + "vertiser_link\030\001 \001(\0132=.google.analytics.a" + + "dmin.v1alpha.DisplayVideo360AdvertiserLi" + + "nk\"\217\001\n2CancelDisplayVideo360AdvertiserLi" + + "nkProposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\n" + + "Canalyticsadmin.googleapis.com/DisplayVi" + + "deo360AdvertiserLinkProposal\"b\n\032GetSearc" + "hAds360LinkRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0" + "\n.analyticsadmin.googleapis.com/SearchAd" - + "s360Link\"\244\001\n\035UpdateSearchAds360LinkReque" - + "st\022M\n\023search_ads_360_link\030\001 \001(\01320.google" - + ".analytics.admin.v1alpha.SearchAds360Lin" - + "k\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\002\"\265\001\n\034CreateCustomDimensio" - + "nRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyt" - + "icsadmin.googleapis.com/CustomDimension\022" - + "N\n\020custom_dimension\030\002 \001(\0132/.google.analy" - + "tics.admin.v1alpha.CustomDimensionB\003\340A\002\"" - + "\237\001\n\034UpdateCustomDimensionRequest\022I\n\020cust" - + "om_dimension\030\001 \001(\0132/.google.analytics.ad" - + "min.v1alpha.CustomDimension\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"\213\001\n\033ListCustomDimensionsRequest\022E\n\006par" - + "ent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.google" - + "apis.com/CustomDimension\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListCustomDi" - + "mensionsResponse\022J\n\021custom_dimensions\030\001 " - + "\003(\0132/.google.analytics.admin.v1alpha.Cus" - + "tomDimension\022\027\n\017next_page_token\030\002 \001(\t\"d\n" - + "\035ArchiveCustomDimensionRequest\022C\n\004name\030\001" - + " \001(\tB5\340A\002\372A/\n-analyticsadmin.googleapis." - + "com/CustomDimension\"`\n\031GetCustomDimensio" - + "nRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analytic" - + "sadmin.googleapis.com/CustomDimension\"\251\001" - + "\n\031CreateCustomMetricRequest\022B\n\006parent\030\001 " - + "\001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis.c" - + "om/CustomMetric\022H\n\rcustom_metric\030\002 \001(\0132," + + "s360Link\"\215\001\n\034ListSearchAds360LinksReques" + + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.analyticsadmi" + + "n.googleapis.com/SearchAds360Link\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\210\001\n\035Lis" + + "tSearchAds360LinksResponse\022N\n\024search_ads" + + "_360_links\030\001 \003(\01320.google.analytics.admi" + + "n.v1alpha.SearchAds360Link\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\273\001\n\035CreateSearchAds360LinkRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.analytics" + + "admin.googleapis.com/SearchAds360Link\022R\n" + + "\023search_ads_360_link\030\002 \001(\01320.google.anal" + + "ytics.admin.v1alpha.SearchAds360LinkB\003\340A" + + "\002\"e\n\035DeleteSearchAds360LinkRequest\022D\n\004na" + + "me\030\001 \001(\tB6\340A\002\372A0\n.analyticsadmin.googlea" + + "pis.com/SearchAds360Link\"\244\001\n\035UpdateSearc" + + "hAds360LinkRequest\022M\n\023search_ads_360_lin" + + "k\030\001 \001(\01320.google.analytics.admin.v1alpha" + + ".SearchAds360Link\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\"\265\001\n\034Crea" + + "teCustomDimensionRequest\022E\n\006parent\030\001 \001(\t" + + "B5\340A\002\372A/\022-analyticsadmin.googleapis.com/" + + "CustomDimension\022N\n\020custom_dimension\030\002 \001(" + + "\0132/.google.analytics.admin.v1alpha.Custo" + + "mDimensionB\003\340A\002\"\237\001\n\034UpdateCustomDimensio" + + "nRequest\022I\n\020custom_dimension\030\001 \001(\0132/.goo" + + "gle.analytics.admin.v1alpha.CustomDimens" + + "ion\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"\213\001\n\033ListCustomDimensio" + + "nsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analy" + + "ticsadmin.googleapis.com/CustomDimension" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "\203\001\n\034ListCustomDimensionsResponse\022J\n\021cust" + + "om_dimensions\030\001 \003(\0132/.google.analytics.a" + + "dmin.v1alpha.CustomDimension\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"d\n\035ArchiveCustomDimensionR" + + "equest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsa" + + "dmin.googleapis.com/CustomDimension\"`\n\031G" + + "etCustomDimensionRequest\022C\n\004name\030\001 \001(\tB5" + + "\340A\002\372A/\n-analyticsadmin.googleapis.com/Cu" + + "stomDimension\"\251\001\n\031CreateCustomMetricRequ" + + "est\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsad" + + "min.googleapis.com/CustomMetric\022H\n\rcusto" + + "m_metric\030\002 \001(\0132,.google.analytics.admin." + + "v1alpha.CustomMetricB\003\340A\002\"\226\001\n\031UpdateCust" + + "omMetricRequest\022C\n\rcustom_metric\030\001 \001(\0132," + ".google.analytics.admin.v1alpha.CustomMe" - + "tricB\003\340A\002\"\226\001\n\031UpdateCustomMetricRequest\022" - + "C\n\rcustom_metric\030\001 \001(\0132,.google.analytic" - + "s.admin.v1alpha.CustomMetric\0224\n\013update_m" + + "tric\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002\"\205\001\n\030ListCustomMetrics" + + "Request\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyti" + + "csadmin.googleapis.com/CustomMetric\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031Li" + + "stCustomMetricsResponse\022D\n\016custom_metric" + + "s\030\001 \003(\0132,.google.analytics.admin.v1alpha" + + ".CustomMetric\022\027\n\017next_page_token\030\002 \001(\t\"^" + + "\n\032ArchiveCustomMetricRequest\022@\n\004name\030\001 \001" + + "(\tB2\340A\002\372A,\n*analyticsadmin.googleapis.co" + + "m/CustomMetric\"Z\n\026GetCustomMetricRequest" + + "\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.g" + + "oogleapis.com/CustomMetric\"l\n\037GetDataRet" + + "entionSettingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002" + + "\372A5\n3analyticsadmin.googleapis.com/DataR" + + "etentionSettings\"\267\001\n\"UpdateDataRetention" + + "SettingsRequest\022[\n\027data_retention_settin" + + "gs\030\001 \001(\01325.google.analytics.admin.v1alph" + + "a.DataRetentionSettingsB\003\340A\002\0224\n\013update_m" + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"\205\001\n\030ListCustomMetricsRequest\022B\n\006paren" - + "t\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.googleap" - + "is.com/CustomMetric\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"z\n\031ListCustomMetricsR" - + "esponse\022D\n\016custom_metrics\030\001 \003(\0132,.google" - + ".analytics.admin.v1alpha.CustomMetric\022\027\n" - + "\017next_page_token\030\002 \001(\t\"^\n\032ArchiveCustomM" - + "etricRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*anal" - + "yticsadmin.googleapis.com/CustomMetric\"Z" - + "\n\026GetCustomMetricRequest\022@\n\004name\030\001 \001(\tB2" - + "\340A\002\372A,\n*analyticsadmin.googleapis.com/Cu" - + "stomMetric\"l\n\037GetDataRetentionSettingsRe" - + "quest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsad" - + "min.googleapis.com/DataRetentionSettings" - + "\"\267\001\n\"UpdateDataRetentionSettingsRequest\022" - + "[\n\027data_retention_settings\030\001 \001(\01325.googl" - + "e.analytics.admin.v1alpha.DataRetentionS" - + "ettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\241\001\n\027CreateDat" - + "aStreamRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(" - + "analyticsadmin.googleapis.com/DataStream" - + "\022D\n\013data_stream\030\002 \001(\0132*.google.analytics" - + ".admin.v1alpha.DataStreamB\003\340A\002\"Y\n\027Delete" - + "DataStreamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(analyticsadmin.googleapis.com/DataStrea" - + "m\"\220\001\n\027UpdateDataStreamRequest\022?\n\013data_st" - + "ream\030\001 \001(\0132*.google.analytics.admin.v1al" - + "pha.DataStream\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"\201\001\n\026ListDat" - + "aStreamsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022" - + "(analyticsadmin.googleapis.com/DataStrea" - + "m\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\"t\n\027ListDataStreamsResponse\022@\n\014data_stre" - + "ams\030\001 \003(\0132*.google.analytics.admin.v1alp" - + "ha.DataStream\022\027\n\017next_page_token\030\002 \001(\t\"V" - + "\n\024GetDataStreamRequest\022>\n\004name\030\001 \001(\tB0\340A" - + "\002\372A*\n(analyticsadmin.googleapis.com/Data" - + "Stream\"R\n\022GetAudienceRequest\022<\n\004name\030\001 \001" - + "(\tB.\340A\002\372A(\n&analyticsadmin.googleapis.co" - + "m/Audience\"}\n\024ListAudiencesRequest\022>\n\006pa" - + "rent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googl" - + "eapis.com/Audience\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\"m\n\025ListAudiencesRespon" - + "se\022;\n\taudiences\030\001 \003(\0132(.google.analytics" - + ".admin.v1alpha.Audience\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\230\001\n\025CreateAudienceRequest\022>\n\006pa" - + "rent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googl" - + "eapis.com/Audience\022?\n\010audience\030\002 \001(\0132(.g" - + "oogle.analytics.admin.v1alpha.AudienceB\003" - + "\340A\002\"\216\001\n\025UpdateAudienceRequest\022?\n\010audienc" - + "e\030\001 \001(\0132(.google.analytics.admin.v1alpha" - + ".AudienceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"V\n\026ArchiveA" - + "udienceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&an" - + "alyticsadmin.googleapis.com/Audience\"h\n\035" - + "GetAttributionSettingsRequest\022G\n\004name\030\001 " - + "\001(\tB9\340A\002\372A3\n1analyticsadmin.googleapis.c" - + "om/AttributionSettings\"\260\001\n UpdateAttribu" - + "tionSettingsRequest\022V\n\024attribution_setti" - + "ngs\030\001 \001(\01323.google.analytics.admin.v1alp" - + "ha.AttributionSettingsB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"S\n)SetAutomatedGa4ConfigurationOptOutR" - + "equest\022\025\n\010property\030\001 \001(\tB\003\340A\002\022\017\n\007opt_out" - + "\030\002 \001(\010\",\n*SetAutomatedGa4ConfigurationOp", - "tOutResponse\"D\n+FetchAutomatedGa4Configu" - + "rationOptOutRequest\022\025\n\010property\030\001 \001(\tB\003\340" - + "A\002\"?\n,FetchAutomatedGa4ConfigurationOptO" - + "utResponse\022\017\n\007opt_out\030\001 \001(\010\"Z\n\026GetBigQue" - + "ryLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*ana" - + "lyticsadmin.googleapis.com/BigQueryLink\"" - + "\205\001\n\030ListBigQueryLinksRequest\022B\n\006parent\030\001" - + " \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis." - + "com/BigQueryLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"z\n\031ListBigQueryLinksResp" - + "onse\022D\n\016bigquery_links\030\001 \003(\0132,.google.an" - + "alytics.admin.v1alpha.BigQueryLink\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t2\365\234\001\n\025AnalyticsAdminS" - + "ervice\022\223\001\n\nGetAccount\0221.google.analytics" - + ".admin.v1alpha.GetAccountRequest\032\'.googl" - + "e.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.v" - + "1alpha.ListAccountsRequest\0324.google.anal" - + "ytics.admin.v1alpha.ListAccountsResponse" - + "\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDeleteAc" - + "count\0224.google.analytics.admin.v1alpha.D" - + "eleteAccountRequest\032\026.google.protobuf.Em" - + "pty\")\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*}\332" - + "A\004name\022\271\001\n\rUpdateAccount\0224.google.analyt" - + "ics.admin.v1alpha.UpdateAccountRequest\032\'" - + ".google.analytics.admin.v1alpha.Account\"" - + "I\202\323\344\223\002-2\"/v1alpha/{account.name=accounts" - + "/*}:\007account\332A\023account,update_mask\022\314\001\n\026P" - + "rovisionAccountTicket\022=.google.analytics" - + ".admin.v1alpha.ProvisionAccountTicketReq" - + "uest\032>.google.analytics.admin.v1alpha.Pr" - + "ovisionAccountTicketResponse\"3\202\323\344\223\002-\"(/v" - + "1alpha/accounts:provisionAccountTicket:\001" - + "*\022\264\001\n\024ListAccountSummaries\022;.google.anal" - + "ytics.admin.v1alpha.ListAccountSummaries" - + "Request\032<.google.analytics.admin.v1alpha" - + ".ListAccountSummariesResponse\"!\202\323\344\223\002\033\022\031/" - + "v1alpha/accountSummaries\022\230\001\n\013GetProperty" - + "\0222.google.analytics.admin.v1alpha.GetPro" - + "pertyRequest\032(.google.analytics.admin.v1" - + "alpha.Property\"+\202\323\344\223\002\036\022\034/v1alpha/{name=p" - + "roperties/*}\332A\004name\022\234\001\n\016ListProperties\0225" - + ".google.analytics.admin.v1alpha.ListProp" - + "ertiesRequest\0326.google.analytics.admin.v" - + "1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022\023/" - + "v1alpha/properties\022\243\001\n\016CreateProperty\0225." - + "google.analytics.admin.v1alpha.CreatePro" - + "pertyRequest\032(.google.analytics.admin.v1" - + "alpha.Property\"0\202\323\344\223\002\037\"\023/v1alpha/propert" - + "ies:\010property\332A\010property\022\236\001\n\016DeletePrope" - + "rty\0225.google.analytics.admin.v1alpha.Del" - + "etePropertyRequest\032(.google.analytics.ad" - + "min.v1alpha.Property\"+\202\323\344\223\002\036*\034/v1alpha/{" - + "name=properties/*}\332A\004name\022\301\001\n\016UpdateProp" - + "erty\0225.google.analytics.admin.v1alpha.Up" - + "datePropertyRequest\032(.google.analytics.a" - + "dmin.v1alpha.Property\"N\202\323\344\223\00212%/v1alpha/" - + "{property.name=properties/*}:\010property\332A" - + "\024property,update_mask\022\316\001\n\013GetUserLink\0222." - + "google.analytics.admin.v1alpha.GetUserLi" - + "nkRequest\032(.google.analytics.admin.v1alp" - + "ha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{name=acco" - + "unts/*/userLinks/*}Z*\022(/v1alpha/{name=pr" - + "operties/*/userLinks/*}\332A\004name\022\366\001\n\021Batch" - + "GetUserLinks\0228.google.analytics.admin.v1" - + "alpha.BatchGetUserLinksRequest\0329.google." - + "analytics.admin.v1alpha.BatchGetUserLink" - + "sResponse\"l\202\323\344\223\002f\022//v1alpha/{parent=acco" - + "unts/*}/userLinks:batchGetZ3\0221/v1alpha/{" - + "parent=properties/*}/userLinks:batchGet\022" - + "\341\001\n\rListUserLinks\0224.google.analytics.adm" - + "in.v1alpha.ListUserLinksRequest\0325.google" - + ".analytics.admin.v1alpha.ListUserLinksRe" - + "sponse\"c\202\323\344\223\002T\022&/v1alpha/{parent=account" - + "s/*}/userLinksZ*\022(/v1alpha/{parent=prope" - + "rties/*}/userLinks\332A\006parent\022\355\001\n\016AuditUse" - + "rLinks\0225.google.analytics.admin.v1alpha." - + "AuditUserLinksRequest\0326.google.analytics" - + ".admin.v1alpha.AuditUserLinksResponse\"l\202" - + "\323\344\223\002f\",/v1alpha/{parent=accounts/*}/user" - + "Links:audit:\001*Z3\"./v1alpha/{parent=prope" - + "rties/*}/userLinks:audit:\001*\022\367\001\n\016CreateUs" - + "erLink\0225.google.analytics.admin.v1alpha." - + "CreateUserLinkRequest\032(.google.analytics" - + ".admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1alp" - + "ha/{parent=accounts/*}/userLinks:\tuser_l" - + "inkZ5\"(/v1alpha/{parent=properties/*}/us" - + "erLinks:\tuser_link\332A\020parent,user_link\022\213\002" - + "\n\024BatchCreateUserLinks\022;.google.analytic" - + "s.admin.v1alpha.BatchCreateUserLinksRequ" - + "est\032<.google.analytics.admin.v1alpha.Bat" - + "chCreateUserLinksResponse\"x\202\323\344\223\002r\"2/v1al" - + "pha/{parent=accounts/*}/userLinks:batchC" - + "reate:\001*Z9\"4/v1alpha/{parent=properties/" - + "*}/userLinks:batchCreate:\001*\022\204\002\n\016UpdateUs" - + "erLink\0225.google.analytics.admin.v1alpha." - + "UpdateUserLinkRequest\032(.google.analytics" - + ".admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1alp" - + "ha/{user_link.name=accounts/*/userLinks/" - + "*}:\tuser_linkZ?22/v1alpha/{user_link.nam" - + "e=properties/*/userLinks/*}:\tuser_link\332A" - + "\tuser_link\022\213\002\n\024BatchUpdateUserLinks\022;.go" - + "ogle.analytics.admin.v1alpha.BatchUpdate" - + "UserLinksRequest\032<.google.analytics.admi" - + "n.v1alpha.BatchUpdateUserLinksResponse\"x" - + "\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/use" - + "rLinks:batchUpdate:\001*Z9\"4/v1alpha/{paren" - + "t=properties/*}/userLinks:batchUpdate:\001*" - + "\022\302\001\n\016DeleteUserLink\0225.google.analytics.a" - + "dmin.v1alpha.DeleteUserLinkRequest\032\026.goo" - + "gle.protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{na" - + "me=accounts/*/userLinks/*}Z**(/v1alpha/{" - + "name=properties/*/userLinks/*}\332A\004name\022\345\001" - + "\n\024BatchDeleteUserLinks\022;.google.analytic" - + "s.admin.v1alpha.BatchDeleteUserLinksRequ" - + "est\032\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/v1" - + "alpha/{parent=accounts/*}/userLinks:batc" - + "hDelete:\001*Z9\"4/v1alpha/{parent=propertie" - + "s/*}/userLinks:batchDelete:\001*\022\331\001\n\022Create" - + "FirebaseLink\0229.google.analytics.admin.v1" - + "alpha.CreateFirebaseLinkRequest\032,.google" - + ".analytics.admin.v1alpha.FirebaseLink\"Z\202" - + "\323\344\223\002=\",/v1alpha/{parent=properties/*}/fi" - + "rebaseLinks:\rfirebase_link\332A\024parent,fire" - + "base_link\022\244\001\n\022DeleteFirebaseLink\0229.googl" - + "e.analytics.admin.v1alpha.DeleteFirebase" - + "LinkRequest\032\026.google.protobuf.Empty\";\202\323\344" - + "\223\002.*,/v1alpha/{name=properties/*/firebas" - + "eLinks/*}\332A\004name\022\307\001\n\021ListFirebaseLinks\0228" - + ".google.analytics.admin.v1alpha.ListFire" - + "baseLinksRequest\0329.google.analytics.admi" - + "n.v1alpha.ListFirebaseLinksResponse\"=\202\323\344" - + "\223\002.\022,/v1alpha/{parent=properties/*}/fire" - + "baseLinks\332A\006parent\022\303\001\n\020GetGlobalSiteTag\022" - + "7.google.analytics.admin.v1alpha.GetGlob" - + "alSiteTagRequest\032-.google.analytics.admi" - + "n.v1alpha.GlobalSiteTag\"G\202\323\344\223\002:\0228/v1alph" - + "a/{name=properties/*/dataStreams/*/globa" - + "lSiteTag}\332A\004name\022\341\001\n\023CreateGoogleAdsLink" - + "\022:.google.analytics.admin.v1alpha.Create" - + "GoogleAdsLinkRequest\032-.google.analytics." - + "admin.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1" - + "alpha/{parent=properties/*}/googleAdsLin" - + "ks:\017google_ads_link\332A\026parent,google_ads_" - + "link\022\366\001\n\023UpdateGoogleAdsLink\022:.google.an" - + "alytics.admin.v1alpha.UpdateGoogleAdsLin" - + "kRequest\032-.google.analytics.admin.v1alph" - + "a.GoogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{googl" - + "e_ads_link.name=properties/*/googleAdsLi" - + "nks/*}:\017google_ads_link\332A\033google_ads_lin" - + "k,update_mask\022\247\001\n\023DeleteGoogleAdsLink\022:." - + "google.analytics.admin.v1alpha.DeleteGoo" - + "gleAdsLinkRequest\032\026.google.protobuf.Empt" - + "y\"<\202\323\344\223\002/*-/v1alpha/{name=properties/*/g" - + "oogleAdsLinks/*}\332A\004name\022\313\001\n\022ListGoogleAd" - + "sLinks\0229.google.analytics.admin.v1alpha." - + "ListGoogleAdsLinksRequest\032:.google.analy" - + "tics.admin.v1alpha.ListGoogleAdsLinksRes" - + "ponse\">\202\323\344\223\002/\022-/v1alpha/{parent=properti" - + "es/*}/googleAdsLinks\332A\006parent\022\313\001\n\026GetDat" - + "aSharingSettings\022=.google.analytics.admi" - + "n.v1alpha.GetDataSharingSettingsRequest\032" - + "3.google.analytics.admin.v1alpha.DataSha" - + "ringSettings\"=\202\323\344\223\0020\022./v1alpha/{name=acc" - + "ounts/*/dataSharingSettings}\332A\004name\022\366\001\n\034" - + "GetMeasurementProtocolSecret\022C.google.an" - + "alytics.admin.v1alpha.GetMeasurementProt" - + "ocolSecretRequest\0329.google.analytics.adm" - + "in.v1alpha.MeasurementProtocolSecret\"V\202\323" - + "\344\223\002I\022G/v1alpha/{name=properties/*/dataSt" - + "reams/*/measurementProtocolSecrets/*}\332A\004" - + "name\022\211\002\n\036ListMeasurementProtocolSecrets\022" - + "E.google.analytics.admin.v1alpha.ListMea" - + "surementProtocolSecretsRequest\032F.google." - + "analytics.admin.v1alpha.ListMeasurementP" - + "rotocolSecretsResponse\"X\202\323\344\223\002I\022G/v1alpha" - + "/{parent=properties/*/dataStreams/*}/mea" - + "surementProtocolSecrets\332A\006parent\022\270\002\n\037Cre" - + "ateMeasurementProtocolSecret\022F.google.an" - + "alytics.admin.v1alpha.CreateMeasurementP" - + "rotocolSecretRequest\0329.google.analytics." - + "admin.v1alpha.MeasurementProtocolSecret\"" - + "\221\001\202\323\344\223\002f\"G/v1alpha/{parent=properties/*/" - + "dataStreams/*}/measurementProtocolSecret" - + "s:\033measurement_protocol_secret\332A\"parent," - + "measurement_protocol_secret\022\331\001\n\037DeleteMe" - + "asurementProtocolSecret\022F.google.analyti" - + "cs.admin.v1alpha.DeleteMeasurementProtoc" - + "olSecretRequest\032\026.google.protobuf.Empty\"" - + "V\202\323\344\223\002I*G/v1alpha/{name=properties/*/dat" - + "aStreams/*/measurementProtocolSecrets/*}" - + "\332A\004name\022\332\002\n\037UpdateMeasurementProtocolSec" - + "ret\022F.google.analytics.admin.v1alpha.Upd" - + "ateMeasurementProtocolSecretRequest\0329.go" - + "ogle.analytics.admin.v1alpha.Measurement" - + "ProtocolSecret\"\263\001\202\323\344\223\002\202\0012c/v1alpha/{meas" - + "urement_protocol_secret.name=properties/" + + "A\002\"\241\001\n\027CreateDataStreamRequest\022@\n\006parent" + + "\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin.googleapi" + + "s.com/DataStream\022D\n\013data_stream\030\002 \001(\0132*." + + "google.analytics.admin.v1alpha.DataStrea" + + "mB\003\340A\002\"Y\n\027DeleteDataStreamRequest\022>\n\004nam" + + "e\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin.googleap" + + "is.com/DataStream\"\220\001\n\027UpdateDataStreamRe" + + "quest\022?\n\013data_stream\030\001 \001(\0132*.google.anal" + + "ytics.admin.v1alpha.DataStream\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\"\201\001\n\026ListDataStreamsRequest\022@\n\006paren" + + "t\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin.googleap" + + "is.com/DataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"t\n\027ListDataStreamsRespo" + + "nse\022@\n\014data_streams\030\001 \003(\0132*.google.analy" + + "tics.admin.v1alpha.DataStream\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"V\n\024GetDataStreamRequest\022>" + + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin.goo" + + "gleapis.com/DataStream\"R\n\022GetAudienceReq" + + "uest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadm" + + "in.googleapis.com/Audience\"}\n\024ListAudien" + + "cesRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&anal" + + "yticsadmin.googleapis.com/Audience\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\025Lis" + + "tAudiencesResponse\022;\n\taudiences\030\001 \003(\0132(." + + "google.analytics.admin.v1alpha.Audience\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\230\001\n\025CreateAudie" + + "nceRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&anal" + + "yticsadmin.googleapis.com/Audience\022?\n\010au" + + "dience\030\002 \001(\0132(.google.analytics.admin.v1" + + "alpha.AudienceB\003\340A\002\"\216\001\n\025UpdateAudienceRe" + + "quest\022?\n\010audience\030\001 \001(\0132(.google.analyti" + + "cs.admin.v1alpha.AudienceB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\"V\n\026ArchiveAudienceRequest\022<\n\004name\030\001" + + " \001(\tB.\340A\002\372A(\022&analyticsadmin.googleapis." + + "com/Audience\"h\n\035GetAttributionSettingsRe" + + "quest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsad" + + "min.googleapis.com/AttributionSettings\"\260" + + "\001\n UpdateAttributionSettingsRequest\022V\n\024a" + + "ttribution_settings\030\001 \001(\01323.google.analy" + + "tics.admin.v1alpha.AttributionSettingsB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"\\\n\027GetAccessBindingReq" + + "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadm", + "in.googleapis.com/AccessBinding\"\250\001\n\035Batc" + + "hGetAccessBindingsRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com" + + "/AccessBinding\022B\n\005names\030\002 \003(\tB3\340A\002\372A-\n+a" + + "nalyticsadmin.googleapis.com/AccessBindi" + + "ng\"h\n\036BatchGetAccessBindingsResponse\022F\n\017" + + "access_bindings\030\001 \003(\0132-.google.analytics" + + ".admin.v1alpha.AccessBinding\"\207\001\n\031ListAcc" + + "essBindingsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372" + + "A-\022+analyticsadmin.googleapis.com/Access" + + "Binding\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"}\n\032ListAccessBindingsResponse\022F\n\017" + + "access_bindings\030\001 \003(\0132-.google.analytics" + + ".admin.v1alpha.AccessBinding\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\255\001\n\032CreateAccessBindingReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsa" + + "dmin.googleapis.com/AccessBinding\022J\n\016acc" + + "ess_binding\030\002 \001(\0132-.google.analytics.adm" + + "in.v1alpha.AccessBindingB\003\340A\002\"\272\001\n BatchC" + + "reateAccessBindingsRequest\022C\n\006parent\030\001 \001" + + "(\tB3\340A\002\372A-\022+analyticsadmin.googleapis.co" + + "m/AccessBinding\022Q\n\010requests\030\003 \003(\0132:.goog" + + "le.analytics.admin.v1alpha.CreateAccessB" + + "indingRequestB\003\340A\002\"k\n!BatchCreateAccessB" + + "indingsResponse\022F\n\017access_bindings\030\001 \003(\013" + + "2-.google.analytics.admin.v1alpha.Access" + + "Binding\"h\n\032UpdateAccessBindingRequest\022J\n" + + "\016access_binding\030\001 \001(\0132-.google.analytics" + + ".admin.v1alpha.AccessBindingB\003\340A\002\"\272\001\n Ba" + + "tchUpdateAccessBindingsRequest\022C\n\006parent" + + "\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapi" + + "s.com/AccessBinding\022Q\n\010requests\030\002 \003(\0132:." + + "google.analytics.admin.v1alpha.UpdateAcc" + + "essBindingRequestB\003\340A\002\"k\n!BatchUpdateAcc" + + "essBindingsResponse\022F\n\017access_bindings\030\001" + + " \003(\0132-.google.analytics.admin.v1alpha.Ac" + + "cessBinding\"_\n\032DeleteAccessBindingReques" + + "t\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin." + + "googleapis.com/AccessBinding\"\272\001\n BatchDe" + + "leteAccessBindingsRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com" + + "/AccessBinding\022Q\n\010requests\030\002 \003(\0132:.googl" + + "e.analytics.admin.v1alpha.DeleteAccessBi" + + "ndingRequestB\003\340A\002\"\266\001\n\034CreateExpandedData" + + "SetRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-anal" + + "yticsadmin.googleapis.com/ExpandedDataSe" + + "t\022O\n\021expanded_data_set\030\002 \001(\0132/.google.an" + + "alytics.admin.v1alpha.ExpandedDataSetB\003\340" + + "A\002\"\245\001\n\034UpdateExpandedDataSetRequest\022O\n\021e" + + "xpanded_data_set\030\001 \001(\0132/.google.analytic" + + "s.admin.v1alpha.ExpandedDataSetB\003\340A\002\0224\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\"c\n\034DeleteExpandedDataSetReque" + + "st\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin" + + ".googleapis.com/ExpandedDataSet\"`\n\031GetEx" + + "pandedDataSetRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372" + + "A/\n-analyticsadmin.googleapis.com/Expand" + + "edDataSet\"\213\001\n\033ListExpandedDataSetsReques" + + "t\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmi" + + "n.googleapis.com/ExpandedDataSet\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034List" + + "ExpandedDataSetsResponse\022K\n\022expanded_dat" + + "a_sets\030\001 \003(\0132/.google.analytics.admin.v1" + + "alpha.ExpandedDataSet\022\027\n\017next_page_token" + + "\030\002 \001(\t\"S\n)SetAutomatedGa4ConfigurationOp" + + "tOutRequest\022\025\n\010property\030\001 \001(\tB\003\340A\002\022\017\n\007op" + + "t_out\030\002 \001(\010\",\n*SetAutomatedGa4Configurat" + + "ionOptOutResponse\"D\n+FetchAutomatedGa4Co" + + "nfigurationOptOutRequest\022\025\n\010property\030\001 \001" + + "(\tB\003\340A\002\"?\n,FetchAutomatedGa4Configuratio" + + "nOptOutResponse\022\017\n\007opt_out\030\001 \001(\010\"Z\n\026GetB" + + "igQueryLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A," + + "\n*analyticsadmin.googleapis.com/BigQuery" + + "Link\"\205\001\n\030ListBigQueryLinksRequest\022B\n\006par" + + "ent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.google" + + "apis.com/BigQueryLink\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListBigQueryLink" + + "sResponse\022D\n\016bigquery_links\030\001 \003(\0132,.goog" + + "le.analytics.admin.v1alpha.BigQueryLink\022" + + "\027\n\017next_page_token\030\002 \001(\t2\260\270\001\n\025AnalyticsA" + + "dminService\022\223\001\n\nGetAccount\0221.google.anal" + + "ytics.admin.v1alpha.GetAccountRequest\032\'." + + "google.analytics.admin.v1alpha.Account\")" + + "\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*}\332A\004nam" + + "e\022\224\001\n\014ListAccounts\0223.google.analytics.ad" + + "min.v1alpha.ListAccountsRequest\0324.google" + + ".analytics.admin.v1alpha.ListAccountsRes" + + "ponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDel" + + "eteAccount\0224.google.analytics.admin.v1al" + + "pha.DeleteAccountRequest\032\026.google.protob" + + "uf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=account" + + "s/*}\332A\004name\022\271\001\n\rUpdateAccount\0224.google.a" + + "nalytics.admin.v1alpha.UpdateAccountRequ" + + "est\032\'.google.analytics.admin.v1alpha.Acc" + + "ount\"I\202\323\344\223\002-2\"/v1alpha/{account.name=acc" + + "ounts/*}:\007account\332A\023account,update_mask\022" + + "\314\001\n\026ProvisionAccountTicket\022=.google.anal" + + "ytics.admin.v1alpha.ProvisionAccountTick" + + "etRequest\032>.google.analytics.admin.v1alp" + + "ha.ProvisionAccountTicketResponse\"3\202\323\344\223\002" + + "-\"(/v1alpha/accounts:provisionAccountTic" + + "ket:\001*\022\264\001\n\024ListAccountSummaries\022;.google" + + ".analytics.admin.v1alpha.ListAccountSumm" + + "ariesRequest\032<.google.analytics.admin.v1" + + "alpha.ListAccountSummariesResponse\"!\202\323\344\223" + + "\002\033\022\031/v1alpha/accountSummaries\022\230\001\n\013GetPro" + + "perty\0222.google.analytics.admin.v1alpha.G" + + "etPropertyRequest\032(.google.analytics.adm" + + "in.v1alpha.Property\"+\202\323\344\223\002\036\022\034/v1alpha/{n" + + "ame=properties/*}\332A\004name\022\234\001\n\016ListPropert" + + "ies\0225.google.analytics.admin.v1alpha.Lis" + + "tPropertiesRequest\0326.google.analytics.ad" + + "min.v1alpha.ListPropertiesResponse\"\033\202\323\344\223" + + "\002\025\022\023/v1alpha/properties\022\243\001\n\016CreateProper" + + "ty\0225.google.analytics.admin.v1alpha.Crea" + + "tePropertyRequest\032(.google.analytics.adm" + + "in.v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1alpha/pr" + + "operties:\010property\332A\010property\022\236\001\n\016Delete" + + "Property\0225.google.analytics.admin.v1alph" + + "a.DeletePropertyRequest\032(.google.analyti" + + "cs.admin.v1alpha.Property\"+\202\323\344\223\002\036*\034/v1al" + + "pha/{name=properties/*}\332A\004name\022\301\001\n\016Updat" + + "eProperty\0225.google.analytics.admin.v1alp" + + "ha.UpdatePropertyRequest\032(.google.analyt" + + "ics.admin.v1alpha.Property\"N\202\323\344\223\00212%/v1a" + + "lpha/{property.name=properties/*}:\010prope" + + "rty\332A\024property,update_mask\022\316\001\n\013GetUserLi" + + "nk\0222.google.analytics.admin.v1alpha.GetU" + + "serLinkRequest\032(.google.analytics.admin." + + "v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{name" + + "=accounts/*/userLinks/*}Z*\022(/v1alpha/{na" + + "me=properties/*/userLinks/*}\332A\004name\022\366\001\n\021" + + "BatchGetUserLinks\0228.google.analytics.adm" + + "in.v1alpha.BatchGetUserLinksRequest\0329.go" + + "ogle.analytics.admin.v1alpha.BatchGetUse" + + "rLinksResponse\"l\202\323\344\223\002f\022//v1alpha/{parent" + + "=accounts/*}/userLinks:batchGetZ3\0221/v1al" + + "pha/{parent=properties/*}/userLinks:batc" + + "hGet\022\341\001\n\rListUserLinks\0224.google.analytic" + + "s.admin.v1alpha.ListUserLinksRequest\0325.g" + + "oogle.analytics.admin.v1alpha.ListUserLi" + + "nksResponse\"c\202\323\344\223\002T\022&/v1alpha/{parent=ac" + + "counts/*}/userLinksZ*\022(/v1alpha/{parent=" + + "properties/*}/userLinks\332A\006parent\022\355\001\n\016Aud" + + "itUserLinks\0225.google.analytics.admin.v1a" + + "lpha.AuditUserLinksRequest\0326.google.anal" + + "ytics.admin.v1alpha.AuditUserLinksRespon" + + "se\"l\202\323\344\223\002f\",/v1alpha/{parent=accounts/*}" + + "/userLinks:audit:\001*Z3\"./v1alpha/{parent=" + + "properties/*}/userLinks:audit:\001*\022\367\001\n\016Cre" + + "ateUserLink\0225.google.analytics.admin.v1a" + + "lpha.CreateUserLinkRequest\032(.google.anal" + + "ytics.admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/" + + "v1alpha/{parent=accounts/*}/userLinks:\tu" + + "ser_linkZ5\"(/v1alpha/{parent=properties/" + + "*}/userLinks:\tuser_link\332A\020parent,user_li" + + "nk\022\213\002\n\024BatchCreateUserLinks\022;.google.ana" + + "lytics.admin.v1alpha.BatchCreateUserLink" + + "sRequest\032<.google.analytics.admin.v1alph" + + "a.BatchCreateUserLinksResponse\"x\202\323\344\223\002r\"2" + + "/v1alpha/{parent=accounts/*}/userLinks:b" + + "atchCreate:\001*Z9\"4/v1alpha/{parent=proper" + + "ties/*}/userLinks:batchCreate:\001*\022\204\002\n\016Upd" + + "ateUserLink\0225.google.analytics.admin.v1a" + + "lpha.UpdateUserLinkRequest\032(.google.anal" + + "ytics.admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/" + + "v1alpha/{user_link.name=accounts/*/userL" + + "inks/*}:\tuser_linkZ?22/v1alpha/{user_lin" + + "k.name=properties/*/userLinks/*}:\tuser_l" + + "ink\332A\tuser_link\022\213\002\n\024BatchUpdateUserLinks" + + "\022;.google.analytics.admin.v1alpha.BatchU" + + "pdateUserLinksRequest\032<.google.analytics" + + ".admin.v1alpha.BatchUpdateUserLinksRespo" + + "nse\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*" + + "}/userLinks:batchUpdate:\001*Z9\"4/v1alpha/{" + + "parent=properties/*}/userLinks:batchUpda" + + "te:\001*\022\302\001\n\016DeleteUserLink\0225.google.analyt" + + "ics.admin.v1alpha.DeleteUserLinkRequest\032" + + "\026.google.protobuf.Empty\"a\202\323\344\223\002T*&/v1alph" + + "a/{name=accounts/*/userLinks/*}Z**(/v1al" + + "pha/{name=properties/*/userLinks/*}\332A\004na" + + "me\022\345\001\n\024BatchDeleteUserLinks\022;.google.ana" + + "lytics.admin.v1alpha.BatchDeleteUserLink" + + "sRequest\032\026.google.protobuf.Empty\"x\202\323\344\223\002r" + + "\"2/v1alpha/{parent=accounts/*}/userLinks" + + ":batchDelete:\001*Z9\"4/v1alpha/{parent=prop" + + "erties/*}/userLinks:batchDelete:\001*\022\331\001\n\022C" + + "reateFirebaseLink\0229.google.analytics.adm" + + "in.v1alpha.CreateFirebaseLinkRequest\032,.g" + + "oogle.analytics.admin.v1alpha.FirebaseLi" + + "nk\"Z\202\323\344\223\002=\",/v1alpha/{parent=properties/" + + "*}/firebaseLinks:\rfirebase_link\332A\024parent" + + ",firebase_link\022\244\001\n\022DeleteFirebaseLink\0229." + + "google.analytics.admin.v1alpha.DeleteFir" + + "ebaseLinkRequest\032\026.google.protobuf.Empty" + + "\";\202\323\344\223\002.*,/v1alpha/{name=properties/*/fi" + + "rebaseLinks/*}\332A\004name\022\307\001\n\021ListFirebaseLi" + + "nks\0228.google.analytics.admin.v1alpha.Lis" + + "tFirebaseLinksRequest\0329.google.analytics" + + ".admin.v1alpha.ListFirebaseLinksResponse" + + "\"=\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}" + + "/firebaseLinks\332A\006parent\022\303\001\n\020GetGlobalSit" + + "eTag\0227.google.analytics.admin.v1alpha.Ge" + + "tGlobalSiteTagRequest\032-.google.analytics" + + ".admin.v1alpha.GlobalSiteTag\"G\202\323\344\223\002:\0228/v" + + "1alpha/{name=properties/*/dataStreams/*/" + + "globalSiteTag}\332A\004name\022\341\001\n\023CreateGoogleAd" + + "sLink\022:.google.analytics.admin.v1alpha.C" + + "reateGoogleAdsLinkRequest\032-.google.analy" + + "tics.admin.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@" + + "\"-/v1alpha/{parent=properties/*}/googleA" + + "dsLinks:\017google_ads_link\332A\026parent,google" + + "_ads_link\022\366\001\n\023UpdateGoogleAdsLink\022:.goog" + + "le.analytics.admin.v1alpha.UpdateGoogleA" + + "dsLinkRequest\032-.google.analytics.admin.v" + + "1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{" + + "google_ads_link.name=properties/*/google" + + "AdsLinks/*}:\017google_ads_link\332A\033google_ad" + + "s_link,update_mask\022\247\001\n\023DeleteGoogleAdsLi" + + "nk\022:.google.analytics.admin.v1alpha.Dele" + + "teGoogleAdsLinkRequest\032\026.google.protobuf" + + ".Empty\"<\202\323\344\223\002/*-/v1alpha/{name=propertie" + + "s/*/googleAdsLinks/*}\332A\004name\022\313\001\n\022ListGoo" + + "gleAdsLinks\0229.google.analytics.admin.v1a" + + "lpha.ListGoogleAdsLinksRequest\032:.google." + + "analytics.admin.v1alpha.ListGoogleAdsLin" + + "ksResponse\">\202\323\344\223\002/\022-/v1alpha/{parent=pro" + + "perties/*}/googleAdsLinks\332A\006parent\022\313\001\n\026G" + + "etDataSharingSettings\022=.google.analytics" + + ".admin.v1alpha.GetDataSharingSettingsReq" + + "uest\0323.google.analytics.admin.v1alpha.Da" + + "taSharingSettings\"=\202\323\344\223\0020\022./v1alpha/{nam" + + "e=accounts/*/dataSharingSettings}\332A\004name" + + "\022\366\001\n\034GetMeasurementProtocolSecret\022C.goog" + + "le.analytics.admin.v1alpha.GetMeasuremen" + + "tProtocolSecretRequest\0329.google.analytic" + + "s.admin.v1alpha.MeasurementProtocolSecre" + + "t\"V\202\323\344\223\002I\022G/v1alpha/{name=properties/*/d" + + "ataStreams/*/measurementProtocolSecrets/" + + "*}\332A\004name\022\211\002\n\036ListMeasurementProtocolSec" + + "rets\022E.google.analytics.admin.v1alpha.Li" + + "stMeasurementProtocolSecretsRequest\032F.go" + + "ogle.analytics.admin.v1alpha.ListMeasure" + + "mentProtocolSecretsResponse\"X\202\323\344\223\002I\022G/v1" + + "alpha/{parent=properties/*/dataStreams/*" + + "}/measurementProtocolSecrets\332A\006parent\022\270\002" + + "\n\037CreateMeasurementProtocolSecret\022F.goog" + + "le.analytics.admin.v1alpha.CreateMeasure" + + "mentProtocolSecretRequest\0329.google.analy" + + "tics.admin.v1alpha.MeasurementProtocolSe" + + "cret\"\221\001\202\323\344\223\002f\"G/v1alpha/{parent=properti" + + "es/*/dataStreams/*}/measurementProtocolS" + + "ecrets:\033measurement_protocol_secret\332A\"pa" + + "rent,measurement_protocol_secret\022\331\001\n\037Del" + + "eteMeasurementProtocolSecret\022F.google.an" + + "alytics.admin.v1alpha.DeleteMeasurementP" + + "rotocolSecretRequest\032\026.google.protobuf.E" + + "mpty\"V\202\323\344\223\002I*G/v1alpha/{name=properties/" + "*/dataStreams/*/measurementProtocolSecre" - + "ts/*}:\033measurement_protocol_secret\332A\'mea" - + "surement_protocol_secret,update_mask\022\367\001\n" - + "\035AcknowledgeUserDataCollection\022D.google." - + "analytics.admin.v1alpha.AcknowledgeUserD" - + "ataCollectionRequest\032E.google.analytics." - + "admin.v1alpha.AcknowledgeUserDataCollect" - + "ionResponse\"I\202\323\344\223\002C\">/v1alpha/{property=" - + "properties/*}:acknowledgeUserDataCollect" - + "ion:\001*\022\344\001\n\031SearchChangeHistoryEvents\022@.g" - + "oogle.analytics.admin.v1alpha.SearchChan" - + "geHistoryEventsRequest\032A.google.analytic" - + "s.admin.v1alpha.SearchChangeHistoryEvent" - + "sResponse\"B\202\323\344\223\002<\"7/v1alpha/{account=acc" - + "ounts/*}:searchChangeHistoryEvents:\001*\022\325\001" - + "\n\030GetGoogleSignalsSettings\022?.google.anal" - + "ytics.admin.v1alpha.GetGoogleSignalsSett" - + "ingsRequest\0325.google.analytics.admin.v1a" - + "lpha.GoogleSignalsSettings\"A\202\323\344\223\0024\0222/v1a" - + "lpha/{name=properties/*/googleSignalsSet" - + "tings}\332A\004name\022\254\002\n\033UpdateGoogleSignalsSet" - + "tings\022B.google.analytics.admin.v1alpha.U" - + "pdateGoogleSignalsSettingsRequest\0325.goog" - + "le.analytics.admin.v1alpha.GoogleSignals" - + "Settings\"\221\001\202\323\344\223\002e2J/v1alpha/{google_sign" - + "als_settings.name=properties/*/googleSig" - + "nalsSettings}:\027google_signals_settings\332A" - + "#google_signals_settings,update_mask\022\353\001\n" - + "\025CreateConversionEvent\022<.google.analytic" - + "s.admin.v1alpha.CreateConversionEventReq" - + "uest\032/.google.analytics.admin.v1alpha.Co" - + "nversionEvent\"c\202\323\344\223\002C\"//v1alpha/{parent=" - + "properties/*}/conversionEvents:\020conversi" - + "on_event\332A\027parent,conversion_event\022\300\001\n\022G" - + "etConversionEvent\0229.google.analytics.adm" - + "in.v1alpha.GetConversionEventRequest\032/.g" - + "oogle.analytics.admin.v1alpha.Conversion" - + "Event\">\202\323\344\223\0021\022//v1alpha/{name=properties" - + "/*/conversionEvents/*}\332A\004name\022\255\001\n\025Delete" - + "ConversionEvent\022<.google.analytics.admin" - + ".v1alpha.DeleteConversionEventRequest\032\026." - + "google.protobuf.Empty\">\202\323\344\223\0021*//v1alpha/" - + "{name=properties/*/conversionEvents/*}\332A" - + "\004name\022\323\001\n\024ListConversionEvents\022;.google." - + "analytics.admin.v1alpha.ListConversionEv" - + "entsRequest\032<.google.analytics.admin.v1a" - + "lpha.ListConversionEventsResponse\"@\202\323\344\223\002" - + "1\022//v1alpha/{parent=properties/*}/conver" - + "sionEvents\332A\006parent\022\370\001\n GetDisplayVideo3" - + "60AdvertiserLink\022G.google.analytics.admi" - + "n.v1alpha.GetDisplayVideo360AdvertiserLi" - + "nkRequest\032=.google.analytics.admin.v1alp" - + "ha.DisplayVideo360AdvertiserLink\"L\202\323\344\223\002?" - + "\022=/v1alpha/{name=properties/*/displayVid" - + "eo360AdvertiserLinks/*}\332A\004name\022\213\002\n\"ListD" - + "isplayVideo360AdvertiserLinks\022I.google.a" - + "nalytics.admin.v1alpha.ListDisplayVideo3" - + "60AdvertiserLinksRequest\032J.google.analyt" - + "ics.admin.v1alpha.ListDisplayVideo360Adv" - + "ertiserLinksResponse\"N\202\323\344\223\002?\022=/v1alpha/{" - + "parent=properties/*}/displayVideo360Adve" - + "rtiserLinks\332A\006parent\022\306\002\n#CreateDisplayVi" - + "deo360AdvertiserLink\022J.google.analytics." - + "admin.v1alpha.CreateDisplayVideo360Adver" - + "tiserLinkRequest\032=.google.analytics.admi" - + "n.v1alpha.DisplayVideo360AdvertiserLink\"" - + "\223\001\202\323\344\223\002b\"=/v1alpha/{parent=properties/*}" - + "/displayVideo360AdvertiserLinks:!display" - + "_video_360_advertiser_link\332A(parent,disp" - + "lay_video_360_advertiser_link\022\327\001\n#Delete" - + "DisplayVideo360AdvertiserLink\022J.google.a" - + "nalytics.admin.v1alpha.DeleteDisplayVide" - + "o360AdvertiserLinkRequest\032\026.google.proto" - + "buf.Empty\"L\202\323\344\223\002?*=/v1alpha/{name=proper" - + "ties/*/displayVideo360AdvertiserLinks/*}" - + "\332A\004name\022\356\002\n#UpdateDisplayVideo360Adverti" - + "serLink\022J.google.analytics.admin.v1alpha" - + ".UpdateDisplayVideo360AdvertiserLinkRequ" - + "est\032=.google.analytics.admin.v1alpha.Dis" - + "playVideo360AdvertiserLink\"\273\001\202\323\344\223\002\204\0012_/v" - + "1alpha/{display_video_360_advertiser_lin" - + "k.name=properties/*/displayVideo360Adver" - + "tiserLinks/*}:!display_video_360_adverti" - + "ser_link\332A-display_video_360_advertiser_" - + "link,update_mask\022\230\002\n(GetDisplayVideo360A" - + "dvertiserLinkProposal\022O.google.analytics" + + "ts/*}\332A\004name\022\332\002\n\037UpdateMeasurementProtoc" + + "olSecret\022F.google.analytics.admin.v1alph" + + "a.UpdateMeasurementProtocolSecretRequest" + + "\0329.google.analytics.admin.v1alpha.Measur" + + "ementProtocolSecret\"\263\001\202\323\344\223\002\202\0012c/v1alpha/" + + "{measurement_protocol_secret.name=proper" + + "ties/*/dataStreams/*/measurementProtocol" + + "Secrets/*}:\033measurement_protocol_secret\332" + + "A\'measurement_protocol_secret,update_mas" + + "k\022\367\001\n\035AcknowledgeUserDataCollection\022D.go" + + "ogle.analytics.admin.v1alpha.Acknowledge" + + "UserDataCollectionRequest\032E.google.analy" + + "tics.admin.v1alpha.AcknowledgeUserDataCo" + + "llectionResponse\"I\202\323\344\223\002C\">/v1alpha/{prop" + + "erty=properties/*}:acknowledgeUserDataCo" + + "llection:\001*\022\344\001\n\031SearchChangeHistoryEvent" + + "s\022@.google.analytics.admin.v1alpha.Searc" + + "hChangeHistoryEventsRequest\032A.google.ana" + + "lytics.admin.v1alpha.SearchChangeHistory" + + "EventsResponse\"B\202\323\344\223\002<\"7/v1alpha/{accoun" + + "t=accounts/*}:searchChangeHistoryEvents:" + + "\001*\022\325\001\n\030GetGoogleSignalsSettings\022?.google" + + ".analytics.admin.v1alpha.GetGoogleSignal" + + "sSettingsRequest\0325.google.analytics.admi" + + "n.v1alpha.GoogleSignalsSettings\"A\202\323\344\223\0024\022" + + "2/v1alpha/{name=properties/*/googleSigna" + + "lsSettings}\332A\004name\022\254\002\n\033UpdateGoogleSigna" + + "lsSettings\022B.google.analytics.admin.v1al" + + "pha.UpdateGoogleSignalsSettingsRequest\0325" + + ".google.analytics.admin.v1alpha.GoogleSi" + + "gnalsSettings\"\221\001\202\323\344\223\002e2J/v1alpha/{google" + + "_signals_settings.name=properties/*/goog" + + "leSignalsSettings}:\027google_signals_setti" + + "ngs\332A#google_signals_settings,update_mas" + + "k\022\353\001\n\025CreateConversionEvent\022<.google.ana" + + "lytics.admin.v1alpha.CreateConversionEve" + + "ntRequest\032/.google.analytics.admin.v1alp" + + "ha.ConversionEvent\"c\202\323\344\223\002C\"//v1alpha/{pa" + + "rent=properties/*}/conversionEvents:\020con" + + "version_event\332A\027parent,conversion_event\022" + + "\300\001\n\022GetConversionEvent\0229.google.analytic" + + "s.admin.v1alpha.GetConversionEventReques" + + "t\032/.google.analytics.admin.v1alpha.Conve" + + "rsionEvent\">\202\323\344\223\0021\022//v1alpha/{name=prope" + + "rties/*/conversionEvents/*}\332A\004name\022\255\001\n\025D" + + "eleteConversionEvent\022<.google.analytics." + + "admin.v1alpha.DeleteConversionEventReque" + + "st\032\026.google.protobuf.Empty\">\202\323\344\223\0021*//v1a" + + "lpha/{name=properties/*/conversionEvents" + + "/*}\332A\004name\022\323\001\n\024ListConversionEvents\022;.go" + + "ogle.analytics.admin.v1alpha.ListConvers" + + "ionEventsRequest\032<.google.analytics.admi" + + "n.v1alpha.ListConversionEventsResponse\"@" + + "\202\323\344\223\0021\022//v1alpha/{parent=properties/*}/c" + + "onversionEvents\332A\006parent\022\370\001\n GetDisplayV" + + "ideo360AdvertiserLink\022G.google.analytics" + ".admin.v1alpha.GetDisplayVideo360Adverti" - + "serLinkProposalRequest\032E.google.analytic" - + "s.admin.v1alpha.DisplayVideo360Advertise" - + "rLinkProposal\"T\202\323\344\223\002G\022E/v1alpha/{name=pr" - + "operties/*/displayVideo360AdvertiserLink" - + "Proposals/*}\332A\004name\022\253\002\n*ListDisplayVideo" - + "360AdvertiserLinkProposals\022Q.google.anal" - + "ytics.admin.v1alpha.ListDisplayVideo360A" - + "dvertiserLinkProposalsRequest\032R.google.a" + + "serLinkRequest\032=.google.analytics.admin." + + "v1alpha.DisplayVideo360AdvertiserLink\"L\202" + + "\323\344\223\002?\022=/v1alpha/{name=properties/*/displ" + + "ayVideo360AdvertiserLinks/*}\332A\004name\022\213\002\n\"" + + "ListDisplayVideo360AdvertiserLinks\022I.goo" + + "gle.analytics.admin.v1alpha.ListDisplayV" + + "ideo360AdvertiserLinksRequest\032J.google.a" + "nalytics.admin.v1alpha.ListDisplayVideo3" - + "60AdvertiserLinkProposalsResponse\"V\202\323\344\223\002" - + "G\022E/v1alpha/{parent=properties/*}/displa" - + "yVideo360AdvertiserLinkProposals\332A\006paren" - + "t\022\370\002\n+CreateDisplayVideo360AdvertiserLin" - + "kProposal\022R.google.analytics.admin.v1alp" - + "ha.CreateDisplayVideo360AdvertiserLinkPr" - + "oposalRequest\032E.google.analytics.admin.v" - + "1alpha.DisplayVideo360AdvertiserLinkProp" - + "osal\"\255\001\202\323\344\223\002s\"E/v1alpha/{parent=properti" - + "es/*}/displayVideo360AdvertiserLinkPropo" - + "sals:*display_video_360_advertiser_link_" - + "proposal\332A1parent,display_video_360_adve" - + "rtiser_link_proposal\022\357\001\n+DeleteDisplayVi" - + "deo360AdvertiserLinkProposal\022R.google.an" - + "alytics.admin.v1alpha.DeleteDisplayVideo" - + "360AdvertiserLinkProposalRequest\032\026.googl" - + "e.protobuf.Empty\"T\202\323\344\223\002G*E/v1alpha/{name" - + "=properties/*/displayVideo360AdvertiserL" - + "inkProposals/*}\332A\004name\022\263\002\n,ApproveDispla" - + "yVideo360AdvertiserLinkProposal\022S.google" - + ".analytics.admin.v1alpha.ApproveDisplayV" - + "ideo360AdvertiserLinkProposalRequest\032T.g" + + "60AdvertiserLinksResponse\"N\202\323\344\223\002?\022=/v1al" + + "pha/{parent=properties/*}/displayVideo36" + + "0AdvertiserLinks\332A\006parent\022\306\002\n#CreateDisp" + + "layVideo360AdvertiserLink\022J.google.analy" + + "tics.admin.v1alpha.CreateDisplayVideo360" + + "AdvertiserLinkRequest\032=.google.analytics" + + ".admin.v1alpha.DisplayVideo360Advertiser" + + "Link\"\223\001\202\323\344\223\002b\"=/v1alpha/{parent=properti" + + "es/*}/displayVideo360AdvertiserLinks:!di" + + "splay_video_360_advertiser_link\332A(parent" + + ",display_video_360_advertiser_link\022\327\001\n#D" + + "eleteDisplayVideo360AdvertiserLink\022J.goo" + + "gle.analytics.admin.v1alpha.DeleteDispla" + + "yVideo360AdvertiserLinkRequest\032\026.google." + + "protobuf.Empty\"L\202\323\344\223\002?*=/v1alpha/{name=p" + + "roperties/*/displayVideo360AdvertiserLin" + + "ks/*}\332A\004name\022\356\002\n#UpdateDisplayVideo360Ad" + + "vertiserLink\022J.google.analytics.admin.v1" + + "alpha.UpdateDisplayVideo360AdvertiserLin" + + "kRequest\032=.google.analytics.admin.v1alph" + + "a.DisplayVideo360AdvertiserLink\"\273\001\202\323\344\223\002\204" + + "\0012_/v1alpha/{display_video_360_advertise" + + "r_link.name=properties/*/displayVideo360" + + "AdvertiserLinks/*}:!display_video_360_ad" + + "vertiser_link\332A-display_video_360_advert" + + "iser_link,update_mask\022\230\002\n(GetDisplayVide" + + "o360AdvertiserLinkProposal\022O.google.anal" + + "ytics.admin.v1alpha.GetDisplayVideo360Ad" + + "vertiserLinkProposalRequest\032E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposal\"T\202\323\344\223\002G\022E/v1alpha/{na" + + "me=properties/*/displayVideo360Advertise" + + "rLinkProposals/*}\332A\004name\022\253\002\n*ListDisplay" + + "Video360AdvertiserLinkProposals\022Q.google" + + ".analytics.admin.v1alpha.ListDisplayVide" + + "o360AdvertiserLinkProposalsRequest\032R.goo" + + "gle.analytics.admin.v1alpha.ListDisplayV" + + "ideo360AdvertiserLinkProposalsResponse\"V" + + "\202\323\344\223\002G\022E/v1alpha/{parent=properties/*}/d" + + "isplayVideo360AdvertiserLinkProposals\332A\006" + + "parent\022\370\002\n+CreateDisplayVideo360Advertis" + + "erLinkProposal\022R.google.analytics.admin." + + "v1alpha.CreateDisplayVideo360AdvertiserL" + + "inkProposalRequest\032E.google.analytics.ad" + + "min.v1alpha.DisplayVideo360AdvertiserLin" + + "kProposal\"\255\001\202\323\344\223\002s\"E/v1alpha/{parent=pro" + + "perties/*}/displayVideo360AdvertiserLink" + + "Proposals:*display_video_360_advertiser_" + + "link_proposal\332A1parent,display_video_360" + + "_advertiser_link_proposal\022\357\001\n+DeleteDisp" + + "layVideo360AdvertiserLinkProposal\022R.goog" + + "le.analytics.admin.v1alpha.DeleteDisplay" + + "Video360AdvertiserLinkProposalRequest\032\026." + + "google.protobuf.Empty\"T\202\323\344\223\002G*E/v1alpha/" + + "{name=properties/*/displayVideo360Advert" + + "iserLinkProposals/*}\332A\004name\022\263\002\n,ApproveD" + + "isplayVideo360AdvertiserLinkProposal\022S.g" + "oogle.analytics.admin.v1alpha.ApproveDis" - + "playVideo360AdvertiserLinkProposalRespon" - + "se\"X\202\323\344\223\002R\"M/v1alpha/{name=properties/*/" - + "displayVideo360AdvertiserLinkProposals/*" - + "}:approve:\001*\022\241\002\n+CancelDisplayVideo360Ad" - + "vertiserLinkProposal\022R.google.analytics." - + "admin.v1alpha.CancelDisplayVideo360Adver" - + "tiserLinkProposalRequest\032E.google.analyt" - + "ics.admin.v1alpha.DisplayVideo360Adverti" - + "serLinkProposal\"W\202\323\344\223\002Q\"L/v1alpha/{name=" - + "properties/*/displayVideo360AdvertiserLi" - + "nkProposals/*}:cancel:\001*\022\353\001\n\025CreateCusto" - + "mDimension\022<.google.analytics.admin.v1al" - + "pha.CreateCustomDimensionRequest\032/.googl" - + "e.analytics.admin.v1alpha.CustomDimensio" - + "n\"c\202\323\344\223\002C\"//v1alpha/{parent=properties/*" - + "}/customDimensions:\020custom_dimension\332A\027p" - + "arent,custom_dimension\022\201\002\n\025UpdateCustomD" - + "imension\022<.google.analytics.admin.v1alph" - + "a.UpdateCustomDimensionRequest\032/.google." - + "analytics.admin.v1alpha.CustomDimension\"" - + "y\202\323\344\223\002T2@/v1alpha/{custom_dimension.name" - + "=properties/*/customDimensions/*}:\020custo" - + "m_dimension\332A\034custom_dimension,update_ma" - + "sk\022\323\001\n\024ListCustomDimensions\022;.google.ana" - + "lytics.admin.v1alpha.ListCustomDimension" - + "sRequest\032<.google.analytics.admin.v1alph" - + "a.ListCustomDimensionsResponse\"@\202\323\344\223\0021\022/" - + "/v1alpha/{parent=properties/*}/customDim" - + "ensions\332A\006parent\022\272\001\n\026ArchiveCustomDimens" - + "ion\022=.google.analytics.admin.v1alpha.Arc" - + "hiveCustomDimensionRequest\032\026.google.prot" - + "obuf.Empty\"I\202\323\344\223\002<\"7/v1alpha/{name=prope" - + "rties/*/customDimensions/*}:archive:\001*\332A" - + "\004name\022\300\001\n\022GetCustomDimension\0229.google.an" - + "alytics.admin.v1alpha.GetCustomDimension" - + "Request\032/.google.analytics.admin.v1alpha" - + ".CustomDimension\">\202\323\344\223\0021\022//v1alpha/{name" - + "=properties/*/customDimensions/*}\332A\004name" - + "\022\331\001\n\022CreateCustomMetric\0229.google.analyti" - + "cs.admin.v1alpha.CreateCustomMetricReque" + + "playVideo360AdvertiserLinkProposalReques" + + "t\032T.google.analytics.admin.v1alpha.Appro" + + "veDisplayVideo360AdvertiserLinkProposalR" + + "esponse\"X\202\323\344\223\002R\"M/v1alpha/{name=properti" + + "es/*/displayVideo360AdvertiserLinkPropos" + + "als/*}:approve:\001*\022\241\002\n+CancelDisplayVideo" + + "360AdvertiserLinkProposal\022R.google.analy" + + "tics.admin.v1alpha.CancelDisplayVideo360" + + "AdvertiserLinkProposalRequest\032E.google.a" + + "nalytics.admin.v1alpha.DisplayVideo360Ad" + + "vertiserLinkProposal\"W\202\323\344\223\002Q\"L/v1alpha/{" + + "name=properties/*/displayVideo360Adverti" + + "serLinkProposals/*}:cancel:\001*\022\353\001\n\025Create" + + "CustomDimension\022<.google.analytics.admin" + + ".v1alpha.CreateCustomDimensionRequest\032/." + + "google.analytics.admin.v1alpha.CustomDim" + + "ension\"c\202\323\344\223\002C\"//v1alpha/{parent=propert" + + "ies/*}/customDimensions:\020custom_dimensio", + "n\332A\027parent,custom_dimension\022\201\002\n\025UpdateCu" + + "stomDimension\022<.google.analytics.admin.v" + + "1alpha.UpdateCustomDimensionRequest\032/.go" + + "ogle.analytics.admin.v1alpha.CustomDimen" + + "sion\"y\202\323\344\223\002T2@/v1alpha/{custom_dimension" + + ".name=properties/*/customDimensions/*}:\020" + + "custom_dimension\332A\034custom_dimension,upda" + + "te_mask\022\323\001\n\024ListCustomDimensions\022;.googl" + + "e.analytics.admin.v1alpha.ListCustomDime" + + "nsionsRequest\032<.google.analytics.admin.v" + + "1alpha.ListCustomDimensionsResponse\"@\202\323\344" + + "\223\0021\022//v1alpha/{parent=properties/*}/cust" + + "omDimensions\332A\006parent\022\272\001\n\026ArchiveCustomD" + + "imension\022=.google.analytics.admin.v1alph" + + "a.ArchiveCustomDimensionRequest\032\026.google" + + ".protobuf.Empty\"I\202\323\344\223\002<\"7/v1alpha/{name=" + + "properties/*/customDimensions/*}:archive" + + ":\001*\332A\004name\022\300\001\n\022GetCustomDimension\0229.goog" + + "le.analytics.admin.v1alpha.GetCustomDime" + + "nsionRequest\032/.google.analytics.admin.v1" + + "alpha.CustomDimension\">\202\323\344\223\0021\022//v1alpha/" + + "{name=properties/*/customDimensions/*}\332A" + + "\004name\022\331\001\n\022CreateCustomMetric\0229.google.an" + + "alytics.admin.v1alpha.CreateCustomMetric" + + "Request\032,.google.analytics.admin.v1alpha" + + ".CustomMetric\"Z\202\323\344\223\002=\",/v1alpha/{parent=" + + "properties/*}/customMetrics:\rcustom_metr" + + "ic\332A\024parent,custom_metric\022\354\001\n\022UpdateCust" + + "omMetric\0229.google.analytics.admin.v1alph" + + "a.UpdateCustomMetricRequest\032,.google.ana" + + "lytics.admin.v1alpha.CustomMetric\"m\202\323\344\223\002" + + "K2:/v1alpha/{custom_metric.name=properti" + + "es/*/customMetrics/*}:\rcustom_metric\332A\031c" + + "ustom_metric,update_mask\022\307\001\n\021ListCustomM" + + "etrics\0228.google.analytics.admin.v1alpha." + + "ListCustomMetricsRequest\0329.google.analyt" + + "ics.admin.v1alpha.ListCustomMetricsRespo" + + "nse\"=\202\323\344\223\002.\022,/v1alpha/{parent=properties" + + "/*}/customMetrics\332A\006parent\022\261\001\n\023ArchiveCu" + + "stomMetric\022:.google.analytics.admin.v1al" + + "pha.ArchiveCustomMetricRequest\032\026.google." + + "protobuf.Empty\"F\202\323\344\223\0029\"4/v1alpha/{name=p" + + "roperties/*/customMetrics/*}:archive:\001*\332" + + "A\004name\022\264\001\n\017GetCustomMetric\0226.google.anal" + + "ytics.admin.v1alpha.GetCustomMetricReque" + "st\032,.google.analytics.admin.v1alpha.Cust" - + "omMetric\"Z\202\323\344\223\002=\",/v1alpha/{parent=prope" - + "rties/*}/customMetrics:\rcustom_metric\332A\024" - + "parent,custom_metric\022\354\001\n\022UpdateCustomMet" - + "ric\0229.google.analytics.admin.v1alpha.Upd" - + "ateCustomMetricRequest\032,.google.analytic" - + "s.admin.v1alpha.CustomMetric\"m\202\323\344\223\002K2:/v" - + "1alpha/{custom_metric.name=properties/*/" - + "customMetrics/*}:\rcustom_metric\332A\031custom" - + "_metric,update_mask\022\307\001\n\021ListCustomMetric" - + "s\0228.google.analytics.admin.v1alpha.ListC" - + "ustomMetricsRequest\0329.google.analytics.a" - + "dmin.v1alpha.ListCustomMetricsResponse\"=" - + "\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}/c" - + "ustomMetrics\332A\006parent\022\261\001\n\023ArchiveCustomM" - + "etric\022:.google.analytics.admin.v1alpha.A" - + "rchiveCustomMetricRequest\032\026.google.proto" - + "buf.Empty\"F\202\323\344\223\0029\"4/v1alpha/{name=proper" - + "ties/*/customMetrics/*}:archive:\001*\332A\004nam" - + "e\022\264\001\n\017GetCustomMetric\0226.google.analytics" - + ".admin.v1alpha.GetCustomMetricRequest\032,." - + "google.analytics.admin.v1alpha.CustomMet" - + "ric\";\202\323\344\223\002.\022,/v1alpha/{name=properties/*" - + "/customMetrics/*}\332A\004name\022\325\001\n\030GetDataRete" - + "ntionSettings\022?.google.analytics.admin.v" - + "1alpha.GetDataRetentionSettingsRequest\0325" - + ".google.analytics.admin.v1alpha.DataRete" - + "ntionSettings\"A\202\323\344\223\0024\0222/v1alpha/{name=pr" - + "operties/*/dataRetentionSettings}\332A\004name" - + "\022\254\002\n\033UpdateDataRetentionSettings\022B.googl" - + "e.analytics.admin.v1alpha.UpdateDataRete" - + "ntionSettingsRequest\0325.google.analytics." - + "admin.v1alpha.DataRetentionSettings\"\221\001\202\323" - + "\344\223\002e2J/v1alpha/{data_retention_settings." - + "name=properties/*/dataRetentionSettings}" - + ":\027data_retention_settings\332A#data_retenti" - + "on_settings,update_mask\022\315\001\n\020CreateDataSt" - + "ream\0227.google.analytics.admin.v1alpha.Cr" - + "eateDataStreamRequest\032*.google.analytics" - + ".admin.v1alpha.DataStream\"T\202\323\344\223\0029\"*/v1al" - + "pha/{parent=properties/*}/dataStreams:\013d" - + "ata_stream\332A\022parent,data_stream\022\236\001\n\020Dele" - + "teDataStream\0227.google.analytics.admin.v1", - "alpha.DeleteDataStreamRequest\032\026.google.p" - + "rotobuf.Empty\"9\202\323\344\223\002,**/v1alpha/{name=pr" - + "operties/*/dataStreams/*}\332A\004name\022\336\001\n\020Upd" - + "ateDataStream\0227.google.analytics.admin.v" - + "1alpha.UpdateDataStreamRequest\032*.google." - + "analytics.admin.v1alpha.DataStream\"e\202\323\344\223" - + "\002E26/v1alpha/{data_stream.name=propertie" - + "s/*/dataStreams/*}:\013data_stream\332A\027data_s" - + "tream,update_mask\022\277\001\n\017ListDataStreams\0226." - + "google.analytics.admin.v1alpha.ListDataS" - + "treamsRequest\0327.google.analytics.admin.v" - + "1alpha.ListDataStreamsResponse\";\202\323\344\223\002,\022*" + + "omMetric\";\202\323\344\223\002.\022,/v1alpha/{name=propert" + + "ies/*/customMetrics/*}\332A\004name\022\325\001\n\030GetDat" + + "aRetentionSettings\022?.google.analytics.ad" + + "min.v1alpha.GetDataRetentionSettingsRequ" + + "est\0325.google.analytics.admin.v1alpha.Dat" + + "aRetentionSettings\"A\202\323\344\223\0024\0222/v1alpha/{na" + + "me=properties/*/dataRetentionSettings}\332A" + + "\004name\022\254\002\n\033UpdateDataRetentionSettings\022B." + + "google.analytics.admin.v1alpha.UpdateDat" + + "aRetentionSettingsRequest\0325.google.analy" + + "tics.admin.v1alpha.DataRetentionSettings" + + "\"\221\001\202\323\344\223\002e2J/v1alpha/{data_retention_sett" + + "ings.name=properties/*/dataRetentionSett" + + "ings}:\027data_retention_settings\332A#data_re" + + "tention_settings,update_mask\022\315\001\n\020CreateD" + + "ataStream\0227.google.analytics.admin.v1alp" + + "ha.CreateDataStreamRequest\032*.google.anal" + + "ytics.admin.v1alpha.DataStream\"T\202\323\344\223\0029\"*" + "/v1alpha/{parent=properties/*}/dataStrea" - + "ms\332A\006parent\022\254\001\n\rGetDataStream\0224.google.a" - + "nalytics.admin.v1alpha.GetDataStreamRequ" - + "est\032*.google.analytics.admin.v1alpha.Dat" - + "aStream\"9\202\323\344\223\002,\022*/v1alpha/{name=properti" - + "es/*/dataStreams/*}\332A\004name\022\244\001\n\013GetAudien" - + "ce\0222.google.analytics.admin.v1alpha.GetA" - + "udienceRequest\032(.google.analytics.admin." - + "v1alpha.Audience\"7\202\323\344\223\002*\022(/v1alpha/{name" - + "=properties/*/audiences/*}\332A\004name\022\267\001\n\rLi" - + "stAudiences\0224.google.analytics.admin.v1a" - + "lpha.ListAudiencesRequest\0325.google.analy" - + "tics.admin.v1alpha.ListAudiencesResponse" - + "\"9\202\323\344\223\002*\022(/v1alpha/{parent=properties/*}" - + "/audiences\332A\006parent\022\277\001\n\016CreateAudience\0225" - + ".google.analytics.admin.v1alpha.CreateAu" - + "dienceRequest\032(.google.analytics.admin.v" - + "1alpha.Audience\"L\202\323\344\223\0024\"(/v1alpha/{paren" - + "t=properties/*}/audiences:\010audience\332A\017pa" - + "rent,audience\022\315\001\n\016UpdateAudience\0225.googl" - + "e.analytics.admin.v1alpha.UpdateAudience" - + "Request\032(.google.analytics.admin.v1alpha" - + ".Audience\"Z\202\323\344\223\002=21/v1alpha/{audience.na" - + "me=properties/*/audiences/*}:\010audience\332A" - + "\024audience,update_mask\022\236\001\n\017ArchiveAudienc" - + "e\0226.google.analytics.admin.v1alpha.Archi" - + "veAudienceRequest\032\026.google.protobuf.Empt" - + "y\";\202\323\344\223\0025\"0/v1alpha/{name=properties/*/a" - + "udiences/*}:archive:\001*\022\304\001\n\023GetSearchAds3" - + "60Link\022:.google.analytics.admin.v1alpha." - + "GetSearchAds360LinkRequest\0320.google.anal" - + "ytics.admin.v1alpha.SearchAds360Link\"?\202\323" - + "\344\223\0022\0220/v1alpha/{name=properties/*/search" - + "Ads360Links/*}\332A\004name\022\327\001\n\025ListSearchAds3" - + "60Links\022<.google.analytics.admin.v1alpha" - + ".ListSearchAds360LinksRequest\032=.google.a" - + "nalytics.admin.v1alpha.ListSearchAds360L" - + "inksResponse\"A\202\323\344\223\0022\0220/v1alpha/{parent=p" - + "roperties/*}/searchAds360Links\332A\006parent\022" - + "\365\001\n\026CreateSearchAds360Link\022=.google.anal" - + "ytics.admin.v1alpha.CreateSearchAds360Li" - + "nkRequest\0320.google.analytics.admin.v1alp" - + "ha.SearchAds360Link\"j\202\323\344\223\002G\"0/v1alpha/{p" - + "arent=properties/*}/searchAds360Links:\023s" - + "earch_ads_360_link\332A\032parent,search_ads_3" - + "60_link\022\260\001\n\026DeleteSearchAds360Link\022=.goo" - + "gle.analytics.admin.v1alpha.DeleteSearch" - + "Ads360LinkRequest\032\026.google.protobuf.Empt" - + "y\"?\202\323\344\223\0022*0/v1alpha/{name=properties/*/s" - + "earchAds360Links/*}\332A\004name\022\217\002\n\026UpdateSea" - + "rchAds360Link\022=.google.analytics.admin.v" - + "1alpha.UpdateSearchAds360LinkRequest\0320.g" - + "oogle.analytics.admin.v1alpha.SearchAds3" - + "60Link\"\203\001\202\323\344\223\002[2D/v1alpha/{search_ads_36" - + "0_link.name=properties/*/searchAds360Lin" - + "ks/*}:\023search_ads_360_link\332A\037search_ads_" - + "360_link,update_mask\022\315\001\n\026GetAttributionS" - + "ettings\022=.google.analytics.admin.v1alpha" - + ".GetAttributionSettingsRequest\0323.google." - + "analytics.admin.v1alpha.AttributionSetti" - + "ngs\"?\202\323\344\223\0022\0220/v1alpha/{name=properties/*" - + "/attributionSettings}\332A\004name\022\233\002\n\031UpdateA" - + "ttributionSettings\022@.google.analytics.ad" - + "min.v1alpha.UpdateAttributionSettingsReq" - + "uest\0323.google.analytics.admin.v1alpha.At" - + "tributionSettings\"\206\001\202\323\344\223\002]2E/v1alpha/{at" - + "tribution_settings.name=properties/*/att" - + "ributionSettings}:\024attribution_settings\332" - + "A attribution_settings,update_mask\022\275\001\n\017R" - + "unAccessReport\0226.google.analytics.admin." - + "v1alpha.RunAccessReportRequest\0327.google." - + "analytics.admin.v1alpha.RunAccessReportR" - + "esponse\"9\202\323\344\223\0023\"./v1alpha/{entity=proper" - + "ties/*}:runAccessReport:\001*\022\376\001\n\"SetAutoma" + + "ms:\013data_stream\332A\022parent,data_stream\022\236\001\n" + + "\020DeleteDataStream\0227.google.analytics.adm" + + "in.v1alpha.DeleteDataStreamRequest\032\026.goo" + + "gle.protobuf.Empty\"9\202\323\344\223\002,**/v1alpha/{na" + + "me=properties/*/dataStreams/*}\332A\004name\022\336\001" + + "\n\020UpdateDataStream\0227.google.analytics.ad" + + "min.v1alpha.UpdateDataStreamRequest\032*.go" + + "ogle.analytics.admin.v1alpha.DataStream\"" + + "e\202\323\344\223\002E26/v1alpha/{data_stream.name=prop" + + "erties/*/dataStreams/*}:\013data_stream\332A\027d" + + "ata_stream,update_mask\022\277\001\n\017ListDataStrea" + + "ms\0226.google.analytics.admin.v1alpha.List" + + "DataStreamsRequest\0327.google.analytics.ad" + + "min.v1alpha.ListDataStreamsResponse\";\202\323\344" + + "\223\002,\022*/v1alpha/{parent=properties/*}/data" + + "Streams\332A\006parent\022\254\001\n\rGetDataStream\0224.goo" + + "gle.analytics.admin.v1alpha.GetDataStrea" + + "mRequest\032*.google.analytics.admin.v1alph" + + "a.DataStream\"9\202\323\344\223\002,\022*/v1alpha/{name=pro" + + "perties/*/dataStreams/*}\332A\004name\022\244\001\n\013GetA" + + "udience\0222.google.analytics.admin.v1alpha" + + ".GetAudienceRequest\032(.google.analytics.a" + + "dmin.v1alpha.Audience\"7\202\323\344\223\002*\022(/v1alpha/" + + "{name=properties/*/audiences/*}\332A\004name\022\267" + + "\001\n\rListAudiences\0224.google.analytics.admi" + + "n.v1alpha.ListAudiencesRequest\0325.google." + + "analytics.admin.v1alpha.ListAudiencesRes" + + "ponse\"9\202\323\344\223\002*\022(/v1alpha/{parent=properti" + + "es/*}/audiences\332A\006parent\022\277\001\n\016CreateAudie" + + "nce\0225.google.analytics.admin.v1alpha.Cre" + + "ateAudienceRequest\032(.google.analytics.ad" + + "min.v1alpha.Audience\"L\202\323\344\223\0024\"(/v1alpha/{" + + "parent=properties/*}/audiences:\010audience" + + "\332A\017parent,audience\022\315\001\n\016UpdateAudience\0225." + + "google.analytics.admin.v1alpha.UpdateAud" + + "ienceRequest\032(.google.analytics.admin.v1" + + "alpha.Audience\"Z\202\323\344\223\002=21/v1alpha/{audien" + + "ce.name=properties/*/audiences/*}:\010audie" + + "nce\332A\024audience,update_mask\022\236\001\n\017ArchiveAu" + + "dience\0226.google.analytics.admin.v1alpha." + + "ArchiveAudienceRequest\032\026.google.protobuf" + + ".Empty\";\202\323\344\223\0025\"0/v1alpha/{name=propertie" + + "s/*/audiences/*}:archive:\001*\022\304\001\n\023GetSearc" + + "hAds360Link\022:.google.analytics.admin.v1a" + + "lpha.GetSearchAds360LinkRequest\0320.google" + + ".analytics.admin.v1alpha.SearchAds360Lin" + + "k\"?\202\323\344\223\0022\0220/v1alpha/{name=properties/*/s" + + "earchAds360Links/*}\332A\004name\022\327\001\n\025ListSearc" + + "hAds360Links\022<.google.analytics.admin.v1" + + "alpha.ListSearchAds360LinksRequest\032=.goo" + + "gle.analytics.admin.v1alpha.ListSearchAd" + + "s360LinksResponse\"A\202\323\344\223\0022\0220/v1alpha/{par" + + "ent=properties/*}/searchAds360Links\332A\006pa" + + "rent\022\365\001\n\026CreateSearchAds360Link\022=.google" + + ".analytics.admin.v1alpha.CreateSearchAds" + + "360LinkRequest\0320.google.analytics.admin." + + "v1alpha.SearchAds360Link\"j\202\323\344\223\002G\"0/v1alp" + + "ha/{parent=properties/*}/searchAds360Lin" + + "ks:\023search_ads_360_link\332A\032parent,search_" + + "ads_360_link\022\260\001\n\026DeleteSearchAds360Link\022" + + "=.google.analytics.admin.v1alpha.DeleteS" + + "earchAds360LinkRequest\032\026.google.protobuf" + + ".Empty\"?\202\323\344\223\0022*0/v1alpha/{name=propertie" + + "s/*/searchAds360Links/*}\332A\004name\022\217\002\n\026Upda" + + "teSearchAds360Link\022=.google.analytics.ad" + + "min.v1alpha.UpdateSearchAds360LinkReques" + + "t\0320.google.analytics.admin.v1alpha.Searc" + + "hAds360Link\"\203\001\202\323\344\223\002[2D/v1alpha/{search_a" + + "ds_360_link.name=properties/*/searchAds3" + + "60Links/*}:\023search_ads_360_link\332A\037search" + + "_ads_360_link,update_mask\022\315\001\n\026GetAttribu" + + "tionSettings\022=.google.analytics.admin.v1" + + "alpha.GetAttributionSettingsRequest\0323.go" + + "ogle.analytics.admin.v1alpha.Attribution" + + "Settings\"?\202\323\344\223\0022\0220/v1alpha/{name=propert" + + "ies/*/attributionSettings}\332A\004name\022\233\002\n\031Up" + + "dateAttributionSettings\022@.google.analyti" + + "cs.admin.v1alpha.UpdateAttributionSettin" + + "gsRequest\0323.google.analytics.admin.v1alp" + + "ha.AttributionSettings\"\206\001\202\323\344\223\002]2E/v1alph" + + "a/{attribution_settings.name=properties/" + + "*/attributionSettings}:\024attribution_sett" + + "ings\332A attribution_settings,update_mask\022" + + "\275\001\n\017RunAccessReport\0226.google.analytics.a" + + "dmin.v1alpha.RunAccessReportRequest\0327.go" + + "ogle.analytics.admin.v1alpha.RunAccessRe" + + "portResponse\"9\202\323\344\223\0023\"./v1alpha/{entity=p" + + "roperties/*}:runAccessReport:\001*\022\237\002\n\023Crea" + + "teAccessBinding\022:.google.analytics.admin" + + ".v1alpha.CreateAccessBindingRequest\032-.go" + + "ogle.analytics.admin.v1alpha.AccessBindi" + + "ng\"\234\001\202\323\344\223\002~\"+/v1alpha/{parent=accounts/*" + + "}/accessBindings:\016access_bindingZ?\"-/v1a" + + "lpha/{parent=properties/*}/accessBinding" + + "s:\016access_binding\332A\025parent,access_bindin" + + "g\022\347\001\n\020GetAccessBinding\0227.google.analytic" + + "s.admin.v1alpha.GetAccessBindingRequest\032" + + "-.google.analytics.admin.v1alpha.AccessB" + + "inding\"k\202\323\344\223\002^\022+/v1alpha/{name=accounts/" + + "*/accessBindings/*}Z/\022-/v1alpha/{name=pr" + + "operties/*/accessBindings/*}\332A\004name\022\267\002\n\023" + + "UpdateAccessBinding\022:.google.analytics.a" + + "dmin.v1alpha.UpdateAccessBindingRequest\032" + + "-.google.analytics.admin.v1alpha.AccessB" + + "inding\"\264\001\202\323\344\223\002\234\0012:/v1alpha/{access_bindi" + + "ng.name=accounts/*/accessBindings/*}:\016ac" + + "cess_bindingZN2\"9/v1alpha/{parent=properti" + + "es/*}/accessBindings:batchCreate:\001*\022\217\002\n\026" + + "BatchGetAccessBindings\022=.google.analytic" + + "s.admin.v1alpha.BatchGetAccessBindingsRe" + + "quest\032>.google.analytics.admin.v1alpha.B" + + "atchGetAccessBindingsResponse\"v\202\323\344\223\002p\0224/" + + "v1alpha/{parent=accounts/*}/accessBindin" + + "gs:batchGetZ8\0226/v1alpha/{parent=properti" + + "es/*}/accessBindings:batchGet\022\245\002\n\031BatchU" + + "pdateAccessBindings\022@.google.analytics.a" + + "dmin.v1alpha.BatchUpdateAccessBindingsRe" + + "quest\032A.google.analytics.admin.v1alpha.B" + + "atchUpdateAccessBindingsResponse\"\202\001\202\323\344\223\002" + + "|\"7/v1alpha/{parent=accounts/*}/accessBi" + + "ndings:batchUpdate:\001*Z>\"9/v1alpha/{paren" + + "t=properties/*}/accessBindings:batchUpda" + + "te:\001*\022\372\001\n\031BatchDeleteAccessBindings\022@.go" + + "ogle.analytics.admin.v1alpha.BatchDelete" + + "AccessBindingsRequest\032\026.google.protobuf." + + "Empty\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=account" + + "s/*}/accessBindings:batchDelete:\001*Z>\"9/v" + + "1alpha/{parent=properties/*}/accessBindi" + + "ngs:batchDelete:\001*\022\300\001\n\022GetExpandedDataSe" + + "t\0229.google.analytics.admin.v1alpha.GetEx" + + "pandedDataSetRequest\032/.google.analytics." + + "admin.v1alpha.ExpandedDataSet\">\202\323\344\223\0021\022//" + + "v1alpha/{name=properties/*/expandedDataS" + + "ets/*}\332A\004name\022\323\001\n\024ListExpandedDataSets\022;" + + ".google.analytics.admin.v1alpha.ListExpa" + + "ndedDataSetsRequest\032<.google.analytics.a" + + "dmin.v1alpha.ListExpandedDataSetsRespons" + + "e\"@\202\323\344\223\0021\022//v1alpha/{parent=properties/*" + + "}/expandedDataSets\332A\006parent\022\355\001\n\025CreateEx" + + "pandedDataSet\022<.google.analytics.admin.v" + + "1alpha.CreateExpandedDataSetRequest\032/.go" + + "ogle.analytics.admin.v1alpha.ExpandedDat" + + "aSet\"e\202\323\344\223\002D\"//v1alpha/{parent=propertie" + + "s/*}/expandedDataSets:\021expanded_data_set" + + "\332A\030parent,expanded_data_set\022\204\002\n\025UpdateEx" + + "pandedDataSet\022<.google.analytics.admin.v" + + "1alpha.UpdateExpandedDataSetRequest\032/.go" + + "ogle.analytics.admin.v1alpha.ExpandedDat" + + "aSet\"|\202\323\344\223\002V2A/v1alpha/{expanded_data_se" + + "t.name=properties/*/expandedDataSets/*}:" + + "\021expanded_data_set\332A\035expanded_data_set,u" + + "pdate_mask\022\255\001\n\025DeleteExpandedDataSet\022<.g" + + "oogle.analytics.admin.v1alpha.DeleteExpa" + + "ndedDataSetRequest\032\026.google.protobuf.Emp" + + "ty\">\202\323\344\223\0021*//v1alpha/{name=properties/*/" + + "expandedDataSets/*}\332A\004name\022\376\001\n\"SetAutoma" + "tedGa4ConfigurationOptOut\022I.google.analy" + "tics.admin.v1alpha.SetAutomatedGa4Config" + "urationOptOutRequest\032J.google.analytics." @@ -1422,6 +1653,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(), com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), + com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(), com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), @@ -2311,8 +2543,160 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AttributionSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor = + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor = getDescriptor().getMessageTypes().get(108); + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(109); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(110); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", + }); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(111); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(112); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(113); + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "AccessBinding", + }); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(114); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(115); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(116); + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor, + new java.lang.String[] { + "AccessBinding", + }); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(117); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(118); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", + }); + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(119); + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(120); + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(121); + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "Parent", "ExpandedDataSet", + }); + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(122); + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "ExpandedDataSet", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(123); + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(124); + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(125); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(126); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor, + new java.lang.String[] { + "ExpandedDataSets", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor = + getDescriptor().getMessageTypes().get(127); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor, @@ -2320,13 +2704,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "OptOut", }); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(128); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor, new java.lang.String[] {}); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(129); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor, @@ -2334,7 +2718,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", }); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(130); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor, @@ -2342,7 +2726,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptOut", }); internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(131); internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor, @@ -2350,7 +2734,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(132); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor, @@ -2358,7 +2742,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(133); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor, @@ -2377,6 +2761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(); com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); + com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(); com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java new file mode 100644 index 000000000000..0a5970e54cf7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java @@ -0,0 +1,1268 @@ +/* + * 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 BatchCreateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest} + */ +public final class BatchCreateAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + BatchCreateAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateAccessBindingsRequest.newBuilder() to construct. + private BatchCreateAccessBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateAccessBindingsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateAccessBindingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + return requests_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(3, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, requests_.get(i)); + } + size += getUnknownFields().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.BatchCreateAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest 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.BatchCreateAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest 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.BatchCreateAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest 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.BatchCreateAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest 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.BatchCreateAccessBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + 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.BatchCreateAccessBindingsRequest 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.BatchCreateAccessBindingsRequest 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.BatchCreateAccessBindingsRequest 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 BatchCreateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_BatchCreateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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.BatchCreateAccessBindingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest m = + input.readMessage( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + requests_ = java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.BatchCreateAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchCreateAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..298125982f1b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchCreateAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java new file mode 100644 index 000000000000..87bec302569a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java @@ -0,0 +1,967 @@ +/* + * 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 BatchCreateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse} + */ +public final class BatchCreateAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + BatchCreateAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateAccessBindingsResponse.newBuilder() to construct. + private BatchCreateAccessBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateAccessBindingsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.get(i)); + } + size += getUnknownFields().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.BatchCreateAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse 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.BatchCreateAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse 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.BatchCreateAccessBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse 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.BatchCreateAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse 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.BatchCreateAccessBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + 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.BatchCreateAccessBindingsResponse 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.BatchCreateAccessBindingsResponse 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.BatchCreateAccessBindingsResponse 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 BatchCreateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_BatchCreateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.BatchCreateAccessBindingsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + .getDefaultInstance()) return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + @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.BatchCreateAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchCreateAccessBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..1cdd1ad539e7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 BatchCreateAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java new file mode 100644 index 000000000000..9c37a3ffdd85 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java @@ -0,0 +1,1268 @@ +/* + * 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 BatchDeleteAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest} + */ +public final class BatchDeleteAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + BatchDeleteAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeleteAccessBindingsRequest.newBuilder() to construct. + private BatchDeleteAccessBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeleteAccessBindingsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeleteAccessBindingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the DeleteAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the DeleteAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + return requests_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); + } + size += getUnknownFields().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.BatchDeleteAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest 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.BatchDeleteAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest 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.BatchDeleteAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest 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.BatchDeleteAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest 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.BatchDeleteAccessBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + 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.BatchDeleteAccessBindingsRequest 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.BatchDeleteAccessBindingsRequest 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.BatchDeleteAccessBindingsRequest 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 BatchDeleteAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_BatchDeleteAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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.BatchDeleteAccessBindingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest m = + input.readMessage( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the DeleteAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the DeleteAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the DeleteAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the DeleteAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the DeleteAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + requests_ = java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.BatchDeleteAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchDeleteAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..7e539d150604 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchDeleteAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the DeleteAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the DeleteAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java new file mode 100644 index 000000000000..e9dd8442f431 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java @@ -0,0 +1,1034 @@ +/* + * 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 BatchGetAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest} + */ +public final class BatchGetAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + BatchGetAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchGetAccessBindingsRequest.newBuilder() to construct. + private BatchGetAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchGetAccessBindingsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAccessBindingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringList names_; + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().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.BatchGetAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest 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.BatchGetAccessBindingsRequest 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 BatchGetAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + 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_BatchGetAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + names_ = names_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.names_ = names_; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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.BatchGetAccessBindingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList names_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureNamesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_.getUnmodifiableView(); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(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.BatchGetAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchGetAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..0d3968807870 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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 BatchGetAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java new file mode 100644 index 000000000000..0a129db03ae3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java @@ -0,0 +1,965 @@ +/* + * 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 BatchGetAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse} + */ +public final class BatchGetAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + BatchGetAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchGetAccessBindingsResponse.newBuilder() to construct. + private BatchGetAccessBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchGetAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAccessBindingsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.get(i)); + } + size += getUnknownFields().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.BatchGetAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse 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.BatchGetAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse 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.BatchGetAccessBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse 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.BatchGetAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse 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.BatchGetAccessBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + 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.BatchGetAccessBindingsResponse 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.BatchGetAccessBindingsResponse 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.BatchGetAccessBindingsResponse 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 BatchGetAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_BatchGetAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.BatchGetAccessBindingsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance()) + return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + @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.BatchGetAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchGetAccessBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..7f2f3a1cd10c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 BatchGetAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java new file mode 100644 index 000000000000..316dea51f86c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java @@ -0,0 +1,1268 @@ +/* + * 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 BatchUpdateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest} + */ +public final class BatchUpdateAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + BatchUpdateAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchUpdateAccessBindingsRequest.newBuilder() to construct. + private BatchUpdateAccessBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateAccessBindingsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateAccessBindingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the UpdateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the UpdateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + return requests_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); + } + size += getUnknownFields().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.BatchUpdateAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest 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.BatchUpdateAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest 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.BatchUpdateAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest 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.BatchUpdateAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest 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.BatchUpdateAccessBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + 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.BatchUpdateAccessBindingsRequest 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.BatchUpdateAccessBindingsRequest 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.BatchUpdateAccessBindingsRequest 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 BatchUpdateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_BatchUpdateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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.BatchUpdateAccessBindingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest m = + input.readMessage( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the UpdateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the UpdateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the UpdateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the UpdateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the UpdateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + requests_ = java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.BatchUpdateAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchUpdateAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..e8decedff4cd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchUpdateAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the UpdateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the UpdateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java new file mode 100644 index 000000000000..5ef989634185 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java @@ -0,0 +1,967 @@ +/* + * 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 BatchUpdateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse} + */ +public final class BatchUpdateAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + BatchUpdateAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchUpdateAccessBindingsResponse.newBuilder() to construct. + private BatchUpdateAccessBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateAccessBindingsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.get(i)); + } + size += getUnknownFields().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.BatchUpdateAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse 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.BatchUpdateAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse 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.BatchUpdateAccessBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse 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.BatchUpdateAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse 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.BatchUpdateAccessBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + 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.BatchUpdateAccessBindingsResponse 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.BatchUpdateAccessBindingsResponse 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.BatchUpdateAccessBindingsResponse 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 BatchUpdateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_BatchUpdateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.BatchUpdateAccessBindingsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + .getDefaultInstance()) return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + @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.BatchUpdateAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BatchUpdateAccessBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..8fdebaf15f1c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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 BatchUpdateAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java new file mode 100644 index 000000000000..7370025402ae --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java @@ -0,0 +1,953 @@ +/* + * 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 CreateAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAccessBindingRequest} + */ +public final class CreateAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + CreateAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAccessBindingRequest.newBuilder() to construct. + private CreateAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAccessBindingRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAccessBindingRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_BINDING_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + @java.lang.Override + public boolean hasAccessBinding() { + return accessBinding_ != null; + } + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (accessBinding_ != null) { + output.writeMessage(2, getAccessBinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (accessBinding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccessBinding()); + } + size += getUnknownFields().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.CreateAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAccessBinding() != other.hasAccessBinding()) return false; + if (hasAccessBinding()) { + if (!getAccessBinding().equals(other.getAccessBinding())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAccessBinding()) { + hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAccessBinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest 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.CreateAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest 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.CreateAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest 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.CreateAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest 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.CreateAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest 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.CreateAccessBindingRequest 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.CreateAccessBindingRequest 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.CreateAccessBindingRequest 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 CreateAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.CreateAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessBinding_ = + accessBindingBuilder_ == null ? accessBinding_ : accessBindingBuilder_.build(); + } + } + + @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.CreateAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAccessBinding()) { + mergeAccessBinding(other.getAccessBinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAccessBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingBuilder_; + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + public boolean hasAccessBinding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + if (accessBindingBuilder_ == null) { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } else { + return accessBindingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessBinding_ = value; + } else { + accessBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingBuilder_ == null) { + accessBinding_ = builderForValue.build(); + } else { + accessBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && accessBinding_ != null + && accessBinding_ + != com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) { + getAccessBindingBuilder().mergeFrom(value); + } else { + accessBinding_ = value; + } + } else { + accessBindingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAccessBindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + if (accessBindingBuilder_ != null) { + return accessBindingBuilder_.getMessageOrBuilder(); + } else { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingFieldBuilder() { + if (accessBindingBuilder_ == null) { + accessBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + getAccessBinding(), getParentForChildren(), isClean()); + accessBinding_ = null; + } + return accessBindingBuilder_; + } + + @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.CreateAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.CreateAccessBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CreateAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..f24c0c074b71 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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 CreateAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + boolean hasAccessBinding(); + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(); + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java new file mode 100644 index 000000000000..5dbd39b18d3f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java @@ -0,0 +1,943 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateExpandedDataSetRequest} + */ +public final class CreateExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + CreateExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateExpandedDataSetRequest.newBuilder() to construct. + private CreateExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExpandedDataSetRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExpandedDataSetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + @java.lang.Override + public boolean hasExpandedDataSet() { + return expandedDataSet_ != null; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (expandedDataSet_ != null) { + output.writeMessage(2, getExpandedDataSet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (expandedDataSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpandedDataSet()); + } + size += getUnknownFields().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.CreateExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasExpandedDataSet() != other.hasExpandedDataSet()) return false; + if (hasExpandedDataSet()) { + if (!getExpandedDataSet().equals(other.getExpandedDataSet())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasExpandedDataSet()) { + hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest 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.CreateExpandedDataSetRequest 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 CreateExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expandedDataSet_ = + expandedDataSetBuilder_ == null ? expandedDataSet_ : expandedDataSetBuilder_.build(); + } + } + + @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.CreateExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExpandedDataSet()) { + mergeExpandedDataSet(other.getExpandedDataSet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpandedDataSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetBuilder_; + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + public boolean hasExpandedDataSet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + if (expandedDataSetBuilder_ == null) { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } else { + return expandedDataSetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expandedDataSet_ = value; + } else { + expandedDataSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetBuilder_ == null) { + expandedDataSet_ = builderForValue.build(); + } else { + expandedDataSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && expandedDataSet_ != null + && expandedDataSet_ + != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { + getExpandedDataSetBuilder().mergeFrom(value); + } else { + expandedDataSet_ = value; + } + } else { + expandedDataSetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpandedDataSet() { + bitField0_ = (bitField0_ & ~0x00000002); + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExpandedDataSetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder + getExpandedDataSetOrBuilder() { + if (expandedDataSetBuilder_ != null) { + return expandedDataSetBuilder_.getMessageOrBuilder(); + } else { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetFieldBuilder() { + if (expandedDataSetBuilder_ == null) { + expandedDataSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + getExpandedDataSet(), getParentForChildren(), isClean()); + expandedDataSet_ = null; + } + return expandedDataSetBuilder_; + } + + @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.CreateExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CreateExpandedDataSetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..d327a6b57f8c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + boolean hasExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java new file mode 100644 index 000000000000..368412eed862 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccessBindingRequest} + */ +public final class DeleteAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + DeleteAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAccessBindingRequest.newBuilder() to construct. + private DeleteAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAccessBindingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAccessBindingRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.DeleteAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest 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.DeleteAccessBindingRequest 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 DeleteAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.DeleteAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.DeleteAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.DeleteAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..17cb51f135f0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java new file mode 100644 index 000000000000..bc899b12f6ee --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java @@ -0,0 +1,651 @@ +/* + * 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 DeleteExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest} + */ +public final class DeleteExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + DeleteExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteExpandedDataSetRequest.newBuilder() to construct. + private DeleteExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExpandedDataSetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExpandedDataSetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.DeleteExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest 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.DeleteExpandedDataSetRequest 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 DeleteExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.DeleteExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.DeleteExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.DeleteExpandedDataSetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..1617142013a6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java new file mode 100644 index 000000000000..bde9bfa8d386 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ExpandedDataSetName implements ResourceName { + private static final PathTemplate PROPERTY_EXPANDED_DATA_SET = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/expandedDataSets/{expanded_data_set}"); + private volatile Map fieldValuesMap; + private final String property; + private final String expandedDataSet; + + @Deprecated + protected ExpandedDataSetName() { + property = null; + expandedDataSet = null; + } + + private ExpandedDataSetName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + expandedDataSet = Preconditions.checkNotNull(builder.getExpandedDataSet()); + } + + public String getProperty() { + return property; + } + + public String getExpandedDataSet() { + return expandedDataSet; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ExpandedDataSetName of(String property, String expandedDataSet) { + return newBuilder().setProperty(property).setExpandedDataSet(expandedDataSet).build(); + } + + public static String format(String property, String expandedDataSet) { + return newBuilder() + .setProperty(property) + .setExpandedDataSet(expandedDataSet) + .build() + .toString(); + } + + public static ExpandedDataSetName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_EXPANDED_DATA_SET.validatedMatch( + formattedString, "ExpandedDataSetName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("expanded_data_set")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ExpandedDataSetName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_EXPANDED_DATA_SET.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + if (expandedDataSet != null) { + fieldMapBuilder.put("expanded_data_set", expandedDataSet); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_EXPANDED_DATA_SET.instantiate( + "property", property, "expanded_data_set", expandedDataSet); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ExpandedDataSetName that = ((ExpandedDataSetName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.expandedDataSet, that.expandedDataSet); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(expandedDataSet); + return h; + } + + /** Builder for properties/{property}/expandedDataSets/{expanded_data_set}. */ + public static class Builder { + private String property; + private String expandedDataSet; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getExpandedDataSet() { + return expandedDataSet; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setExpandedDataSet(String expandedDataSet) { + this.expandedDataSet = expandedDataSet; + return this; + } + + private Builder(ExpandedDataSetName expandedDataSetName) { + this.property = expandedDataSetName.property; + this.expandedDataSet = expandedDataSetName.expandedDataSet; + } + + public ExpandedDataSetName build() { + return new ExpandedDataSetName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java new file mode 100644 index 000000000000..31f6d6bc3759 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAccessBindingRequest} + */ +public final class GetAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAccessBindingRequest) + GetAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAccessBindingRequest.newBuilder() to construct. + private GetAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAccessBindingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAccessBindingRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.GetAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.GetAccessBindingRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest 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.GetAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest 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.GetAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest 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.GetAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest 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.GetAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest 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.GetAccessBindingRequest 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.GetAccessBindingRequest 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.GetAccessBindingRequest 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 GetAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAccessBindingRequest) + com.google.analytics.admin.v1alpha.GetAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.GetAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.GetAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.GetAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAccessBindingRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.GetAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.GetAccessBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.GetAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..2fd4406cf5ee --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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 GetAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java new file mode 100644 index 000000000000..d8c40e68fcce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java @@ -0,0 +1,655 @@ +/* + * 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 GetExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetExpandedDataSetRequest} + */ +public final class GetExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + GetExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetExpandedDataSetRequest.newBuilder() to construct. + private GetExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExpandedDataSetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExpandedDataSetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.GetExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest 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.GetExpandedDataSetRequest 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 GetExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.GetExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.GetExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.GetExpandedDataSetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..810f23d383f1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java new file mode 100644 index 000000000000..b393d62a1a49 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java @@ -0,0 +1,970 @@ +/* + * 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 ListAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsRequest} + */ +public final class ListAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + ListAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccessBindingsRequest.newBuilder() to construct. + private ListAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccessBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccessBindingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of access bindings to return.
+   * The service may return fewer than this value.
+   * If unspecified, at most 200 access bindings will be returned.
+   * The maximum value is 500; values above 500 will be coerced to 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().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.ListAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest 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.ListAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest 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.ListAccessBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest 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.ListAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest 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.ListAccessBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest 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.ListAccessBindingsRequest 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.ListAccessBindingsRequest 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.ListAccessBindingsRequest 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 ListAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + com.google.analytics.admin.v1alpha.ListAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.ListAccessBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.ListAccessBindingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of access bindings to return.
+     * The service may return fewer than this value.
+     * If unspecified, at most 200 access bindings will be returned.
+     * The maximum value is 500; values above 500 will be coerced to 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of access bindings to return.
+     * The service may return fewer than this value.
+     * If unspecified, at most 200 access bindings will be returned.
+     * The maximum value is 500; values above 500 will be coerced to 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of access bindings to return.
+     * The service may return fewer than this value.
+     * If unspecified, at most 200 access bindings will be returned.
+     * The maximum value is 500; values above 500 will be coerced to 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + 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.ListAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.ListAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.ListAccessBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..f01dd2524678 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of access bindings to return.
+   * The service may return fewer than this value.
+   * If unspecified, at most 200 access bindings will be returned.
+   * The maximum value is 500; values above 500 will be coerced to 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java new file mode 100644 index 000000000000..05fcacb03e93 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java @@ -0,0 +1,1171 @@ +/* + * 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 ListAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsResponse} + */ +public final class ListAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + ListAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccessBindingsResponse.newBuilder() to construct. + private ListAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccessBindingsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + 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 < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.ListAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse 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.ListAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse 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.ListAccessBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse 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.ListAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse 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.ListAccessBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse 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.ListAccessBindingsResponse 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.ListAccessBindingsResponse 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.ListAccessBindingsResponse 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 ListAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + com.google.analytics.admin.v1alpha.ListAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ListAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.ListAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.ListAccessBindingsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance()) + return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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.ListAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.ListAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.ListAccessBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..bb2b67390d7d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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 ListAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java new file mode 100644 index 000000000000..2dcbaaf71613 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java @@ -0,0 +1,954 @@ +/* + * 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 ListExpandedDataSets RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsRequest} + */ +public final class ListExpandedDataSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + ListExpandedDataSetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExpandedDataSetsRequest.newBuilder() to construct. + private ListExpandedDataSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExpandedDataSetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExpandedDataSetsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += getUnknownFields().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.ListExpandedDataSetsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest other = + (com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest 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.ListExpandedDataSetsRequest 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 ListExpandedDataSets RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest build() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result = + new com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.ListExpandedDataSetsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + 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.ListExpandedDataSetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + private static final com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExpandedDataSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.ListExpandedDataSetsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java new file mode 100644 index 000000000000..fae3bffeea76 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListExpandedDataSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java new file mode 100644 index 000000000000..e084e7c55c13 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java @@ -0,0 +1,1176 @@ +/* + * 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 ListExpandedDataSets RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsResponse} + */ +public final class ListExpandedDataSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + ListExpandedDataSetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExpandedDataSetsResponse.newBuilder() to construct. + private ListExpandedDataSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExpandedDataSetsResponse() { + expandedDataSets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExpandedDataSetsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.Builder.class); + } + + public static final int EXPANDED_DATA_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List expandedDataSets_; + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public java.util.List + getExpandedDataSetsList() { + return expandedDataSets_; + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public java.util.List + getExpandedDataSetsOrBuilderList() { + return expandedDataSets_; + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public int getExpandedDataSetsCount() { + return expandedDataSets_.size(); + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index) { + return expandedDataSets_.get(index); + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( + int index) { + return expandedDataSets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + 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 < expandedDataSets_.size(); i++) { + output.writeMessage(1, expandedDataSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expandedDataSets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expandedDataSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.ListExpandedDataSetsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse other = + (com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) obj; + + if (!getExpandedDataSetsList().equals(other.getExpandedDataSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExpandedDataSetsCount() > 0) { + hash = (37 * hash) + EXPANDED_DATA_SETS_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse 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.ListExpandedDataSetsResponse 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 ListExpandedDataSets RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expandedDataSetsBuilder_ == null) { + expandedDataSets_ = java.util.Collections.emptyList(); + } else { + expandedDataSets_ = null; + expandedDataSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ListExpandedDataSetsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse build() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result = + new com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result) { + if (expandedDataSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expandedDataSets_ = java.util.Collections.unmodifiableList(expandedDataSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expandedDataSets_ = expandedDataSets_; + } else { + result.expandedDataSets_ = expandedDataSetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.ListExpandedDataSetsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance()) + return this; + if (expandedDataSetsBuilder_ == null) { + if (!other.expandedDataSets_.isEmpty()) { + if (expandedDataSets_.isEmpty()) { + expandedDataSets_ = other.expandedDataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.addAll(other.expandedDataSets_); + } + onChanged(); + } + } else { + if (!other.expandedDataSets_.isEmpty()) { + if (expandedDataSetsBuilder_.isEmpty()) { + expandedDataSetsBuilder_.dispose(); + expandedDataSetsBuilder_ = null; + expandedDataSets_ = other.expandedDataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + expandedDataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpandedDataSetsFieldBuilder() + : null; + } else { + expandedDataSetsBuilder_.addAllMessages(other.expandedDataSets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ExpandedDataSet m = + input.readMessage( + com.google.analytics.admin.v1alpha.ExpandedDataSet.parser(), + extensionRegistry); + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(m); + } else { + expandedDataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List expandedDataSets_ = + java.util.Collections.emptyList(); + + private void ensureExpandedDataSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expandedDataSets_ = + new java.util.ArrayList( + expandedDataSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetsBuilder_; + + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public java.util.List + getExpandedDataSetsList() { + if (expandedDataSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expandedDataSets_); + } else { + return expandedDataSetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public int getExpandedDataSetsCount() { + if (expandedDataSetsBuilder_ == null) { + return expandedDataSets_.size(); + } else { + return expandedDataSetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index) { + if (expandedDataSetsBuilder_ == null) { + return expandedDataSets_.get(index); + } else { + return expandedDataSetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder setExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.set(index, value); + onChanged(); + } else { + expandedDataSetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder setExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.set(index, builderForValue.build()); + onChanged(); + } else { + expandedDataSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(value); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(index, value); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(builderForValue.build()); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(index, builderForValue.build()); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addAllExpandedDataSets( + java.lang.Iterable values) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expandedDataSets_); + onChanged(); + } else { + expandedDataSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder clearExpandedDataSets() { + if (expandedDataSetsBuilder_ == null) { + expandedDataSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expandedDataSetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder removeExpandedDataSets(int index) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.remove(index); + onChanged(); + } else { + expandedDataSetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetsBuilder( + int index) { + return getExpandedDataSetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( + int index) { + if (expandedDataSetsBuilder_ == null) { + return expandedDataSets_.get(index); + } else { + return expandedDataSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public java.util.List + getExpandedDataSetsOrBuilderList() { + if (expandedDataSetsBuilder_ != null) { + return expandedDataSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expandedDataSets_); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder addExpandedDataSetsBuilder() { + return getExpandedDataSetsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder addExpandedDataSetsBuilder( + int index) { + return getExpandedDataSetsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public java.util.List + getExpandedDataSetsBuilderList() { + return getExpandedDataSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetsFieldBuilder() { + if (expandedDataSetsBuilder_ == null) { + expandedDataSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + expandedDataSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + expandedDataSets_ = null; + } + return expandedDataSetsBuilder_; + } + + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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.ListExpandedDataSetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + private static final com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExpandedDataSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.ListExpandedDataSetsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java new file mode 100644 index 000000000000..446e7f499864 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListExpandedDataSetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + java.util.List getExpandedDataSetsList(); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + int getExpandedDataSetsCount(); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + java.util.List + getExpandedDataSetsOrBuilderList(); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java index 74d06fe12f43..fd97d4a1689d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java @@ -126,7 +126,7 @@ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() * *
    * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Developers Console as a Redirect URI
+   * Must be configured in Developers Console as a Redirect URI.
    * 
* * string redirect_uri = 2; @@ -150,7 +150,7 @@ public java.lang.String getRedirectUri() { * *
    * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Developers Console as a Redirect URI
+   * Must be configured in Developers Console as a Redirect URI.
    * 
* * string redirect_uri = 2; @@ -737,7 +737,7 @@ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() * *
      * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
+     * Must be configured in Developers Console as a Redirect URI.
      * 
* * string redirect_uri = 2; @@ -760,7 +760,7 @@ public java.lang.String getRedirectUri() { * *
      * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
+     * Must be configured in Developers Console as a Redirect URI.
      * 
* * string redirect_uri = 2; @@ -783,7 +783,7 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { * *
      * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
+     * Must be configured in Developers Console as a Redirect URI.
      * 
* * string redirect_uri = 2; @@ -805,7 +805,7 @@ public Builder setRedirectUri(java.lang.String value) { * *
      * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
+     * Must be configured in Developers Console as a Redirect URI.
      * 
* * string redirect_uri = 2; @@ -823,7 +823,7 @@ public Builder clearRedirectUri() { * *
      * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Developers Console as a Redirect URI
+     * Must be configured in Developers Console as a Redirect URI.
      * 
* * string redirect_uri = 2; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java index 126707fa468c..878316473444 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java @@ -63,7 +63,7 @@ public interface ProvisionAccountTicketRequestOrBuilder * *
    * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Developers Console as a Redirect URI
+   * Must be configured in Developers Console as a Redirect URI.
    * 
* * string redirect_uri = 2; @@ -76,7 +76,7 @@ public interface ProvisionAccountTicketRequestOrBuilder * *
    * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Developers Console as a Redirect URI
+   * Must be configured in Developers Console as a Redirect URI.
    * 
* * string redirect_uri = 2; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index c8ea1ba73d4a..48220e014fb3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -139,6 +139,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -451,70 +455,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "E_DECAY\020\006\022\034\n\030ADS_PREFERRED_LAST_CLICK\020\007:" + "a\352A^\n1analyticsadmin.googleapis.com/Attr" + "ibutionSettings\022)properties/{property}/a" - + "ttributionSettings\"\344\002\n\014BigQueryLink\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022\024\n\007project\030\002 \001(\tB\003\340A\005\0224\n\013" - + "create_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\034\n\024daily_export_enabled\030\004 \001(\010" - + "\022 \n\030streaming_export_enabled\030\005 \001(\010\022\036\n\026in" - + "clude_advertising_id\030\006 \001(\010\022\026\n\016export_str" - + "eams\030\007 \003(\t\022\027\n\017excluded_events\030\010 \003(\t:d\352Aa" - + "\n*analyticsadmin.googleapis.com/BigQuery" - + "Link\0223properties/{property}/bigQueryLink" - + "s/{bigquery_link}*\252\004\n\020IndustryCategory\022!" - + "\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUT" - + "OMOTIVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MAR" - + "KETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nT" - + "ECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026AR" - + "TS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FIT" - + "NESS\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_L" - + "EISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNE" - + "T_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020\022" - + "\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PEO" - + "PLE_AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022" - + "\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIEN" - + "CE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020\031" - + "\022\014\n\010SHOPPING\020\032*f\n\014ServiceLevel\022\035\n\031SERVIC" - + "E_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTIC" - + "S_STANDARD\020\001\022\030\n\024GOOGLE_ANALYTICS_360\020\002*J" - + "\n\tActorType\022\032\n\026ACTOR_TYPE_UNSPECIFIED\020\000\022" - + "\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nAc" - + "tionType\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\013\n" - + "\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003*\353\003\n" - + "\031ChangeHistoryResourceType\022,\n(CHANGE_HIS" - + "TORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACCO" - + "UNT\020\001\022\014\n\010PROPERTY\020\002\022\021\n\rFIREBASE_LINK\020\006\022\023" - + "\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNALS_SE" - + "TTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEASUR" - + "EMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIMENS" - + "ION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETENTI" - + "ON_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_ADVER" - + "TISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_ADVERT" - + "ISER_LINK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_360_L" - + "INK\020\020\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_SE" - + "TTINGS\020\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rCHANN" - + "EL_GROUP\020\026*s\n\022GoogleSignalsState\022$\n GOOG" - + "LE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGLE" - + "_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DIS" - + "ABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOOG" - + "LE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOOG" - + "LE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGLE" - + "_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035Link" - + "ProposalInitiatingProduct\0220\n,LINK_PROPOS" - + "AL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022\024\n\020G" - + "OOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020\002*\304\001" - + "\n\021LinkProposalState\022#\n\037LINK_PROPOSAL_STA" - + "TE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_FROM" - + "_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVIEW_F" - + "ROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010D" - + "ECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006*\202\001\n" - + "\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPECIFI" - + "ED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031PROP" - + "ERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_TYPE" - + "_ROLLUP\020\003B{\n\"com.google.analytics.admin." - + "v1alphaB\016ResourcesProtoP\001ZCgoogle.golang" - + ".org/genproto/googleapis/analytics/admin" - + "/v1alpha;adminb\006proto3" + + "ttributionSettings\"\361\001\n\rAccessBinding\022\016\n\004" + + "user\030\002 \001(\tH\000\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\r\n\005roles" + + "\030\003 \003(\t:\234\001\352A\230\001\n+analyticsadmin.googleapis" + + ".com/AccessBinding\0222accounts/{account}/a" + + "ccessBindings/{access_binding}\0225properti" + + "es/{property}/accessBindings/{access_bin" + + "ding}B\017\n\raccess_target\"\344\002\n\014BigQueryLink\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007project\030\002 \001(\tB\003\340A\005" + + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\034\n\024daily_export_enabled\030\004" + + " \001(\010\022 \n\030streaming_export_enabled\030\005 \001(\010\022\036" + + "\n\026include_advertising_id\030\006 \001(\010\022\026\n\016export" + + "_streams\030\007 \003(\t\022\027\n\017excluded_events\030\010 \003(\t:" + + "d\352Aa\n*analyticsadmin.googleapis.com/BigQ" + + "ueryLink\0223properties/{property}/bigQuery" + + "Links/{bigquery_link}*\252\004\n\020IndustryCatego" + + "ry\022!\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n" + + "\nAUTOMOTIVE\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\nTECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032" + + "\n\026ARTS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND" + + "_FITNESS\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016" + + "FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_A" + + "ND_LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INT" + + "ERNET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMEN" + + "T\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n" + + "\022PEOPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMAL" + + "S\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007S" + + "CIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATI" + + "ON\020\031\022\014\n\010SHOPPING\020\032*f\n\014ServiceLevel\022\035\n\031SE" + + "RVICE_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANAL" + + "YTICS_STANDARD\020\001\022\030\n\024GOOGLE_ANALYTICS_360" + + "\020\002*J\n\tActorType\022\032\n\026ACTOR_TYPE_UNSPECIFIE" + + "D\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUPPORT\020\003*P" + + "\n\nActionType\022\033\n\027ACTION_TYPE_UNSPECIFIED\020" + + "\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003" + + "*\353\003\n\031ChangeHistoryResourceType\022,\n(CHANGE" + + "_HISTORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007" + + "ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\021\n\rFIREBASE_LINK" + + "\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNAL" + + "S_SETTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033ME" + + "ASUREMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DI" + + "MENSION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RET" + + "ENTION_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_A" + + "DVERTISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_AD" + + "VERTISER_LINK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_3" + + "60_LINK\020\020\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTIO" + + "N_SETTINGS\020\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rC" + + "HANNEL_GROUP\020\026*s\n\022GoogleSignalsState\022$\n " + + "GOOGLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GO" + + "OGLE_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS" + + "_DISABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"" + + "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n " + + "GOOGLE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GO" + + "OGLE_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035" + + "LinkProposalInitiatingProduct\0220\n,LINK_PR" + + "OPOSAL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022" + + "\024\n\020GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020" + + "\002*\304\001\n\021LinkProposalState\022#\n\037LINK_PROPOSAL" + + "_STATE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_" + + "FROM_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVI" + + "EW_FROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022" + + "\014\n\010DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006" + + "*\202\001\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPE" + + "CIFIED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031" + + "PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_" + + "TYPE_ROLLUP\020\003B{\n\"com.google.analytics.ad" + + "min.v1alphaB\016ResourcesProtoP\001ZCgoogle.go" + + "lang.org/genproto/googleapis/analytics/a" + + "dmin/v1alpha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -838,8 +848,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OtherConversionEventLookbackWindow", "ReportingAttributionModel", }); - internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor = + internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor, + new java.lang.String[] { + "User", "Name", "Roles", "AccessTarget", + }); + internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor = + getDescriptor().getMessageTypes().get(25); internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor, diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java index e75003411c73..aa9c9a06507f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java @@ -378,7 +378,7 @@ public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRanges * * *
-   * Dimension filters allow you to restrict report response to specific
+   * Dimension filters let you restrict report response to specific
    * dimension values which match the filter. For example, filtering on access
    * records of a single user. To learn more, see [Fundamentals of Dimension
    * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -397,7 +397,7 @@ public boolean hasDimensionFilter() {
    *
    *
    * 
-   * Dimension filters allow you to restrict report response to specific
+   * Dimension filters let you restrict report response to specific
    * dimension values which match the filter. For example, filtering on access
    * records of a single user. To learn more, see [Fundamentals of Dimension
    * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -418,7 +418,7 @@ public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFil
    *
    *
    * 
-   * Dimension filters allow you to restrict report response to specific
+   * Dimension filters let you restrict report response to specific
    * dimension values which match the filter. For example, filtering on access
    * records of a single user. To learn more, see [Fundamentals of Dimension
    * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2770,7 +2770,7 @@ public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesB
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2788,7 +2788,7 @@ public boolean hasDimensionFilter() {
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2812,7 +2812,7 @@ public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFil
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2839,7 +2839,7 @@ public Builder setDimensionFilter(
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2863,7 +2863,7 @@ public Builder setDimensionFilter(
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2894,7 +2894,7 @@ public Builder mergeDimensionFilter(
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2917,7 +2917,7 @@ public Builder clearDimensionFilter() {
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2936,7 +2936,7 @@ public Builder clearDimensionFilter() {
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -2959,7 +2959,7 @@ public Builder clearDimensionFilter() {
      *
      *
      * 
-     * Dimension filters allow you to restrict report response to specific
+     * Dimension filters let you restrict report response to specific
      * dimension values which match the filter. For example, filtering on access
      * records of a single user. To learn more, see [Fundamentals of Dimension
      * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java
index a5181e0abd9b..3e2a55c26534 100644
--- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java
@@ -242,7 +242,7 @@ public interface RunAccessReportRequestOrBuilder
    *
    *
    * 
-   * Dimension filters allow you to restrict report response to specific
+   * Dimension filters let you restrict report response to specific
    * dimension values which match the filter. For example, filtering on access
    * records of a single user. To learn more, see [Fundamentals of Dimension
    * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -258,7 +258,7 @@ public interface RunAccessReportRequestOrBuilder
    *
    *
    * 
-   * Dimension filters allow you to restrict report response to specific
+   * Dimension filters let you restrict report response to specific
    * dimension values which match the filter. For example, filtering on access
    * records of a single user. To learn more, see [Fundamentals of Dimension
    * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
@@ -274,7 +274,7 @@ public interface RunAccessReportRequestOrBuilder
    *
    *
    * 
-   * Dimension filters allow you to restrict report response to specific
+   * Dimension filters let you restrict report response to specific
    * dimension values which match the filter. For example, filtering on access
    * records of a single user. To learn more, see [Fundamentals of Dimension
    * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java
new file mode 100644
index 000000000000..b28e9c8a18c2
--- /dev/null
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java
@@ -0,0 +1,742 @@
+/*
+ * 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 UpdateAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccessBindingRequest} + */ +public final class UpdateAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + UpdateAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAccessBindingRequest.newBuilder() to construct. + private UpdateAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAccessBindingRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAccessBindingRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder.class); + } + + public static final int ACCESS_BINDING_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + @java.lang.Override + public boolean hasAccessBinding() { + return accessBinding_ != null; + } + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + + 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 (accessBinding_ != null) { + output.writeMessage(1, getAccessBinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (accessBinding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccessBinding()); + } + size += getUnknownFields().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.UpdateAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) obj; + + if (hasAccessBinding() != other.hasAccessBinding()) return false; + if (hasAccessBinding()) { + if (!getAccessBinding().equals(other.getAccessBinding())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAccessBinding()) { + hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAccessBinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest 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.UpdateAccessBindingRequest 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 UpdateAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessBinding_ = + accessBindingBuilder_ == null ? accessBinding_ : accessBindingBuilder_.build(); + } + } + + @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.UpdateAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()) + return this; + if (other.hasAccessBinding()) { + mergeAccessBinding(other.getAccessBinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccessBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingBuilder_; + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + public boolean hasAccessBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + if (accessBindingBuilder_ == null) { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } else { + return accessBindingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessBinding_ = value; + } else { + accessBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingBuilder_ == null) { + accessBinding_ = builderForValue.build(); + } else { + accessBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && accessBinding_ != null + && accessBinding_ + != com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) { + getAccessBindingBuilder().mergeFrom(value); + } else { + accessBinding_ = value; + } + } else { + accessBindingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessBinding() { + bitField0_ = (bitField0_ & ~0x00000001); + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAccessBindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + if (accessBindingBuilder_ != null) { + return accessBindingBuilder_.getMessageOrBuilder(); + } else { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingFieldBuilder() { + if (accessBindingBuilder_ == null) { + accessBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + getAccessBinding(), getParentForChildren(), isClean()); + accessBinding_ = null; + } + return accessBindingBuilder_; + } + + @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.UpdateAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.UpdateAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..569983b9395a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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 UpdateAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + boolean hasAccessBinding(); + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(); + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java index 50e1483f43cb..56080eb1279e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java @@ -131,8 +131,8 @@ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() * *
    * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
    * fields.
    * 
* @@ -150,8 +150,8 @@ public boolean hasUpdateMask() { * *
    * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
    * fields.
    * 
* @@ -169,8 +169,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
    * fields.
    * 
* @@ -784,8 +784,8 @@ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -802,8 +802,8 @@ public boolean hasUpdateMask() { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -826,8 +826,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -852,8 +852,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -875,8 +875,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -904,8 +904,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -927,8 +927,8 @@ public Builder clearUpdateMask() { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -945,8 +945,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* @@ -967,8 +967,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
      * fields.
      * 
* diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java index 0b227a0decbe..055882ec26ed 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java @@ -72,8 +72,8 @@ public interface UpdateAccountRequestOrBuilder * *
    * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
    * fields.
    * 
* @@ -88,8 +88,8 @@ public interface UpdateAccountRequestOrBuilder * *
    * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
    * fields.
    * 
* @@ -104,8 +104,8 @@ public interface UpdateAccountRequestOrBuilder * *
    * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
    * fields.
    * 
* diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java new file mode 100644 index 000000000000..0ae113e0c1d3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java @@ -0,0 +1,1078 @@ +/* + * 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 UpdateExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest} + */ +public final class UpdateExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + UpdateExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExpandedDataSetRequest.newBuilder() to construct. + private UpdateExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExpandedDataSetRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExpandedDataSetRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.Builder.class); + } + + public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + @java.lang.Override + public boolean hasExpandedDataSet() { + return expandedDataSet_ != null; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (expandedDataSet_ != null) { + output.writeMessage(1, getExpandedDataSet()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (expandedDataSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpandedDataSet()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().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.UpdateExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) obj; + + if (hasExpandedDataSet() != other.hasExpandedDataSet()) return false; + if (hasExpandedDataSet()) { + if (!getExpandedDataSet().equals(other.getExpandedDataSet())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExpandedDataSet()) { + hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSet().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest 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.UpdateExpandedDataSetRequest 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 UpdateExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expandedDataSet_ = + expandedDataSetBuilder_ == null ? expandedDataSet_ : expandedDataSetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @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.UpdateExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance()) + return this; + if (other.hasExpandedDataSet()) { + mergeExpandedDataSet(other.getExpandedDataSet()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExpandedDataSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetBuilder_; + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + public boolean hasExpandedDataSet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + if (expandedDataSetBuilder_ == null) { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } else { + return expandedDataSetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expandedDataSet_ = value; + } else { + expandedDataSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetBuilder_ == null) { + expandedDataSet_ = builderForValue.build(); + } else { + expandedDataSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expandedDataSet_ != null + && expandedDataSet_ + != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { + getExpandedDataSetBuilder().mergeFrom(value); + } else { + expandedDataSet_ = value; + } + } else { + expandedDataSetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpandedDataSet() { + bitField0_ = (bitField0_ & ~0x00000001); + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExpandedDataSetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder + getExpandedDataSetOrBuilder() { + if (expandedDataSetBuilder_ != null) { + return expandedDataSetBuilder_.getMessageOrBuilder(); + } else { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetFieldBuilder() { + if (expandedDataSetBuilder_ == null) { + expandedDataSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + getExpandedDataSet(), getParentForChildren(), isClean()); + expandedDataSet_ = null; + } + return expandedDataSetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.UpdateExpandedDataSetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..b5975456fa17 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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 UpdateExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + boolean hasExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index dbba107286f5..0e9d7a9615e2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -18,6 +18,7 @@ package google.analytics.admin.v1alpha; import "google/analytics/admin/v1alpha/access_report.proto"; import "google/analytics/admin/v1alpha/audience.proto"; +import "google/analytics/admin/v1alpha/expanded_data_set.proto"; import "google/analytics/admin/v1alpha/resources.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; @@ -427,7 +428,8 @@ service AnalyticsAdminService { // Acknowledges the terms of user data collection for the specified property. // // This acknowledgement must be completed (either in the Google Analytics UI - // or via this API) before MeasurementProtocolSecret resources may be created. + // or through this API) before MeasurementProtocolSecret resources may be + // created. rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { option (google.api.http) = { @@ -919,6 +921,168 @@ service AnalyticsAdminService { }; } + // Creates an access binding on an account or property. + rpc CreateAccessBinding(CreateAccessBindingRequest) returns (AccessBinding) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/accessBindings" + body: "access_binding" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/accessBindings" + body: "access_binding" + } + }; + option (google.api.method_signature) = "parent,access_binding"; + } + + // Gets information about an access binding. + rpc GetAccessBinding(GetAccessBindingRequest) returns (AccessBinding) { + option (google.api.http) = { + get: "/v1alpha/{name=accounts/*/accessBindings/*}" + additional_bindings { + get: "/v1alpha/{name=properties/*/accessBindings/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates an access binding on an account or property. + rpc UpdateAccessBinding(UpdateAccessBindingRequest) returns (AccessBinding) { + option (google.api.http) = { + patch: "/v1alpha/{access_binding.name=accounts/*/accessBindings/*}" + body: "access_binding" + additional_bindings { + patch: "/v1alpha/{access_binding.name=properties/*/accessBindings/*}" + body: "access_binding" + } + }; + option (google.api.method_signature) = "access_binding"; + } + + // Deletes an access binding on an account or property. + rpc DeleteAccessBinding(DeleteAccessBindingRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=accounts/*/accessBindings/*}" + additional_bindings { + delete: "/v1alpha/{name=properties/*/accessBindings/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists all access bindings on an account or property. + rpc ListAccessBindings(ListAccessBindingsRequest) + returns (ListAccessBindingsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=accounts/*}/accessBindings" + additional_bindings { + get: "/v1alpha/{parent=properties/*}/accessBindings" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Creates information about multiple access bindings to an account or + // property. + // + // This method is transactional. If any AccessBinding cannot be created, none + // of the AccessBindings will be created. + rpc BatchCreateAccessBindings(BatchCreateAccessBindingsRequest) + returns (BatchCreateAccessBindingsResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/accessBindings:batchCreate" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/accessBindings:batchCreate" + body: "*" + } + }; + } + + // Gets information about multiple access bindings to an account or property. + rpc BatchGetAccessBindings(BatchGetAccessBindingsRequest) + returns (BatchGetAccessBindingsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=accounts/*}/accessBindings:batchGet" + additional_bindings { + get: "/v1alpha/{parent=properties/*}/accessBindings:batchGet" + } + }; + } + + // Updates information about multiple access bindings to an account or + // property. + rpc BatchUpdateAccessBindings(BatchUpdateAccessBindingsRequest) + returns (BatchUpdateAccessBindingsResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/accessBindings:batchUpdate" + body: "*" + } + }; + } + + // Deletes information about multiple users' links to an account or property. + rpc BatchDeleteAccessBindings(BatchDeleteAccessBindingsRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{parent=accounts/*}/accessBindings:batchDelete" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=properties/*}/accessBindings:batchDelete" + body: "*" + } + }; + } + + // Lookup for a single ExpandedDataSet. + rpc GetExpandedDataSet(GetExpandedDataSetRequest) returns (ExpandedDataSet) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/expandedDataSets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists ExpandedDataSets on a property. + rpc ListExpandedDataSets(ListExpandedDataSetsRequest) + returns (ListExpandedDataSetsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/expandedDataSets" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a ExpandedDataSet. + rpc CreateExpandedDataSet(CreateExpandedDataSetRequest) + returns (ExpandedDataSet) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/expandedDataSets" + body: "expanded_data_set" + }; + option (google.api.method_signature) = "parent,expanded_data_set"; + } + + // Updates a ExpandedDataSet on a property. + rpc UpdateExpandedDataSet(UpdateExpandedDataSetRequest) + returns (ExpandedDataSet) { + option (google.api.http) = { + patch: "/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}" + body: "expanded_data_set" + }; + option (google.api.method_signature) = "expanded_data_set,update_mask"; + } + + // Deletes a ExpandedDataSet on a property. + rpc DeleteExpandedDataSet(DeleteExpandedDataSetRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/expandedDataSets/*}" + }; + option (google.api.method_signature) = "name"; + } + // Sets the opt out status for the automated GA4 setup process for a UA // property. // Note: this has no effect on GA4 property. @@ -983,7 +1147,7 @@ message RunAccessReportRequest { // to 2 date ranges. repeated AccessDateRange date_ranges = 4; - // Dimension filters allow you to restrict report response to specific + // Dimension filters let you restrict report response to specific // dimension values which match the filter. For example, filtering on access // records of a single user. To learn more, see [Fundamentals of Dimension // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) @@ -1127,8 +1291,8 @@ message UpdateAccountRequest { Account account = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The list of fields to be updated. Field names must be in snake - // case (e.g., "field_to_update"). Omitted fields will not be updated. To - // replace the entire entity, use one path with the string "*" to match all + // case (for example, "field_to_update"). Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match all // fields. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; @@ -1140,7 +1304,7 @@ message ProvisionAccountTicketRequest { Account account = 1; // Redirect URI where the user will be sent after accepting Terms of Service. - // Must be configured in Developers Console as a Redirect URI + // Must be configured in Developers Console as a Redirect URI. string redirect_uri = 2; } @@ -2598,6 +2762,284 @@ message UpdateAttributionSettingsRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for GetAccessBinding RPC. +message GetAccessBindingRequest { + // Required. The name of the access binding to retrieve. + // Formats: + // - accounts/{account}/accessBindings/{accessBinding} + // - properties/{property}/accessBindings/{accessBinding} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; +} + +// Request message for BatchGetAccessBindings RPC. +message BatchGetAccessBindingsRequest { + // Required. The account or property that owns the access bindings. The parent + // of all provided values for the 'names' field must match this field. + // Formats: + // - accounts/{account} + // - properties/{property} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; + + // Required. The names of the access bindings to retrieve. + // A maximum of 1000 access bindings can be retrieved in a batch. + // Formats: + // - accounts/{account}/accessBindings/{accessBinding} + // - properties/{property}/accessBindings/{accessBinding} + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; +} + +// Response message for BatchGetAccessBindings RPC. +message BatchGetAccessBindingsResponse { + // The requested access bindings. + repeated AccessBinding access_bindings = 1; +} + +// Request message for ListAccessBindings RPC. +message ListAccessBindingsRequest { + // Required. Formats: + // - accounts/{account} + // - properties/{property} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; + + // The maximum number of access bindings to return. + // The service may return fewer than this value. + // If unspecified, at most 200 access bindings will be returned. + // The maximum value is 500; values above 500 will be coerced to 500. + int32 page_size = 2; + + // A page token, received from a previous `ListAccessBindings` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListAccessBindings` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListAccessBindings RPC. +message ListAccessBindingsResponse { + // List of AccessBindings. These will be ordered stably, but in an arbitrary + // order. + repeated AccessBinding access_bindings = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for CreateAccessBinding RPC. +message CreateAccessBindingRequest { + // Required. Formats: + // - accounts/{account} + // - properties/{property} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; + + // Required. The access binding to create. + AccessBinding access_binding = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for BatchCreateAccessBindings RPC. +message BatchCreateAccessBindingsRequest { + // Required. The account or property that owns the access bindings. The parent + // field in the CreateAccessBindingRequest messages must either be empty or + // match this field. Formats: + // - accounts/{account} + // - properties/{property} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; + + // Required. The requests specifying the access bindings to create. + // A maximum of 1000 access bindings can be created in a batch. + repeated CreateAccessBindingRequest requests = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for BatchCreateAccessBindings RPC. +message BatchCreateAccessBindingsResponse { + // The access bindings created. + repeated AccessBinding access_bindings = 1; +} + +// Request message for UpdateAccessBinding RPC. +message UpdateAccessBindingRequest { + // Required. The access binding to update. + AccessBinding access_binding = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for BatchUpdateAccessBindings RPC. +message BatchUpdateAccessBindingsRequest { + // Required. The account or property that owns the access bindings. The parent + // field in the UpdateAccessBindingRequest messages must either be empty or + // match this field. Formats: + // - accounts/{account} + // - properties/{property} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; + + // Required. The requests specifying the access bindings to update. + // A maximum of 1000 access bindings can be updated in a batch. + repeated UpdateAccessBindingRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for BatchUpdateAccessBindings RPC. +message BatchUpdateAccessBindingsResponse { + // The access bindings updated. + repeated AccessBinding access_bindings = 1; +} + +// Request message for DeleteAccessBinding RPC. +message DeleteAccessBindingRequest { + // Required. Formats: + // - accounts/{account}/accessBindings/{accessBinding} + // - properties/{property}/accessBindings/{accessBinding} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; +} + +// Request message for BatchDeleteAccessBindings RPC. +message BatchDeleteAccessBindingsRequest { + // Required. The account or property that owns the access bindings. The parent + // field in the DeleteAccessBindingRequest messages must either be empty or + // match this field. Formats: + // - accounts/{account} + // - properties/{property} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AccessBinding" + } + ]; + + // Required. The requests specifying the access bindings to delete. + // A maximum of 1000 access bindings can be deleted in a batch. + repeated DeleteAccessBindingRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for CreateExpandedDataSet RPC. +message CreateExpandedDataSetRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ExpandedDataSet" + } + ]; + + // Required. The ExpandedDataSet to create. + ExpandedDataSet expanded_data_set = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateExpandedDataSet RPC. +message UpdateExpandedDataSetRequest { + // Required. The ExpandedDataSet to update. + // The resource's `name` field is used to identify the ExpandedDataSet to be + // updated. + ExpandedDataSet expanded_data_set = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteExpandedDataSet RPC. +message DeleteExpandedDataSetRequest { + // Required. Example format: properties/1234/expandedDataSets/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ExpandedDataSet" + } + ]; +} + +// Request message for GetExpandedDataSet RPC. +message GetExpandedDataSetRequest { + // Required. The name of the Audience to get. + // Example format: properties/1234/expandedDataSets/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ExpandedDataSet" + } + ]; +} + +// Request message for ListExpandedDataSets RPC. +message ListExpandedDataSetsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ExpandedDataSet" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListExpandedDataSets` call. Provide + // this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListExpandedDataSet` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListExpandedDataSets RPC. +message ListExpandedDataSetsResponse { + // List of ExpandedDataSet. These will be ordered stably, but in an arbitrary + // order. + repeated ExpandedDataSet expanded_data_sets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // Request for setting the opt out status for the automated GA4 setup process. message SetAutomatedGa4ConfigurationOptOutRequest { // Required. The UA property to set the opt out status. Note this request uses diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index eb968d9c8a50..a035611d95a5 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -1394,6 +1394,45 @@ message AttributionSettings { [(google.api.field_behavior) = REQUIRED]; } +// A binding of a user to a set of roles. +message AccessBinding { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AccessBinding" + pattern: "accounts/{account}/accessBindings/{access_binding}" + pattern: "properties/{property}/accessBindings/{access_binding}" + }; + + // The target for which to set roles for. + oneof access_target { + // If set, the email address of the user to set roles for. + // Format: "someuser@gmail.com" + string user = 2; + } + + // Output only. Resource name of this binding. + // + // Format: accounts/{account}/accessBindings/{access_binding} or + // properties/{property}/accessBindings/{access_binding} + // + // Example: + // "accounts/100/accessBindings/200" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A list of roles for to grant to the parent resource. + // + // Valid values: + // predefinedRoles/viewer + // predefinedRoles/analyst + // predefinedRoles/editor + // predefinedRoles/admin + // predefinedRoles/no-cost-data + // predefinedRoles/no-revenue-data + // + // For users, if an empty list of roles is set, this AccessBinding will be + // deleted. + repeated string roles = 3; +} + // A link between a GA4 Property and BigQuery project. message BigQueryLink { option (google.api.resource) = { diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java new file mode 100644 index 000000000000..e1dbebb01037 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_async] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateAccessBindings { + + public static void main(String[] args) throws Exception { + asyncBatchCreateAccessBindings(); + } + + public static void asyncBatchCreateAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.batchCreateAccessBindingsCallable().futureCall(request); + // Do something. + BatchCreateAccessBindingsResponse response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java new file mode 100644 index 000000000000..4209c78b1ddb --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; +import java.util.ArrayList; + +public class SyncBatchCreateAccessBindings { + + public static void main(String[] args) throws Exception { + syncBatchCreateAccessBindings(); + } + + public static void syncBatchCreateAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateAccessBindingsResponse response = + analyticsAdminServiceClient.batchCreateAccessBindings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java new file mode 100644 index 000000000000..23a037514585 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_async] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; +import java.util.ArrayList; + +public class AsyncBatchDeleteAccessBindings { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteAccessBindings(); + } + + public static void asyncBatchDeleteAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.batchDeleteAccessBindingsCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java new file mode 100644 index 000000000000..a19900760327 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; +import com.google.protobuf.Empty; +import java.util.ArrayList; + +public class SyncBatchDeleteAccessBindings { + + public static void main(String[] args) throws Exception { + syncBatchDeleteAccessBindings(); + } + + public static void syncBatchDeleteAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + analyticsAdminServiceClient.batchDeleteAccessBindings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java new file mode 100644 index 000000000000..a73e2479471c --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_async] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchGetAccessBindings { + + public static void main(String[] args) throws Exception { + asyncBatchGetAccessBindings(); + } + + public static void asyncBatchGetAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.batchGetAccessBindingsCallable().futureCall(request); + // Do something. + BatchGetAccessBindingsResponse response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java new file mode 100644 index 000000000000..92b46acac67e --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; +import java.util.ArrayList; + +public class SyncBatchGetAccessBindings { + + public static void main(String[] args) throws Exception { + syncBatchGetAccessBindings(); + } + + public static void syncBatchGetAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchGetAccessBindingsResponse response = + analyticsAdminServiceClient.batchGetAccessBindings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java new file mode 100644 index 000000000000..62b048c271c3 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_async] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateAccessBindings { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateAccessBindings(); + } + + public static void asyncBatchUpdateAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.batchUpdateAccessBindingsCallable().futureCall(request); + // Do something. + BatchUpdateAccessBindingsResponse response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java new file mode 100644 index 000000000000..0d17d78443ae --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateAccessBindings { + + public static void main(String[] args) throws Exception { + syncBatchUpdateAccessBindings(); + } + + public static void syncBatchUpdateAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateAccessBindingsResponse response = + analyticsAdminServiceClient.batchUpdateAccessBindings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java new file mode 100644 index 000000000000..a38ede21b254 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_async] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; +import com.google.api.core.ApiFuture; + +public class AsyncCreateAccessBinding { + + public static void main(String[] args) throws Exception { + asyncCreateAccessBinding(); + } + + public static void asyncCreateAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .setAccessBinding(AccessBinding.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.createAccessBindingCallable().futureCall(request); + // Do something. + AccessBinding response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java new file mode 100644 index 000000000000..cbb2c42c6d5d --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; + +public class SyncCreateAccessBinding { + + public static void main(String[] args) throws Exception { + syncCreateAccessBinding(); + } + + public static void syncCreateAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .setAccessBinding(AccessBinding.newBuilder().build()) + .build(); + AccessBinding response = analyticsAdminServiceClient.createAccessBinding(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java new file mode 100644 index 000000000000..90c483d7048f --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_AccountnameAccessbinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncCreateAccessBindingAccountnameAccessbinding { + + public static void main(String[] args) throws Exception { + syncCreateAccessBindingAccountnameAccessbinding(); + } + + public static void syncCreateAccessBindingAccountnameAccessbinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + AccessBinding response = + analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_AccountnameAccessbinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java new file mode 100644 index 000000000000..a1fde73e353f --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_PropertynameAccessbinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncCreateAccessBindingPropertynameAccessbinding { + + public static void main(String[] args) throws Exception { + syncCreateAccessBindingPropertynameAccessbinding(); + } + + public static void syncCreateAccessBindingPropertynameAccessbinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + AccessBinding response = + analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_PropertynameAccessbinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java new file mode 100644 index 000000000000..7397f2440a42 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_StringAccessbinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncCreateAccessBindingStringAccessbinding { + + public static void main(String[] args) throws Exception { + syncCreateAccessBindingStringAccessbinding(); + } + + public static void syncCreateAccessBindingStringAccessbinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = AccountName.of("[ACCOUNT]").toString(); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + AccessBinding response = + analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_StringAccessbinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java new file mode 100644 index 000000000000..8befd3ddbcff --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateExpandedDataSet { + + public static void main(String[] args) throws Exception { + asyncCreateExpandedDataSet(); + } + + public static void asyncCreateExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateExpandedDataSetRequest request = + CreateExpandedDataSetRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.createExpandedDataSetCallable().futureCall(request); + // Do something. + ExpandedDataSet response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java new file mode 100644 index 000000000000..5454e8360a02 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncCreateExpandedDataSet { + + public static void main(String[] args) throws Exception { + syncCreateExpandedDataSet(); + } + + public static void syncCreateExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateExpandedDataSetRequest request = + CreateExpandedDataSetRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + .build(); + ExpandedDataSet response = analyticsAdminServiceClient.createExpandedDataSet(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java new file mode 100644 index 000000000000..71668df69626 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_PropertynameExpandeddataset_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncCreateExpandedDataSetPropertynameExpandeddataset { + + public static void main(String[] args) throws Exception { + syncCreateExpandedDataSetPropertynameExpandeddataset(); + } + + public static void syncCreateExpandedDataSetPropertynameExpandeddataset() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + ExpandedDataSet response = + analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_PropertynameExpandeddataset_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java new file mode 100644 index 000000000000..16086157a533 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_StringExpandeddataset_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncCreateExpandedDataSetStringExpandeddataset { + + public static void main(String[] args) throws Exception { + syncCreateExpandedDataSetStringExpandeddataset(); + } + + public static void syncCreateExpandedDataSetStringExpandeddataset() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = PropertyName.of("[PROPERTY]").toString(); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + ExpandedDataSet response = + analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_StringExpandeddataset_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java new file mode 100644 index 000000000000..749dde2a4dcf --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_async] +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; + +public class AsyncDeleteAccessBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteAccessBinding(); + } + + public static void asyncDeleteAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteAccessBindingRequest request = + DeleteAccessBindingRequest.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.deleteAccessBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java new file mode 100644 index 000000000000..782237d37719 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAccessBinding { + + public static void main(String[] args) throws Exception { + syncDeleteAccessBinding(); + } + + public static void syncDeleteAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteAccessBindingRequest request = + DeleteAccessBindingRequest.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .build(); + analyticsAdminServiceClient.deleteAccessBinding(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java new file mode 100644 index 000000000000..9e3d963a271a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_Accessbindingname_sync] +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAccessBindingAccessbindingname { + + public static void main(String[] args) throws Exception { + syncDeleteAccessBindingAccessbindingname(); + } + + public static void syncDeleteAccessBindingAccessbindingname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + analyticsAdminServiceClient.deleteAccessBinding(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_Accessbindingname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java new file mode 100644 index 000000000000..6e674de35797 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_String_sync] +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAccessBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteAccessBindingString(); + } + + public static void syncDeleteAccessBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); + analyticsAdminServiceClient.deleteAccessBinding(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java new file mode 100644 index 000000000000..8ff761086d43 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; +import com.google.api.core.ApiFuture; +import com.google.protobuf.Empty; + +public class AsyncDeleteExpandedDataSet { + + public static void main(String[] args) throws Exception { + asyncDeleteExpandedDataSet(); + } + + public static void asyncDeleteExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteExpandedDataSetRequest request = + DeleteExpandedDataSetRequest.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.deleteExpandedDataSetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java new file mode 100644 index 000000000000..7e04bad7125a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; +import com.google.protobuf.Empty; + +public class SyncDeleteExpandedDataSet { + + public static void main(String[] args) throws Exception { + syncDeleteExpandedDataSet(); + } + + public static void syncDeleteExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteExpandedDataSetRequest request = + DeleteExpandedDataSetRequest.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .build(); + analyticsAdminServiceClient.deleteExpandedDataSet(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java new file mode 100644 index 000000000000..0c917107f1ea --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_Expandeddatasetname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; +import com.google.protobuf.Empty; + +public class SyncDeleteExpandedDataSetExpandeddatasetname { + + public static void main(String[] args) throws Exception { + syncDeleteExpandedDataSetExpandeddatasetname(); + } + + public static void syncDeleteExpandedDataSetExpandeddatasetname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + analyticsAdminServiceClient.deleteExpandedDataSet(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_Expandeddatasetname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java new file mode 100644 index 000000000000..c55619f3210b --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; +import com.google.protobuf.Empty; + +public class SyncDeleteExpandedDataSetString { + + public static void main(String[] args) throws Exception { + syncDeleteExpandedDataSetString(); + } + + public static void syncDeleteExpandedDataSetString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString(); + analyticsAdminServiceClient.deleteExpandedDataSet(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java new file mode 100644 index 000000000000..bdaf3e8976dd --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_async] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetAccessBinding { + + public static void main(String[] args) throws Exception { + asyncGetAccessBinding(); + } + + public static void asyncGetAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetAccessBindingRequest request = + GetAccessBindingRequest.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getAccessBindingCallable().futureCall(request); + // Do something. + AccessBinding response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java new file mode 100644 index 000000000000..785f1d90c172 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; + +public class SyncGetAccessBinding { + + public static void main(String[] args) throws Exception { + syncGetAccessBinding(); + } + + public static void syncGetAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetAccessBindingRequest request = + GetAccessBindingRequest.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .build(); + AccessBinding response = analyticsAdminServiceClient.getAccessBinding(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java new file mode 100644 index 000000000000..5e62260eb014 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_Accessbindingname_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncGetAccessBindingAccessbindingname { + + public static void main(String[] args) throws Exception { + syncGetAccessBindingAccessbindingname(); + } + + public static void syncGetAccessBindingAccessbindingname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_Accessbindingname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java new file mode 100644 index 000000000000..41901a83b2a2 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_String_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccessBindingName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncGetAccessBindingString { + + public static void main(String[] args) throws Exception { + syncGetAccessBindingString(); + } + + public static void syncGetAccessBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); + AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java new file mode 100644 index 000000000000..c7fc7e38b773 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetExpandedDataSet { + + public static void main(String[] args) throws Exception { + asyncGetExpandedDataSet(); + } + + public static void asyncGetExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetExpandedDataSetRequest request = + GetExpandedDataSetRequest.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getExpandedDataSetCallable().futureCall(request); + // Do something. + ExpandedDataSet response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java new file mode 100644 index 000000000000..99fc295461b7 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; + +public class SyncGetExpandedDataSet { + + public static void main(String[] args) throws Exception { + syncGetExpandedDataSet(); + } + + public static void syncGetExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetExpandedDataSetRequest request = + GetExpandedDataSetRequest.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .build(); + ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java new file mode 100644 index 000000000000..6fbf2a7e67b8 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_Expandeddatasetname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; + +public class SyncGetExpandedDataSetExpandeddatasetname { + + public static void main(String[] args) throws Exception { + syncGetExpandedDataSetExpandeddatasetname(); + } + + public static void syncGetExpandedDataSetExpandeddatasetname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_Expandeddatasetname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java new file mode 100644 index 000000000000..468142381268 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ExpandedDataSetName; + +public class SyncGetExpandedDataSetString { + + public static void main(String[] args) throws Exception { + syncGetExpandedDataSetString(); + } + + public static void syncGetExpandedDataSetString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString(); + ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java new file mode 100644 index 000000000000..cd41c288813a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_async] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.api.core.ApiFuture; + +public class AsyncListAccessBindings { + + public static void main(String[] args) throws Exception { + asyncListAccessBindings(); + } + + public static void asyncListAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + analyticsAdminServiceClient.listAccessBindingsPagedCallable().futureCall(request); + // Do something. + for (AccessBinding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java new file mode 100644 index 000000000000..7847aea832fe --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_Paged_async] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; +import com.google.common.base.Strings; + +public class AsyncListAccessBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListAccessBindingsPaged(); + } + + public static void asyncListAccessBindingsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAccessBindingsResponse response = + analyticsAdminServiceClient.listAccessBindingsCallable().call(request); + for (AccessBinding element : response.getAccessBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_Paged_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java new file mode 100644 index 000000000000..037d672de907 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; + +public class SyncListAccessBindings { + + public static void main(String[] args) throws Exception { + syncListAccessBindings(); + } + + public static void syncListAccessBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AccessBinding element : + analyticsAdminServiceClient.listAccessBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java new file mode 100644 index 000000000000..0619b2b908d1 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_Accountname_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncListAccessBindingsAccountname { + + public static void main(String[] args) throws Exception { + syncListAccessBindingsAccountname(); + } + + public static void syncListAccessBindingsAccountname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + AccountName parent = AccountName.of("[ACCOUNT]"); + for (AccessBinding element : + analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_Accountname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java new file mode 100644 index 000000000000..0cf20bfb2a25 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_Propertyname_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncListAccessBindingsPropertyname { + + public static void main(String[] args) throws Exception { + syncListAccessBindingsPropertyname(); + } + + public static void syncListAccessBindingsPropertyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + for (AccessBinding element : + analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_Propertyname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java new file mode 100644 index 000000000000..d6d900621dea --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_String_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AccountName; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncListAccessBindingsString { + + public static void main(String[] args) throws Exception { + syncListAccessBindingsString(); + } + + public static void syncListAccessBindingsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = AccountName.of("[ACCOUNT]").toString(); + for (AccessBinding element : + analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java new file mode 100644 index 000000000000..d9f1a7707425 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.api.core.ApiFuture; + +public class AsyncListExpandedDataSets { + + public static void main(String[] args) throws Exception { + asyncListExpandedDataSets(); + } + + public static void asyncListExpandedDataSets() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + analyticsAdminServiceClient.listExpandedDataSetsPagedCallable().futureCall(request); + // Do something. + for (ExpandedDataSet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java new file mode 100644 index 000000000000..45529b28edd2 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_Paged_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.common.base.Strings; + +public class AsyncListExpandedDataSetsPaged { + + public static void main(String[] args) throws Exception { + asyncListExpandedDataSetsPaged(); + } + + public static void asyncListExpandedDataSetsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListExpandedDataSetsResponse response = + analyticsAdminServiceClient.listExpandedDataSetsCallable().call(request); + for (ExpandedDataSet element : response.getExpandedDataSetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_Paged_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java new file mode 100644 index 000000000000..0d5a5c6911af --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncListExpandedDataSets { + + public static void main(String[] args) throws Exception { + syncListExpandedDataSets(); + } + + public static void syncListExpandedDataSets() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ExpandedDataSet element : + analyticsAdminServiceClient.listExpandedDataSets(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java new file mode 100644 index 000000000000..adf96e3a1d05 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_Propertyname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncListExpandedDataSetsPropertyname { + + public static void main(String[] args) throws Exception { + syncListExpandedDataSetsPropertyname(); + } + + public static void syncListExpandedDataSetsPropertyname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + for (ExpandedDataSet element : + analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_Propertyname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java new file mode 100644 index 000000000000..e655124d3b67 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.PropertyName; + +public class SyncListExpandedDataSetsString { + + public static void main(String[] args) throws Exception { + syncListExpandedDataSetsString(); + } + + public static void syncListExpandedDataSetsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = PropertyName.of("[PROPERTY]").toString(); + for (ExpandedDataSet element : + analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java new file mode 100644 index 000000000000..06b6630e88f9 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_async] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; +import com.google.api.core.ApiFuture; + +public class AsyncUpdateAccessBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateAccessBinding(); + } + + public static void asyncUpdateAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateAccessBindingRequest request = + UpdateAccessBindingRequest.newBuilder() + .setAccessBinding(AccessBinding.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.updateAccessBindingCallable().futureCall(request); + // Do something. + AccessBinding response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java new file mode 100644 index 000000000000..6ac10ec6e038 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; + +public class SyncUpdateAccessBinding { + + public static void main(String[] args) throws Exception { + syncUpdateAccessBinding(); + } + + public static void syncUpdateAccessBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateAccessBindingRequest request = + UpdateAccessBindingRequest.newBuilder() + .setAccessBinding(AccessBinding.newBuilder().build()) + .build(); + AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java new file mode 100644 index 000000000000..f7b2cbab6349 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_Accessbinding_sync] +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; + +public class SyncUpdateAccessBindingAccessbinding { + + public static void main(String[] args) throws Exception { + syncUpdateAccessBindingAccessbinding(); + } + + public static void syncUpdateAccessBindingAccessbinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(accessBinding); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_Accessbinding_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java new file mode 100644 index 000000000000..e6ff6e60ca23 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateExpandedDataSet { + + public static void main(String[] args) throws Exception { + asyncUpdateExpandedDataSet(); + } + + public static void asyncUpdateExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateExpandedDataSetRequest request = + UpdateExpandedDataSetRequest.newBuilder() + .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.updateExpandedDataSetCallable().futureCall(request); + // Do something. + ExpandedDataSet response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java new file mode 100644 index 000000000000..cdf0095457da --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExpandedDataSet { + + public static void main(String[] args) throws Exception { + syncUpdateExpandedDataSet(); + } + + public static void syncUpdateExpandedDataSet() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateExpandedDataSetRequest request = + UpdateExpandedDataSetRequest.newBuilder() + .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ExpandedDataSet response = analyticsAdminServiceClient.updateExpandedDataSet(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java new file mode 100644 index 000000000000..a47ec9b88ee3 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_ExpandeddatasetFieldmask_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.protobuf.FieldMask; + +public class SyncUpdateExpandedDataSetExpandeddatasetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateExpandedDataSetExpandeddatasetFieldmask(); + } + + public static void syncUpdateExpandedDataSetExpandeddatasetFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ExpandedDataSet response = + analyticsAdminServiceClient.updateExpandedDataSet(expandedDataSet, updateMask); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_ExpandeddatasetFieldmask_sync]