diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9351fdfb..426cf83e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 + digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 1bb18232..f5fc7d51 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 18e23230..7a106d00 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b5e56aa..83ef7f9c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -39,8 +39,8 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 @@ -54,8 +54,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -64,8 +64,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 11 @@ -76,8 +76,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index d5d964df..912ed8b2 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -20,9 +20,10 @@ jobs: checkstyle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: + distribution: zulu java-version: 8 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check diff --git a/.kokoro/build.bat b/.kokoro/build.bat index cc602c9e..067cf4a4 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,18 +1,18 @@ +:: Copyright 2022 Google LLC +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: Github action job to test core java library features on +:: downstream client libraries before they are released. :: See documentation in type-shell-output.bat -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index e51c7b4c..a2907a25 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { diff --git a/CHANGELOG.md b/CHANGELOG.md index 455cd6b0..3e560a6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [0.9.0](https://github.com/googleapis/java-analytics-admin/compare/v0.8.4...v0.9.0) (2022-03-29) + + +### ⚠ BREAKING CHANGES + +* remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources (#377) + +### Features + +* remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources ([#377](https://github.com/googleapis/java-analytics-admin/issues/377)) ([b93fa94](https://github.com/googleapis/java-analytics-admin/commit/b93fa9430278a6761bb12f355e7aac7e72c57c7d)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#385](https://github.com/googleapis/java-analytics-admin/issues/385)) ([8644c7f](https://github.com/googleapis/java-analytics-admin/commit/8644c7f51c89e635473b9e779fcd0123a55d9551)) + ### [0.8.4](https://github.com/googleapis/java-analytics-admin/compare/v0.8.3...v0.8.4) (2022-03-08) diff --git a/README.md b/README.md index 82bc8fd2..738ef39e 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-admin - 0.8.2 + 0.8.4 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.8.2' +implementation 'com.google.analytics:google-analytics-admin:0.8.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.8.2" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.8.4" ``` ## Authentication diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index a24b5f0a..d3256e38 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.8.4 + 0.9.0 pom com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.2 Google Analytics Admin BOM @@ -56,17 +56,17 @@ com.google.analytics google-analytics-admin - 0.8.4 + 0.9.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.8.4 + 0.9.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.8.4 + 0.9.0 diff --git a/google-analytics-admin/clirr-ignored-differences.xml b/google-analytics-admin/clirr-ignored-differences.xml index 19cce62d..9ec682c3 100644 --- a/google-analytics-admin/clirr-ignored-differences.xml +++ b/google-analytics-admin/clirr-ignored-differences.xml @@ -26,4 +26,29 @@ com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub* * *EnhancedMeasurementSettings*(*) + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient + * *DataStream*(*) + + + 8001 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient*DataStreams* + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings* + * *DataStream*(*) + + + 7002 + com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub* + * *DataStream*(*) + + + 7005 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient* + * *MeasurementProtocolSecret*(*) + * *(*) + \ No newline at end of file diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml index 02827a37..f91c4b2b 100644 --- a/google-analytics-admin/pom.xml +++ b/google-analytics-admin/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.8.4 + 0.9.0 jar Google Analytics Admin https://github.com/googleapis/java-analytics-admin @@ -11,7 +11,7 @@ com.google.analytics google-analytics-admin-parent - 0.8.4 + 0.9.0 google-analytics-admin diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index d30d62ec..d399f836 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -2077,1481 +2077,6 @@ public final UnaryCallable batchDeleteUserLi return stub.batchDeleteUserLinksCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single WebDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
-   *   WebDataStream response = analyticsAdminServiceClient.getWebDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the web data stream to lookup. Format: - * properties/{property_id}/webDataStreams/{stream_id} Example: - * "properties/123/webDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WebDataStream getWebDataStream(WebDataStreamName name) { - GetWebDataStreamRequest request = - GetWebDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getWebDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single WebDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
-   *   WebDataStream response = analyticsAdminServiceClient.getWebDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the web data stream to lookup. Format: - * properties/{property_id}/webDataStreams/{stream_id} Example: - * "properties/123/webDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WebDataStream getWebDataStream(String name) { - GetWebDataStreamRequest request = GetWebDataStreamRequest.newBuilder().setName(name).build(); - return getWebDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single WebDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetWebDataStreamRequest request =
-   *       GetWebDataStreamRequest.newBuilder()
-   *           .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
-   *           .build();
-   *   WebDataStream response = analyticsAdminServiceClient.getWebDataStream(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 WebDataStream getWebDataStream(GetWebDataStreamRequest request) { - return getWebDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single WebDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetWebDataStreamRequest request =
-   *       GetWebDataStreamRequest.newBuilder()
-   *           .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getWebDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   WebDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getWebDataStreamCallable() { - return stub.getWebDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
-   *   analyticsAdminServiceClient.deleteWebDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the web data stream to delete. Format: - * properties/{property_id}/webDataStreams/{stream_id} Example: - * "properties/123/webDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWebDataStream(WebDataStreamName name) { - DeleteWebDataStreamRequest request = - DeleteWebDataStreamRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteWebDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
-   *   analyticsAdminServiceClient.deleteWebDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the web data stream to delete. Format: - * properties/{property_id}/webDataStreams/{stream_id} Example: - * "properties/123/webDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteWebDataStream(String name) { - DeleteWebDataStreamRequest request = - DeleteWebDataStreamRequest.newBuilder().setName(name).build(); - deleteWebDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteWebDataStreamRequest request =
-   *       DeleteWebDataStreamRequest.newBuilder()
-   *           .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteWebDataStream(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 deleteWebDataStream(DeleteWebDataStreamRequest request) { - deleteWebDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteWebDataStreamRequest request =
-   *       DeleteWebDataStreamRequest.newBuilder()
-   *           .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteWebDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteWebDataStreamCallable() { - return stub.deleteWebDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   WebDataStream response =
-   *       analyticsAdminServiceClient.updateWebDataStream(webDataStream, updateMask);
-   * }
-   * }
- * - * @param webDataStream Required. The web stream to update. The `name` field is used to identify - * the web stream 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 WebDataStream updateWebDataStream( - WebDataStream webDataStream, FieldMask updateMask) { - UpdateWebDataStreamRequest request = - UpdateWebDataStreamRequest.newBuilder() - .setWebDataStream(webDataStream) - .setUpdateMask(updateMask) - .build(); - return updateWebDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateWebDataStreamRequest request =
-   *       UpdateWebDataStreamRequest.newBuilder()
-   *           .setWebDataStream(WebDataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   WebDataStream response = analyticsAdminServiceClient.updateWebDataStream(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 WebDataStream updateWebDataStream(UpdateWebDataStreamRequest request) { - return updateWebDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a web stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateWebDataStreamRequest request =
-   *       UpdateWebDataStreamRequest.newBuilder()
-   *           .setWebDataStream(WebDataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateWebDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   WebDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateWebDataStreamCallable() { - return stub.updateWebDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a web stream with the specified location and attributes. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
-   *   WebDataStream response =
-   *       analyticsAdminServiceClient.createWebDataStream(parent, webDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this web data stream will be created. Format: - * properties/123 - * @param webDataStream Required. The web stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WebDataStream createWebDataStream(String parent, WebDataStream webDataStream) { - CreateWebDataStreamRequest request = - CreateWebDataStreamRequest.newBuilder() - .setParent(parent) - .setWebDataStream(webDataStream) - .build(); - return createWebDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a web stream with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateWebDataStreamRequest request =
-   *       CreateWebDataStreamRequest.newBuilder()
-   *           .setWebDataStream(WebDataStream.newBuilder().build())
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   WebDataStream response = analyticsAdminServiceClient.createWebDataStream(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 WebDataStream createWebDataStream(CreateWebDataStreamRequest request) { - return createWebDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a web stream with the specified location and attributes. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateWebDataStreamRequest request =
-   *       CreateWebDataStreamRequest.newBuilder()
-   *           .setWebDataStream(WebDataStream.newBuilder().build())
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createWebDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   WebDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createWebDataStreamCallable() { - return stub.createWebDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child web data streams under the specified parent property. - * - *

Web data streams will be excluded if the caller does not have access. Returns an empty list - * if no relevant web data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (WebDataStream element :
-   *       analyticsAdminServiceClient.listWebDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the parent property. For example, to list results of web - * streams under the property with Id 123: "properties/123" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWebDataStreamsPagedResponse listWebDataStreams(PropertyName parent) { - ListWebDataStreamsRequest request = - ListWebDataStreamsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listWebDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child web data streams under the specified parent property. - * - *

Web data streams will be excluded if the caller does not have access. Returns an empty list - * if no relevant web data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (WebDataStream element :
-   *       analyticsAdminServiceClient.listWebDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the parent property. For example, to list results of web - * streams under the property with Id 123: "properties/123" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListWebDataStreamsPagedResponse listWebDataStreams(String parent) { - ListWebDataStreamsRequest request = - ListWebDataStreamsRequest.newBuilder().setParent(parent).build(); - return listWebDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child web data streams under the specified parent property. - * - *

Web data streams will be excluded if the caller does not have access. Returns an empty list - * if no relevant web data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListWebDataStreamsRequest request =
-   *       ListWebDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (WebDataStream element :
-   *       analyticsAdminServiceClient.listWebDataStreams(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 ListWebDataStreamsPagedResponse listWebDataStreams( - ListWebDataStreamsRequest request) { - return listWebDataStreamsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child web data streams under the specified parent property. - * - *

Web data streams will be excluded if the caller does not have access. Returns an empty list - * if no relevant web data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListWebDataStreamsRequest request =
-   *       ListWebDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listWebDataStreamsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (WebDataStream element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWebDataStreamsPagedCallable() { - return stub.listWebDataStreamsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child web data streams under the specified parent property. - * - *

Web data streams will be excluded if the caller does not have access. Returns an empty list - * if no relevant web data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListWebDataStreamsRequest request =
-   *       ListWebDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListWebDataStreamsResponse response =
-   *         analyticsAdminServiceClient.listWebDataStreamsCallable().call(request);
-   *     for (WebDataStream element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listWebDataStreamsCallable() { - return stub.listWebDataStreamsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single IosAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
-   *   IosAppDataStream response = analyticsAdminServiceClient.getIosAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the iOS app data stream to lookup. Format: - * properties/{property_id}/iosAppDataStreams/{stream_id} Example: - * "properties/123/iosAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream getIosAppDataStream(IosAppDataStreamName name) { - GetIosAppDataStreamRequest request = - GetIosAppDataStreamRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single IosAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString();
-   *   IosAppDataStream response = analyticsAdminServiceClient.getIosAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the iOS app data stream to lookup. Format: - * properties/{property_id}/iosAppDataStreams/{stream_id} Example: - * "properties/123/iosAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream getIosAppDataStream(String name) { - GetIosAppDataStreamRequest request = - GetIosAppDataStreamRequest.newBuilder().setName(name).build(); - return getIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single IosAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetIosAppDataStreamRequest request =
-   *       GetIosAppDataStreamRequest.newBuilder()
-   *           .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   IosAppDataStream response = analyticsAdminServiceClient.getIosAppDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream getIosAppDataStream(GetIosAppDataStreamRequest request) { - return getIosAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single IosAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetIosAppDataStreamRequest request =
-   *       GetIosAppDataStreamRequest.newBuilder()
-   *           .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getIosAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   IosAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getIosAppDataStreamCallable() { - return stub.getIosAppDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]");
-   *   analyticsAdminServiceClient.deleteIosAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the iOS app data stream to delete. Format: - * properties/{property_id}/iosAppDataStreams/{stream_id} Example: - * "properties/123/iosAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteIosAppDataStream(IosAppDataStreamName name) { - DeleteIosAppDataStreamRequest request = - DeleteIosAppDataStreamRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString();
-   *   analyticsAdminServiceClient.deleteIosAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the iOS app data stream to delete. Format: - * properties/{property_id}/iosAppDataStreams/{stream_id} Example: - * "properties/123/iosAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteIosAppDataStream(String name) { - DeleteIosAppDataStreamRequest request = - DeleteIosAppDataStreamRequest.newBuilder().setName(name).build(); - deleteIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteIosAppDataStreamRequest request =
-   *       DeleteIosAppDataStreamRequest.newBuilder()
-   *           .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteIosAppDataStream(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 deleteIosAppDataStream(DeleteIosAppDataStreamRequest request) { - deleteIosAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteIosAppDataStreamRequest request =
-   *       DeleteIosAppDataStreamRequest.newBuilder()
-   *           .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteIosAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteIosAppDataStreamCallable() { - return stub.deleteIosAppDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   IosAppDataStream response =
-   *       analyticsAdminServiceClient.updateIosAppDataStream(iosAppDataStream, updateMask);
-   * }
-   * }
- * - * @param iosAppDataStream Required. The iOS app stream to update. The `name` field is used to - * identify the iOS app stream 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 IosAppDataStream updateIosAppDataStream( - IosAppDataStream iosAppDataStream, FieldMask updateMask) { - UpdateIosAppDataStreamRequest request = - UpdateIosAppDataStreamRequest.newBuilder() - .setIosAppDataStream(iosAppDataStream) - .setUpdateMask(updateMask) - .build(); - return updateIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateIosAppDataStreamRequest request =
-   *       UpdateIosAppDataStreamRequest.newBuilder()
-   *           .setIosAppDataStream(IosAppDataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   IosAppDataStream response = analyticsAdminServiceClient.updateIosAppDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream updateIosAppDataStream(UpdateIosAppDataStreamRequest request) { - return updateIosAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an iOS app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateIosAppDataStreamRequest request =
-   *       UpdateIosAppDataStreamRequest.newBuilder()
-   *           .setIosAppDataStream(IosAppDataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateIosAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   IosAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateIosAppDataStreamCallable() { - return stub.updateIosAppDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child iOS app data streams under the specified parent property. - * - *

iOS app data streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant iOS app data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (IosAppDataStream element :
-   *       analyticsAdminServiceClient.listIosAppDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the parent property. For example, to list results of app - * streams under the property with Id 123: "properties/123" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(PropertyName parent) { - ListIosAppDataStreamsRequest request = - ListIosAppDataStreamsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listIosAppDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child iOS app data streams under the specified parent property. - * - *

iOS app data streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant iOS app data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (IosAppDataStream element :
-   *       analyticsAdminServiceClient.listIosAppDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the parent property. For example, to list results of app - * streams under the property with Id 123: "properties/123" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(String parent) { - ListIosAppDataStreamsRequest request = - ListIosAppDataStreamsRequest.newBuilder().setParent(parent).build(); - return listIosAppDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child iOS app data streams under the specified parent property. - * - *

iOS app data streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant iOS app data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListIosAppDataStreamsRequest request =
-   *       ListIosAppDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (IosAppDataStream element :
-   *       analyticsAdminServiceClient.listIosAppDataStreams(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 ListIosAppDataStreamsPagedResponse listIosAppDataStreams( - ListIosAppDataStreamsRequest request) { - return listIosAppDataStreamsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child iOS app data streams under the specified parent property. - * - *

iOS app data streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant iOS app data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListIosAppDataStreamsRequest request =
-   *       ListIosAppDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listIosAppDataStreamsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (IosAppDataStream element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listIosAppDataStreamsPagedCallable() { - return stub.listIosAppDataStreamsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child iOS app data streams under the specified parent property. - * - *

iOS app data streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant iOS app data streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListIosAppDataStreamsRequest request =
-   *       ListIosAppDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListIosAppDataStreamsResponse response =
-   *         analyticsAdminServiceClient.listIosAppDataStreamsCallable().call(request);
-   *     for (IosAppDataStream element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listIosAppDataStreamsCallable() { - return stub.listIosAppDataStreamsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single AndroidAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AndroidAppDataStreamName name =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
-   *   AndroidAppDataStream response = analyticsAdminServiceClient.getAndroidAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the android app data stream to lookup. Format: - * properties/{property_id}/androidAppDataStreams/{stream_id} Example: - * "properties/123/androidAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream getAndroidAppDataStream(AndroidAppDataStreamName name) { - GetAndroidAppDataStreamRequest request = - GetAndroidAppDataStreamRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single AndroidAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString();
-   *   AndroidAppDataStream response = analyticsAdminServiceClient.getAndroidAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the android app data stream to lookup. Format: - * properties/{property_id}/androidAppDataStreams/{stream_id} Example: - * "properties/123/androidAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream getAndroidAppDataStream(String name) { - GetAndroidAppDataStreamRequest request = - GetAndroidAppDataStreamRequest.newBuilder().setName(name).build(); - return getAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single AndroidAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAndroidAppDataStreamRequest request =
-   *       GetAndroidAppDataStreamRequest.newBuilder()
-   *           .setName(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   AndroidAppDataStream response = analyticsAdminServiceClient.getAndroidAppDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream getAndroidAppDataStream( - GetAndroidAppDataStreamRequest request) { - return getAndroidAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single AndroidAppDataStream - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetAndroidAppDataStreamRequest request =
-   *       GetAndroidAppDataStreamRequest.newBuilder()
-   *           .setName(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getAndroidAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   AndroidAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getAndroidAppDataStreamCallable() { - return stub.getAndroidAppDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AndroidAppDataStreamName name =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]");
-   *   analyticsAdminServiceClient.deleteAndroidAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the android app data stream to delete. Format: - * properties/{property_id}/androidAppDataStreams/{stream_id} Example: - * "properties/123/androidAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAndroidAppDataStream(AndroidAppDataStreamName name) { - DeleteAndroidAppDataStreamRequest request = - DeleteAndroidAppDataStreamRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString();
-   *   analyticsAdminServiceClient.deleteAndroidAppDataStream(name);
-   * }
-   * }
- * - * @param name Required. The name of the android app data stream to delete. Format: - * properties/{property_id}/androidAppDataStreams/{stream_id} Example: - * "properties/123/androidAppDataStreams/456" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteAndroidAppDataStream(String name) { - DeleteAndroidAppDataStreamRequest request = - DeleteAndroidAppDataStreamRequest.newBuilder().setName(name).build(); - deleteAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteAndroidAppDataStreamRequest request =
-   *       DeleteAndroidAppDataStreamRequest.newBuilder()
-   *           .setName(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   analyticsAdminServiceClient.deleteAndroidAppDataStream(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 deleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest request) { - deleteAndroidAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DeleteAndroidAppDataStreamRequest request =
-   *       DeleteAndroidAppDataStreamRequest.newBuilder()
-   *           .setName(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.deleteAndroidAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteAndroidAppDataStreamCallable() { - return stub.deleteAndroidAppDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.updateAndroidAppDataStream(androidAppDataStream, updateMask);
-   * }
-   * }
- * - * @param androidAppDataStream Required. The android app stream to update. The `name` field is - * used to identify the android app stream 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 AndroidAppDataStream updateAndroidAppDataStream( - AndroidAppDataStream androidAppDataStream, FieldMask updateMask) { - UpdateAndroidAppDataStreamRequest request = - UpdateAndroidAppDataStreamRequest.newBuilder() - .setAndroidAppDataStream(androidAppDataStream) - .setUpdateMask(updateMask) - .build(); - return updateAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAndroidAppDataStreamRequest request =
-   *       UpdateAndroidAppDataStreamRequest.newBuilder()
-   *           .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.updateAndroidAppDataStream(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream updateAndroidAppDataStream( - UpdateAndroidAppDataStreamRequest request) { - return updateAndroidAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an android app stream on a property. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAndroidAppDataStreamRequest request =
-   *       UpdateAndroidAppDataStreamRequest.newBuilder()
-   *           .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateAndroidAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   AndroidAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateAndroidAppDataStreamCallable() { - return stub.updateAndroidAppDataStreamCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child android app streams under the specified parent property. - * - *

Android app streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant android app streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   for (AndroidAppDataStream element :
-   *       analyticsAdminServiceClient.listAndroidAppDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the parent property. For example, to limit results to app - * streams under the property with Id 123: "properties/123" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams( - PropertyName parent) { - ListAndroidAppDataStreamsRequest request = - ListAndroidAppDataStreamsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAndroidAppDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child android app streams under the specified parent property. - * - *

Android app streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant android app streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (AndroidAppDataStream element :
-   *       analyticsAdminServiceClient.listAndroidAppDataStreams(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the parent property. For example, to limit results to app - * streams under the property with Id 123: "properties/123" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(String parent) { - ListAndroidAppDataStreamsRequest request = - ListAndroidAppDataStreamsRequest.newBuilder().setParent(parent).build(); - return listAndroidAppDataStreams(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child android app streams under the specified parent property. - * - *

Android app streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant android app streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAndroidAppDataStreamsRequest request =
-   *       ListAndroidAppDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (AndroidAppDataStream element :
-   *       analyticsAdminServiceClient.listAndroidAppDataStreams(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 ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams( - ListAndroidAppDataStreamsRequest request) { - return listAndroidAppDataStreamsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child android app streams under the specified parent property. - * - *

Android app streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant android app streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAndroidAppDataStreamsRequest request =
-   *       ListAndroidAppDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listAndroidAppDataStreamsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (AndroidAppDataStream element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsPagedCallable() { - return stub.listAndroidAppDataStreamsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns child android app streams under the specified parent property. - * - *

Android app streams will be excluded if the caller does not have access. Returns an empty - * list if no relevant android app streams are found. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListAndroidAppDataStreamsRequest request =
-   *       ListAndroidAppDataStreamsRequest.newBuilder()
-   *           .setParent(PropertyName.of("[PROPERTY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListAndroidAppDataStreamsResponse response =
-   *         analyticsAdminServiceClient.listAndroidAppDataStreamsCallable().call(request);
-   *     for (AndroidAppDataStream element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listAndroidAppDataStreamsCallable() { - return stub.listAndroidAppDataStreamsCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a FirebaseLink. @@ -3921,15 +2446,15 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]");
+   *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]");
    *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
    * }
    * }
* * @param name Required. The name of the site tag to lookup. Note that site tags are singletons * and do not have unique IDs. Format: - * properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: - * "properties/123/webDataStreams/456/globalSiteTag" + * properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: + * "properties/123/dataStreams/456/globalSiteTag" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { @@ -3947,15 +2472,15 @@ public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String name = GlobalSiteTagName.of("[PROPERTY]").toString();
+   *   String name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString();
    *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
    * }
    * }
* * @param name Required. The name of the site tag to lookup. Note that site tags are singletons * and do not have unique IDs. Format: - * properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: - * "properties/123/webDataStreams/456/globalSiteTag" + * properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: + * "properties/123/dataStreams/456/globalSiteTag" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GlobalSiteTag getGlobalSiteTag(String name) { @@ -3974,7 +2499,7 @@ public final GlobalSiteTag getGlobalSiteTag(String name) { * AnalyticsAdminServiceClient.create()) { * GetGlobalSiteTagRequest request = * GetGlobalSiteTagRequest.newBuilder() - * .setName(GlobalSiteTagName.of("[PROPERTY]").toString()) + * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request); * } @@ -3998,7 +2523,7 @@ public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) { * AnalyticsAdminServiceClient.create()) { * GetGlobalSiteTagRequest request = * GetGlobalSiteTagRequest.newBuilder() - * .setName(GlobalSiteTagName.of("[PROPERTY]").toString()) + * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); * ApiFuture future = * analyticsAdminServiceClient.getGlobalSiteTagCallable().futureCall(request); @@ -4558,16 +3083,14 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe * AnalyticsAdminServiceClient.create()) { * MeasurementProtocolSecretName name = * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); * MeasurementProtocolSecret response = * analyticsAdminServiceClient.getMeasurementProtocolSecret(name); * } * } * * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a - * parent. + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret getMeasurementProtocolSecret( @@ -4590,7 +3113,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * AnalyticsAdminServiceClient.create()) { * String name = * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") * .toString(); * MeasurementProtocolSecret response = * analyticsAdminServiceClient.getMeasurementProtocolSecret(name); @@ -4598,9 +3121,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * } * * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a - * parent. + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) { @@ -4622,7 +3143,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) * GetMeasurementProtocolSecretRequest.newBuilder() * .setName( * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") * .toString()) * .build(); * MeasurementProtocolSecret response = @@ -4651,7 +3172,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * GetMeasurementProtocolSecretRequest.newBuilder() * .setName( * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") * .toString()) * .build(); * ApiFuture future = @@ -4675,7 +3196,7 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
    *   for (MeasurementProtocolSecret element :
    *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -4683,13 +3204,12 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(
    * }
    * }
* - * @param parent Required. The resource name of the parent stream. Any type of stream - * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * @param parent Required. The resource name of the parent stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - WebDataStreamName parent) { + DataStreamName parent) { ListMeasurementProtocolSecretsRequest request = ListMeasurementProtocolSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4706,7 +3226,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
+   *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
    *   for (MeasurementProtocolSecret element :
    *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -4714,9 +3234,8 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
    * }
    * }
* - * @param parent Required. The resource name of the parent stream. Any type of stream - * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * @param parent Required. The resource name of the parent stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( @@ -4737,7 +3256,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * AnalyticsAdminServiceClient.create()) { * ListMeasurementProtocolSecretsRequest request = * ListMeasurementProtocolSecretsRequest.newBuilder() - * .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -4767,7 +3286,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * AnalyticsAdminServiceClient.create()) { * ListMeasurementProtocolSecretsRequest request = * ListMeasurementProtocolSecretsRequest.newBuilder() - * .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -4799,7 +3318,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * AnalyticsAdminServiceClient.create()) { * ListMeasurementProtocolSecretsRequest request = * ListMeasurementProtocolSecretsRequest.newBuilder() - * .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); @@ -4834,7 +3353,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
    *   MeasurementProtocolSecret measurementProtocolSecret =
    *       MeasurementProtocolSecret.newBuilder().build();
    *   MeasurementProtocolSecret response =
@@ -4843,14 +3362,13 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
    * }
    * }
* - * @param parent Required. The parent resource where this secret will be created. Any type of - * stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: - * properties/{property}/webDataStreams/{webDataStream} + * @param parent Required. The parent resource where this secret will be created. Format: + * properties/{property}/dataStreams/{dataStream} * @param measurementProtocolSecret Required. The measurement protocol secret to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final MeasurementProtocolSecret createMeasurementProtocolSecret( - WebDataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { + DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { CreateMeasurementProtocolSecretRequest request = CreateMeasurementProtocolSecretRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -4868,7 +3386,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
+   *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
    *   MeasurementProtocolSecret measurementProtocolSecret =
    *       MeasurementProtocolSecret.newBuilder().build();
    *   MeasurementProtocolSecret response =
@@ -4877,9 +3395,8 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
    * }
    * }
* - * @param parent Required. The parent resource where this secret will be created. Any type of - * stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: - * properties/{property}/webDataStreams/{webDataStream} + * @param parent Required. The parent resource where this secret will be created. Format: + * properties/{property}/dataStreams/{dataStream} * @param measurementProtocolSecret Required. The measurement protocol secret to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -4904,7 +3421,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * AnalyticsAdminServiceClient.create()) { * CreateMeasurementProtocolSecretRequest request = * CreateMeasurementProtocolSecretRequest.newBuilder() - * .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) * .build(); * MeasurementProtocolSecret response = @@ -4931,7 +3448,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * AnalyticsAdminServiceClient.create()) { * CreateMeasurementProtocolSecretRequest request = * CreateMeasurementProtocolSecretRequest.newBuilder() - * .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) * .build(); * ApiFuture future = @@ -4957,15 +3474,13 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * AnalyticsAdminServiceClient.create()) { * MeasurementProtocolSecretName name = * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name); * } * } * * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a - * parent. + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { @@ -4987,16 +3502,14 @@ public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName * AnalyticsAdminServiceClient.create()) { * String name = * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") * .toString(); * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name); * } * } * * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a - * parent. + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteMeasurementProtocolSecret(String name) { @@ -5018,7 +3531,7 @@ public final void deleteMeasurementProtocolSecret(String name) { * DeleteMeasurementProtocolSecretRequest.newBuilder() * .setName( * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") * .toString()) * .build(); * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request); @@ -5046,7 +3559,7 @@ public final void deleteMeasurementProtocolSecret( * DeleteMeasurementProtocolSecretRequest.newBuilder() * .setName( * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") * .toString()) * .build(); * ApiFuture future = @@ -9434,266 +7947,6 @@ protected AuditUserLinksFixedSizeCollection createCollection( } } - public static class ListWebDataStreamsPagedResponse - extends AbstractPagedListResponse< - ListWebDataStreamsRequest, - ListWebDataStreamsResponse, - WebDataStream, - ListWebDataStreamsPage, - ListWebDataStreamsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListWebDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListWebDataStreamsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListWebDataStreamsPagedResponse(ListWebDataStreamsPage page) { - super(page, ListWebDataStreamsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListWebDataStreamsPage - extends AbstractPage< - ListWebDataStreamsRequest, - ListWebDataStreamsResponse, - WebDataStream, - ListWebDataStreamsPage> { - - private ListWebDataStreamsPage( - PageContext context, - ListWebDataStreamsResponse response) { - super(context, response); - } - - private static ListWebDataStreamsPage createEmptyPage() { - return new ListWebDataStreamsPage(null, null); - } - - @Override - protected ListWebDataStreamsPage createPage( - PageContext context, - ListWebDataStreamsResponse response) { - return new ListWebDataStreamsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListWebDataStreamsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListWebDataStreamsRequest, - ListWebDataStreamsResponse, - WebDataStream, - ListWebDataStreamsPage, - ListWebDataStreamsFixedSizeCollection> { - - private ListWebDataStreamsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListWebDataStreamsFixedSizeCollection createEmptyCollection() { - return new ListWebDataStreamsFixedSizeCollection(null, 0); - } - - @Override - protected ListWebDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListWebDataStreamsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListIosAppDataStreamsPagedResponse - extends AbstractPagedListResponse< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - IosAppDataStream, - ListIosAppDataStreamsPage, - ListIosAppDataStreamsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListIosAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListIosAppDataStreamsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListIosAppDataStreamsPagedResponse(ListIosAppDataStreamsPage page) { - super(page, ListIosAppDataStreamsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListIosAppDataStreamsPage - extends AbstractPage< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - IosAppDataStream, - ListIosAppDataStreamsPage> { - - private ListIosAppDataStreamsPage( - PageContext - context, - ListIosAppDataStreamsResponse response) { - super(context, response); - } - - private static ListIosAppDataStreamsPage createEmptyPage() { - return new ListIosAppDataStreamsPage(null, null); - } - - @Override - protected ListIosAppDataStreamsPage createPage( - PageContext - context, - ListIosAppDataStreamsResponse response) { - return new ListIosAppDataStreamsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListIosAppDataStreamsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - IosAppDataStream, - ListIosAppDataStreamsPage, - ListIosAppDataStreamsFixedSizeCollection> { - - private ListIosAppDataStreamsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListIosAppDataStreamsFixedSizeCollection createEmptyCollection() { - return new ListIosAppDataStreamsFixedSizeCollection(null, 0); - } - - @Override - protected ListIosAppDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListIosAppDataStreamsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListAndroidAppDataStreamsPagedResponse - extends AbstractPagedListResponse< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream, - ListAndroidAppDataStreamsPage, - ListAndroidAppDataStreamsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListAndroidAppDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListAndroidAppDataStreamsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListAndroidAppDataStreamsPagedResponse(ListAndroidAppDataStreamsPage page) { - super(page, ListAndroidAppDataStreamsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListAndroidAppDataStreamsPage - extends AbstractPage< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream, - ListAndroidAppDataStreamsPage> { - - private ListAndroidAppDataStreamsPage( - PageContext< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream> - context, - ListAndroidAppDataStreamsResponse response) { - super(context, response); - } - - private static ListAndroidAppDataStreamsPage createEmptyPage() { - return new ListAndroidAppDataStreamsPage(null, null); - } - - @Override - protected ListAndroidAppDataStreamsPage createPage( - PageContext< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream> - context, - ListAndroidAppDataStreamsResponse response) { - return new ListAndroidAppDataStreamsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListAndroidAppDataStreamsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream, - ListAndroidAppDataStreamsPage, - ListAndroidAppDataStreamsFixedSizeCollection> { - - private ListAndroidAppDataStreamsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListAndroidAppDataStreamsFixedSizeCollection createEmptyCollection() { - return new ListAndroidAppDataStreamsFixedSizeCollection(null, 0); - } - - @Override - protected ListAndroidAppDataStreamsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListAndroidAppDataStreamsFixedSizeCollection(pages, collectionSize); - } - } - public static class ListFirebaseLinksPagedResponse extends AbstractPagedListResponse< ListFirebaseLinksRequest, diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index 953bfdf4..d08f6055 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -19,7 +19,6 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; @@ -28,11 +27,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; @@ -209,92 +206,6 @@ public UnaryCallSettings batchDeleteUserLink return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchDeleteUserLinksSettings(); } - /** Returns the object with the settings used for calls to getWebDataStream. */ - public UnaryCallSettings getWebDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getWebDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to deleteWebDataStream. */ - public UnaryCallSettings deleteWebDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteWebDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to updateWebDataStream. */ - public UnaryCallSettings - updateWebDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateWebDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to createWebDataStream. */ - public UnaryCallSettings - createWebDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createWebDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to listWebDataStreams. */ - public PagedCallSettings< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - listWebDataStreamsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listWebDataStreamsSettings(); - } - - /** Returns the object with the settings used for calls to getIosAppDataStream. */ - public UnaryCallSettings - getIosAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getIosAppDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to deleteIosAppDataStream. */ - public UnaryCallSettings deleteIosAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteIosAppDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to updateIosAppDataStream. */ - public UnaryCallSettings - updateIosAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateIosAppDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to listIosAppDataStreams. */ - public PagedCallSettings< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - listIosAppDataStreamsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listIosAppDataStreamsSettings(); - } - - /** Returns the object with the settings used for calls to getAndroidAppDataStream. */ - public UnaryCallSettings - getAndroidAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getAndroidAppDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to deleteAndroidAppDataStream. */ - public UnaryCallSettings - deleteAndroidAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteAndroidAppDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to updateAndroidAppDataStream. */ - public UnaryCallSettings - updateAndroidAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateAndroidAppDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ - public PagedCallSettings< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listAndroidAppDataStreamsSettings(); - } - /** Returns the object with the settings used for calls to createFirebaseLink. */ public UnaryCallSettings createFirebaseLinkSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); @@ -871,91 +782,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().batchDeleteUserLinksSettings(); } - /** Returns the builder for the settings used for calls to getWebDataStream. */ - public UnaryCallSettings.Builder - getWebDataStreamSettings() { - return getStubSettingsBuilder().getWebDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to deleteWebDataStream. */ - public UnaryCallSettings.Builder - deleteWebDataStreamSettings() { - return getStubSettingsBuilder().deleteWebDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to updateWebDataStream. */ - public UnaryCallSettings.Builder - updateWebDataStreamSettings() { - return getStubSettingsBuilder().updateWebDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to createWebDataStream. */ - public UnaryCallSettings.Builder - createWebDataStreamSettings() { - return getStubSettingsBuilder().createWebDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to listWebDataStreams. */ - public PagedCallSettings.Builder< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - listWebDataStreamsSettings() { - return getStubSettingsBuilder().listWebDataStreamsSettings(); - } - - /** Returns the builder for the settings used for calls to getIosAppDataStream. */ - public UnaryCallSettings.Builder - getIosAppDataStreamSettings() { - return getStubSettingsBuilder().getIosAppDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to deleteIosAppDataStream. */ - public UnaryCallSettings.Builder - deleteIosAppDataStreamSettings() { - return getStubSettingsBuilder().deleteIosAppDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to updateIosAppDataStream. */ - public UnaryCallSettings.Builder - updateIosAppDataStreamSettings() { - return getStubSettingsBuilder().updateIosAppDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ - public PagedCallSettings.Builder< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - listIosAppDataStreamsSettings() { - return getStubSettingsBuilder().listIosAppDataStreamsSettings(); - } - - /** Returns the builder for the settings used for calls to getAndroidAppDataStream. */ - public UnaryCallSettings.Builder - getAndroidAppDataStreamSettings() { - return getStubSettingsBuilder().getAndroidAppDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAndroidAppDataStream. */ - public UnaryCallSettings.Builder - deleteAndroidAppDataStreamSettings() { - return getStubSettingsBuilder().deleteAndroidAppDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to updateAndroidAppDataStream. */ - public UnaryCallSettings.Builder - updateAndroidAppDataStreamSettings() { - return getStubSettingsBuilder().updateAndroidAppDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ - public PagedCallSettings.Builder< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsSettings() { - return getStubSettingsBuilder().listAndroidAppDataStreamsSettings(); - } - /** Returns the builder for the settings used for calls to createFirebaseLink. */ public UnaryCallSettings.Builder createFirebaseLinkSettings() { diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index aa5e992f..594112cd 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -73,15 +73,9 @@ "CreateUserLink": { "methods": ["createUserLink", "createUserLink", "createUserLink", "createUserLink", "createUserLinkCallable"] }, - "CreateWebDataStream": { - "methods": ["createWebDataStream", "createWebDataStream", "createWebDataStream", "createWebDataStreamCallable"] - }, "DeleteAccount": { "methods": ["deleteAccount", "deleteAccount", "deleteAccount", "deleteAccountCallable"] }, - "DeleteAndroidAppDataStream": { - "methods": ["deleteAndroidAppDataStream", "deleteAndroidAppDataStream", "deleteAndroidAppDataStream", "deleteAndroidAppDataStreamCallable"] - }, "DeleteConversionEvent": { "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"] }, @@ -100,9 +94,6 @@ "DeleteGoogleAdsLink": { "methods": ["deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLink", "deleteGoogleAdsLinkCallable"] }, - "DeleteIosAppDataStream": { - "methods": ["deleteIosAppDataStream", "deleteIosAppDataStream", "deleteIosAppDataStream", "deleteIosAppDataStreamCallable"] - }, "DeleteMeasurementProtocolSecret": { "methods": ["deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecretCallable"] }, @@ -112,15 +103,9 @@ "DeleteUserLink": { "methods": ["deleteUserLink", "deleteUserLink", "deleteUserLink", "deleteUserLinkCallable"] }, - "DeleteWebDataStream": { - "methods": ["deleteWebDataStream", "deleteWebDataStream", "deleteWebDataStream", "deleteWebDataStreamCallable"] - }, "GetAccount": { "methods": ["getAccount", "getAccount", "getAccount", "getAccountCallable"] }, - "GetAndroidAppDataStream": { - "methods": ["getAndroidAppDataStream", "getAndroidAppDataStream", "getAndroidAppDataStream", "getAndroidAppDataStreamCallable"] - }, "GetConversionEvent": { "methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"] }, @@ -151,9 +136,6 @@ "GetGoogleSignalsSettings": { "methods": ["getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettingsCallable"] }, - "GetIosAppDataStream": { - "methods": ["getIosAppDataStream", "getIosAppDataStream", "getIosAppDataStream", "getIosAppDataStreamCallable"] - }, "GetMeasurementProtocolSecret": { "methods": ["getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecretCallable"] }, @@ -163,18 +145,12 @@ "GetUserLink": { "methods": ["getUserLink", "getUserLink", "getUserLink", "getUserLinkCallable"] }, - "GetWebDataStream": { - "methods": ["getWebDataStream", "getWebDataStream", "getWebDataStream", "getWebDataStreamCallable"] - }, "ListAccountSummaries": { "methods": ["listAccountSummaries", "listAccountSummariesPagedCallable", "listAccountSummariesCallable"] }, "ListAccounts": { "methods": ["listAccounts", "listAccountsPagedCallable", "listAccountsCallable"] }, - "ListAndroidAppDataStreams": { - "methods": ["listAndroidAppDataStreams", "listAndroidAppDataStreams", "listAndroidAppDataStreams", "listAndroidAppDataStreamsPagedCallable", "listAndroidAppDataStreamsCallable"] - }, "ListConversionEvents": { "methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"] }, @@ -199,9 +175,6 @@ "ListGoogleAdsLinks": { "methods": ["listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinks", "listGoogleAdsLinksPagedCallable", "listGoogleAdsLinksCallable"] }, - "ListIosAppDataStreams": { - "methods": ["listIosAppDataStreams", "listIosAppDataStreams", "listIosAppDataStreams", "listIosAppDataStreamsPagedCallable", "listIosAppDataStreamsCallable"] - }, "ListMeasurementProtocolSecrets": { "methods": ["listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecretsPagedCallable", "listMeasurementProtocolSecretsCallable"] }, @@ -211,9 +184,6 @@ "ListUserLinks": { "methods": ["listUserLinks", "listUserLinks", "listUserLinks", "listUserLinks", "listUserLinksPagedCallable", "listUserLinksCallable"] }, - "ListWebDataStreams": { - "methods": ["listWebDataStreams", "listWebDataStreams", "listWebDataStreams", "listWebDataStreamsPagedCallable", "listWebDataStreamsCallable"] - }, "ProvisionAccountTicket": { "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] }, @@ -223,9 +193,6 @@ "UpdateAccount": { "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] }, - "UpdateAndroidAppDataStream": { - "methods": ["updateAndroidAppDataStream", "updateAndroidAppDataStream", "updateAndroidAppDataStreamCallable"] - }, "UpdateCustomDimension": { "methods": ["updateCustomDimension", "updateCustomDimension", "updateCustomDimensionCallable"] }, @@ -247,9 +214,6 @@ "UpdateGoogleSignalsSettings": { "methods": ["updateGoogleSignalsSettings", "updateGoogleSignalsSettings", "updateGoogleSignalsSettingsCallable"] }, - "UpdateIosAppDataStream": { - "methods": ["updateIosAppDataStream", "updateIosAppDataStream", "updateIosAppDataStreamCallable"] - }, "UpdateMeasurementProtocolSecret": { "methods": ["updateMeasurementProtocolSecret", "updateMeasurementProtocolSecret", "updateMeasurementProtocolSecretCallable"] }, @@ -258,9 +222,6 @@ }, "UpdateUserLink": { "methods": ["updateUserLink", "updateUserLink", "updateUserLinkCallable"] - }, - "UpdateWebDataStream": { - "methods": ["updateWebDataStream", "updateWebDataStream", "updateWebDataStreamCallable"] } } } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index f82a1ad5..cd4db84c 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -19,7 +19,6 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; @@ -28,17 +27,14 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.AndroidAppDataStream; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; @@ -65,30 +61,25 @@ import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -99,21 +90,16 @@ import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; import com.google.analytics.admin.v1alpha.GetUserLinkRequest; -import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; -import com.google.analytics.admin.v1alpha.IosAppDataStream; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; -import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -130,16 +116,12 @@ import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; -import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1alpha.ListPropertiesRequest; import com.google.analytics.admin.v1alpha.ListPropertiesResponse; import com.google.analytics.admin.v1alpha.ListUserLinksRequest; import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -147,7 +129,6 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -155,13 +136,10 @@ import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.WebDataStream; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -291,84 +269,6 @@ public UnaryCallable batchDeleteUserLinksCal throw new UnsupportedOperationException("Not implemented: batchDeleteUserLinksCallable()"); } - public UnaryCallable getWebDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: getWebDataStreamCallable()"); - } - - public UnaryCallable deleteWebDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: deleteWebDataStreamCallable()"); - } - - public UnaryCallable updateWebDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: updateWebDataStreamCallable()"); - } - - public UnaryCallable createWebDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: createWebDataStreamCallable()"); - } - - public UnaryCallable - listWebDataStreamsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listWebDataStreamsPagedCallable()"); - } - - public UnaryCallable - listWebDataStreamsCallable() { - throw new UnsupportedOperationException("Not implemented: listWebDataStreamsCallable()"); - } - - public UnaryCallable getIosAppDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: getIosAppDataStreamCallable()"); - } - - public UnaryCallable deleteIosAppDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: deleteIosAppDataStreamCallable()"); - } - - public UnaryCallable - updateIosAppDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: updateIosAppDataStreamCallable()"); - } - - public UnaryCallable - listIosAppDataStreamsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listIosAppDataStreamsPagedCallable()"); - } - - public UnaryCallable - listIosAppDataStreamsCallable() { - throw new UnsupportedOperationException("Not implemented: listIosAppDataStreamsCallable()"); - } - - public UnaryCallable - getAndroidAppDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: getAndroidAppDataStreamCallable()"); - } - - public UnaryCallable - deleteAndroidAppDataStreamCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteAndroidAppDataStreamCallable()"); - } - - public UnaryCallable - updateAndroidAppDataStreamCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateAndroidAppDataStreamCallable()"); - } - - public UnaryCallable - listAndroidAppDataStreamsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listAndroidAppDataStreamsPagedCallable()"); - } - - public UnaryCallable - listAndroidAppDataStreamsCallable() { - throw new UnsupportedOperationException("Not implemented: listAndroidAppDataStreamsCallable()"); - } - public UnaryCallable createFirebaseLinkCallable() { throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index de795c44..cd4d9406 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -19,7 +19,6 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; @@ -28,18 +27,15 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AccountSummary; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.AndroidAppDataStream; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; @@ -68,30 +64,25 @@ import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -102,21 +93,16 @@ import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; import com.google.analytics.admin.v1alpha.GetUserLinkRequest; -import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; -import com.google.analytics.admin.v1alpha.IosAppDataStream; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; -import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -133,16 +119,12 @@ import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; -import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1alpha.ListPropertiesRequest; import com.google.analytics.admin.v1alpha.ListPropertiesResponse; import com.google.analytics.admin.v1alpha.ListUserLinksRequest; import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -150,7 +132,6 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -158,13 +139,10 @@ import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.WebDataStream; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -281,37 +259,6 @@ public class AnalyticsAdminServiceStubSettings batchUpdateUserLinksSettings; private final UnaryCallSettings deleteUserLinkSettings; private final UnaryCallSettings batchDeleteUserLinksSettings; - private final UnaryCallSettings getWebDataStreamSettings; - private final UnaryCallSettings deleteWebDataStreamSettings; - private final UnaryCallSettings - updateWebDataStreamSettings; - private final UnaryCallSettings - createWebDataStreamSettings; - private final PagedCallSettings< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - listWebDataStreamsSettings; - private final UnaryCallSettings - getIosAppDataStreamSettings; - private final UnaryCallSettings - deleteIosAppDataStreamSettings; - private final UnaryCallSettings - updateIosAppDataStreamSettings; - private final PagedCallSettings< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - listIosAppDataStreamsSettings; - private final UnaryCallSettings - getAndroidAppDataStreamSettings; - private final UnaryCallSettings - deleteAndroidAppDataStreamSettings; - private final UnaryCallSettings - updateAndroidAppDataStreamSettings; - private final PagedCallSettings< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsSettings; private final UnaryCallSettings createFirebaseLinkSettings; private final UnaryCallSettings deleteFirebaseLinkSettings; @@ -622,134 +569,6 @@ public Iterable extractResources(AuditUserLinksResponse payload) } }; - private static final PagedListDescriptor< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, WebDataStream> - LIST_WEB_DATA_STREAMS_PAGE_STR_DESC = - new PagedListDescriptor< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, WebDataStream>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListWebDataStreamsRequest injectToken( - ListWebDataStreamsRequest payload, String token) { - return ListWebDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListWebDataStreamsRequest injectPageSize( - ListWebDataStreamsRequest payload, int pageSize) { - return ListWebDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListWebDataStreamsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListWebDataStreamsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListWebDataStreamsResponse payload) { - return payload.getWebDataStreamsList() == null - ? ImmutableList.of() - : payload.getWebDataStreamsList(); - } - }; - - private static final PagedListDescriptor< - ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, IosAppDataStream> - LIST_IOS_APP_DATA_STREAMS_PAGE_STR_DESC = - new PagedListDescriptor< - ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, IosAppDataStream>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListIosAppDataStreamsRequest injectToken( - ListIosAppDataStreamsRequest payload, String token) { - return ListIosAppDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListIosAppDataStreamsRequest injectPageSize( - ListIosAppDataStreamsRequest payload, int pageSize) { - return ListIosAppDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListIosAppDataStreamsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListIosAppDataStreamsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListIosAppDataStreamsResponse payload) { - return payload.getIosAppDataStreamsList() == null - ? ImmutableList.of() - : payload.getIosAppDataStreamsList(); - } - }; - - private static final PagedListDescriptor< - ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse, AndroidAppDataStream> - LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_DESC = - new PagedListDescriptor< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListAndroidAppDataStreamsRequest injectToken( - ListAndroidAppDataStreamsRequest payload, String token) { - return ListAndroidAppDataStreamsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListAndroidAppDataStreamsRequest injectPageSize( - ListAndroidAppDataStreamsRequest payload, int pageSize) { - return ListAndroidAppDataStreamsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListAndroidAppDataStreamsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListAndroidAppDataStreamsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListAndroidAppDataStreamsResponse payload) { - return payload.getAndroidAppDataStreamsList() == null - ? ImmutableList.of() - : payload.getAndroidAppDataStreamsList(); - } - }; - private static final PagedListDescriptor< ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> LIST_FIREBASE_LINKS_PAGE_STR_DESC = @@ -1280,79 +1099,6 @@ public ApiFuture getFuturePagedResponse( } }; - private static final PagedListResponseFactory< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - LIST_WEB_DATA_STREAMS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListWebDataStreamsRequest, - ListWebDataStreamsResponse, - ListWebDataStreamsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListWebDataStreamsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_WEB_DATA_STREAMS_PAGE_STR_DESC, request, context); - return ListWebDataStreamsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - LIST_IOS_APP_DATA_STREAMS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListIosAppDataStreamsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, IosAppDataStream> - pageContext = - PageContext.create( - callable, LIST_IOS_APP_DATA_STREAMS_PAGE_STR_DESC, request, context); - return ListIosAppDataStreamsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - ListAndroidAppDataStreamsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - AndroidAppDataStream> - pageContext = - PageContext.create( - callable, LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_DESC, request, context); - return ListAndroidAppDataStreamsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - private static final PagedListResponseFactory< ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> LIST_FIREBASE_LINKS_PAGE_STR_FACT = @@ -1729,88 +1475,6 @@ public UnaryCallSettings batchDeleteUserLink return batchDeleteUserLinksSettings; } - /** Returns the object with the settings used for calls to getWebDataStream. */ - public UnaryCallSettings getWebDataStreamSettings() { - return getWebDataStreamSettings; - } - - /** Returns the object with the settings used for calls to deleteWebDataStream. */ - public UnaryCallSettings deleteWebDataStreamSettings() { - return deleteWebDataStreamSettings; - } - - /** Returns the object with the settings used for calls to updateWebDataStream. */ - public UnaryCallSettings - updateWebDataStreamSettings() { - return updateWebDataStreamSettings; - } - - /** Returns the object with the settings used for calls to createWebDataStream. */ - public UnaryCallSettings - createWebDataStreamSettings() { - return createWebDataStreamSettings; - } - - /** Returns the object with the settings used for calls to listWebDataStreams. */ - public PagedCallSettings< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - listWebDataStreamsSettings() { - return listWebDataStreamsSettings; - } - - /** Returns the object with the settings used for calls to getIosAppDataStream. */ - public UnaryCallSettings - getIosAppDataStreamSettings() { - return getIosAppDataStreamSettings; - } - - /** Returns the object with the settings used for calls to deleteIosAppDataStream. */ - public UnaryCallSettings deleteIosAppDataStreamSettings() { - return deleteIosAppDataStreamSettings; - } - - /** Returns the object with the settings used for calls to updateIosAppDataStream. */ - public UnaryCallSettings - updateIosAppDataStreamSettings() { - return updateIosAppDataStreamSettings; - } - - /** Returns the object with the settings used for calls to listIosAppDataStreams. */ - public PagedCallSettings< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - listIosAppDataStreamsSettings() { - return listIosAppDataStreamsSettings; - } - - /** Returns the object with the settings used for calls to getAndroidAppDataStream. */ - public UnaryCallSettings - getAndroidAppDataStreamSettings() { - return getAndroidAppDataStreamSettings; - } - - /** Returns the object with the settings used for calls to deleteAndroidAppDataStream. */ - public UnaryCallSettings - deleteAndroidAppDataStreamSettings() { - return deleteAndroidAppDataStreamSettings; - } - - /** Returns the object with the settings used for calls to updateAndroidAppDataStream. */ - public UnaryCallSettings - updateAndroidAppDataStreamSettings() { - return updateAndroidAppDataStreamSettings; - } - - /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ - public PagedCallSettings< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsSettings() { - return listAndroidAppDataStreamsSettings; - } - /** Returns the object with the settings used for calls to createFirebaseLink. */ public UnaryCallSettings createFirebaseLinkSettings() { return createFirebaseLinkSettings; @@ -2242,21 +1906,6 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx batchUpdateUserLinksSettings = settingsBuilder.batchUpdateUserLinksSettings().build(); deleteUserLinkSettings = settingsBuilder.deleteUserLinkSettings().build(); batchDeleteUserLinksSettings = settingsBuilder.batchDeleteUserLinksSettings().build(); - getWebDataStreamSettings = settingsBuilder.getWebDataStreamSettings().build(); - deleteWebDataStreamSettings = settingsBuilder.deleteWebDataStreamSettings().build(); - updateWebDataStreamSettings = settingsBuilder.updateWebDataStreamSettings().build(); - createWebDataStreamSettings = settingsBuilder.createWebDataStreamSettings().build(); - listWebDataStreamsSettings = settingsBuilder.listWebDataStreamsSettings().build(); - getIosAppDataStreamSettings = settingsBuilder.getIosAppDataStreamSettings().build(); - deleteIosAppDataStreamSettings = settingsBuilder.deleteIosAppDataStreamSettings().build(); - updateIosAppDataStreamSettings = settingsBuilder.updateIosAppDataStreamSettings().build(); - listIosAppDataStreamsSettings = settingsBuilder.listIosAppDataStreamsSettings().build(); - getAndroidAppDataStreamSettings = settingsBuilder.getAndroidAppDataStreamSettings().build(); - deleteAndroidAppDataStreamSettings = - settingsBuilder.deleteAndroidAppDataStreamSettings().build(); - updateAndroidAppDataStreamSettings = - settingsBuilder.updateAndroidAppDataStreamSettings().build(); - listAndroidAppDataStreamsSettings = settingsBuilder.listAndroidAppDataStreamsSettings().build(); createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build(); listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build(); @@ -2373,39 +2022,6 @@ public static class Builder private final UnaryCallSettings.Builder deleteUserLinkSettings; private final UnaryCallSettings.Builder batchDeleteUserLinksSettings; - private final UnaryCallSettings.Builder - getWebDataStreamSettings; - private final UnaryCallSettings.Builder - deleteWebDataStreamSettings; - private final UnaryCallSettings.Builder - updateWebDataStreamSettings; - private final UnaryCallSettings.Builder - createWebDataStreamSettings; - private final PagedCallSettings.Builder< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - listWebDataStreamsSettings; - private final UnaryCallSettings.Builder - getIosAppDataStreamSettings; - private final UnaryCallSettings.Builder - deleteIosAppDataStreamSettings; - private final UnaryCallSettings.Builder - updateIosAppDataStreamSettings; - private final PagedCallSettings.Builder< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - listIosAppDataStreamsSettings; - private final UnaryCallSettings.Builder - getAndroidAppDataStreamSettings; - private final UnaryCallSettings.Builder - deleteAndroidAppDataStreamSettings; - private final UnaryCallSettings.Builder - updateAndroidAppDataStreamSettings; - private final PagedCallSettings.Builder< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsSettings; private final UnaryCallSettings.Builder createFirebaseLinkSettings; private final UnaryCallSettings.Builder @@ -2550,8 +2166,6 @@ public static class Builder static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "retry_policy_0_codes", ImmutableSet.copyOf( @@ -2565,14 +2179,6 @@ public static class Builder static { ImmutableMap.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); settings = RetrySettings.newBuilder() .setInitialRetryDelay(Duration.ofMillis(1000L)) @@ -2616,22 +2222,6 @@ protected Builder(ClientContext clientContext) { batchUpdateUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); batchDeleteUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createWebDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listWebDataStreamsSettings = - PagedCallSettings.newBuilder(LIST_WEB_DATA_STREAMS_PAGE_STR_FACT); - getIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listIosAppDataStreamsSettings = - PagedCallSettings.newBuilder(LIST_IOS_APP_DATA_STREAMS_PAGE_STR_FACT); - getAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listAndroidAppDataStreamsSettings = - PagedCallSettings.newBuilder(LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT); createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT); @@ -2719,19 +2309,6 @@ protected Builder(ClientContext clientContext) { batchUpdateUserLinksSettings, deleteUserLinkSettings, batchDeleteUserLinksSettings, - getWebDataStreamSettings, - deleteWebDataStreamSettings, - updateWebDataStreamSettings, - createWebDataStreamSettings, - listWebDataStreamsSettings, - getIosAppDataStreamSettings, - deleteIosAppDataStreamSettings, - updateIosAppDataStreamSettings, - listIosAppDataStreamsSettings, - getAndroidAppDataStreamSettings, - deleteAndroidAppDataStreamSettings, - updateAndroidAppDataStreamSettings, - listAndroidAppDataStreamsSettings, createFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, @@ -2809,19 +2386,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { batchUpdateUserLinksSettings = settings.batchUpdateUserLinksSettings.toBuilder(); deleteUserLinkSettings = settings.deleteUserLinkSettings.toBuilder(); batchDeleteUserLinksSettings = settings.batchDeleteUserLinksSettings.toBuilder(); - getWebDataStreamSettings = settings.getWebDataStreamSettings.toBuilder(); - deleteWebDataStreamSettings = settings.deleteWebDataStreamSettings.toBuilder(); - updateWebDataStreamSettings = settings.updateWebDataStreamSettings.toBuilder(); - createWebDataStreamSettings = settings.createWebDataStreamSettings.toBuilder(); - listWebDataStreamsSettings = settings.listWebDataStreamsSettings.toBuilder(); - getIosAppDataStreamSettings = settings.getIosAppDataStreamSettings.toBuilder(); - deleteIosAppDataStreamSettings = settings.deleteIosAppDataStreamSettings.toBuilder(); - updateIosAppDataStreamSettings = settings.updateIosAppDataStreamSettings.toBuilder(); - listIosAppDataStreamsSettings = settings.listIosAppDataStreamsSettings.toBuilder(); - getAndroidAppDataStreamSettings = settings.getAndroidAppDataStreamSettings.toBuilder(); - deleteAndroidAppDataStreamSettings = settings.deleteAndroidAppDataStreamSettings.toBuilder(); - updateAndroidAppDataStreamSettings = settings.updateAndroidAppDataStreamSettings.toBuilder(); - listAndroidAppDataStreamsSettings = settings.listAndroidAppDataStreamsSettings.toBuilder(); createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder(); listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder(); @@ -2915,19 +2479,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { batchUpdateUserLinksSettings, deleteUserLinkSettings, batchDeleteUserLinksSettings, - getWebDataStreamSettings, - deleteWebDataStreamSettings, - updateWebDataStreamSettings, - createWebDataStreamSettings, - listWebDataStreamsSettings, - getIosAppDataStreamSettings, - deleteIosAppDataStreamSettings, - updateIosAppDataStreamSettings, - listIosAppDataStreamsSettings, - getAndroidAppDataStreamSettings, - deleteAndroidAppDataStreamSettings, - updateAndroidAppDataStreamSettings, - listAndroidAppDataStreamsSettings, createFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, @@ -2996,28 +2547,28 @@ private static Builder createDefault() { private static Builder initDefaults(Builder builder) { builder .getAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listAccountsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .provisionAccountTicketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listAccountSummariesSettings() @@ -3026,183 +2577,118 @@ private static Builder initDefaults(Builder builder) { builder .getPropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listPropertiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createPropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deletePropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updatePropertySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .batchGetUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .auditUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .batchCreateUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .batchUpdateUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .batchDeleteUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getWebDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteWebDataStreamSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - builder - .updateWebDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createWebDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listWebDataStreamsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getIosAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteIosAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateIosAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listIosAppDataStreamsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getAndroidAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteAndroidAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateAndroidAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listAndroidAppDataStreamsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .createFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listFirebaseLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getGlobalSiteTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteGoogleAdsLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listGoogleAdsLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getDataSharingSettingsSettings() @@ -3554,91 +3040,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return batchDeleteUserLinksSettings; } - /** Returns the builder for the settings used for calls to getWebDataStream. */ - public UnaryCallSettings.Builder - getWebDataStreamSettings() { - return getWebDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to deleteWebDataStream. */ - public UnaryCallSettings.Builder - deleteWebDataStreamSettings() { - return deleteWebDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to updateWebDataStream. */ - public UnaryCallSettings.Builder - updateWebDataStreamSettings() { - return updateWebDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to createWebDataStream. */ - public UnaryCallSettings.Builder - createWebDataStreamSettings() { - return createWebDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to listWebDataStreams. */ - public PagedCallSettings.Builder< - ListWebDataStreamsRequest, ListWebDataStreamsResponse, ListWebDataStreamsPagedResponse> - listWebDataStreamsSettings() { - return listWebDataStreamsSettings; - } - - /** Returns the builder for the settings used for calls to getIosAppDataStream. */ - public UnaryCallSettings.Builder - getIosAppDataStreamSettings() { - return getIosAppDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to deleteIosAppDataStream. */ - public UnaryCallSettings.Builder - deleteIosAppDataStreamSettings() { - return deleteIosAppDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to updateIosAppDataStream. */ - public UnaryCallSettings.Builder - updateIosAppDataStreamSettings() { - return updateIosAppDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ - public PagedCallSettings.Builder< - ListIosAppDataStreamsRequest, - ListIosAppDataStreamsResponse, - ListIosAppDataStreamsPagedResponse> - listIosAppDataStreamsSettings() { - return listIosAppDataStreamsSettings; - } - - /** Returns the builder for the settings used for calls to getAndroidAppDataStream. */ - public UnaryCallSettings.Builder - getAndroidAppDataStreamSettings() { - return getAndroidAppDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to deleteAndroidAppDataStream. */ - public UnaryCallSettings.Builder - deleteAndroidAppDataStreamSettings() { - return deleteAndroidAppDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to updateAndroidAppDataStream. */ - public UnaryCallSettings.Builder - updateAndroidAppDataStreamSettings() { - return updateAndroidAppDataStreamSettings; - } - - /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ - public PagedCallSettings.Builder< - ListAndroidAppDataStreamsRequest, - ListAndroidAppDataStreamsResponse, - ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsSettings() { - return listAndroidAppDataStreamsSettings; - } - /** Returns the builder for the settings used for calls to createFirebaseLink. */ public UnaryCallSettings.Builder createFirebaseLinkSettings() { diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 87e60817..b1225128 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -19,7 +19,6 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; @@ -28,17 +27,14 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.AndroidAppDataStream; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; @@ -65,30 +61,25 @@ import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; @@ -99,21 +90,16 @@ import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; import com.google.analytics.admin.v1alpha.GetUserLinkRequest; -import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; -import com.google.analytics.admin.v1alpha.IosAppDataStream; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; import com.google.analytics.admin.v1alpha.ListAccountsRequest; import com.google.analytics.admin.v1alpha.ListAccountsResponse; -import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; @@ -130,16 +116,12 @@ import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; -import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1alpha.ListPropertiesRequest; import com.google.analytics.admin.v1alpha.ListPropertiesResponse; import com.google.analytics.admin.v1alpha.ListUserLinksRequest; import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -147,7 +129,6 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; @@ -155,13 +136,10 @@ import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.WebDataStream; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -416,156 +394,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private static final MethodDescriptor - getWebDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetWebDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(GetWebDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WebDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteWebDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteWebDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteWebDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateWebDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateWebDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateWebDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WebDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createWebDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateWebDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateWebDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(WebDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listWebDataStreamsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListWebDataStreams") - .setRequestMarshaller( - ProtoUtils.marshaller(ListWebDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListWebDataStreamsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getIosAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetIosAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(GetIosAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteIosAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteIosAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteIosAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateIosAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateIosAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateIosAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listIosAppDataStreamsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListIosAppDataStreams") - .setRequestMarshaller( - ProtoUtils.marshaller(ListIosAppDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListIosAppDataStreamsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getAndroidAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAndroidAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAndroidAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteAndroidAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAndroidAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAndroidAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAndroidAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAndroidAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAndroidAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse> - listAndroidAppDataStreamsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAndroidAppDataStreams") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAndroidAppDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAndroidAppDataStreamsResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor createFirebaseLinkMethodDescriptor = MethodDescriptor.newBuilder() @@ -1244,36 +1072,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { batchUpdateUserLinksCallable; private final UnaryCallable deleteUserLinkCallable; private final UnaryCallable batchDeleteUserLinksCallable; - private final UnaryCallable getWebDataStreamCallable; - private final UnaryCallable deleteWebDataStreamCallable; - private final UnaryCallable - updateWebDataStreamCallable; - private final UnaryCallable - createWebDataStreamCallable; - private final UnaryCallable - listWebDataStreamsCallable; - private final UnaryCallable - listWebDataStreamsPagedCallable; - private final UnaryCallable - getIosAppDataStreamCallable; - private final UnaryCallable deleteIosAppDataStreamCallable; - private final UnaryCallable - updateIosAppDataStreamCallable; - private final UnaryCallable - listIosAppDataStreamsCallable; - private final UnaryCallable - listIosAppDataStreamsPagedCallable; - private final UnaryCallable - getAndroidAppDataStreamCallable; - private final UnaryCallable - deleteAndroidAppDataStreamCallable; - private final UnaryCallable - updateAndroidAppDataStreamCallable; - private final UnaryCallable - listAndroidAppDataStreamsCallable; - private final UnaryCallable< - ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsPagedResponse> - listAndroidAppDataStreamsPagedCallable; private final UnaryCallable createFirebaseLinkCallable; private final UnaryCallable deleteFirebaseLinkCallable; private final UnaryCallable @@ -1632,154 +1430,6 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); - GrpcCallSettings getWebDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getWebDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteWebDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteWebDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateWebDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateWebDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "web_data_stream.name", - String.valueOf(request.getWebDataStream().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createWebDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createWebDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - listWebDataStreamsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listWebDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getIosAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIosAppDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteIosAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteIosAppDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateIosAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateIosAppDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "ios_app_data_stream.name", - String.valueOf(request.getIosAppDataStream().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listIosAppDataStreamsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listIosAppDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getAndroidAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAndroidAppDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteAndroidAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAndroidAppDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateAndroidAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAndroidAppDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "android_app_data_stream.name", - String.valueOf(request.getAndroidAppDataStream().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listAndroidAppDataStreamsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listAndroidAppDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); GrpcCallSettings createFirebaseLinkTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createFirebaseLinkMethodDescriptor) @@ -2464,84 +2114,6 @@ protected GrpcAnalyticsAdminServiceStub( batchDeleteUserLinksTransportSettings, settings.batchDeleteUserLinksSettings(), clientContext); - this.getWebDataStreamCallable = - callableFactory.createUnaryCallable( - getWebDataStreamTransportSettings, settings.getWebDataStreamSettings(), clientContext); - this.deleteWebDataStreamCallable = - callableFactory.createUnaryCallable( - deleteWebDataStreamTransportSettings, - settings.deleteWebDataStreamSettings(), - clientContext); - this.updateWebDataStreamCallable = - callableFactory.createUnaryCallable( - updateWebDataStreamTransportSettings, - settings.updateWebDataStreamSettings(), - clientContext); - this.createWebDataStreamCallable = - callableFactory.createUnaryCallable( - createWebDataStreamTransportSettings, - settings.createWebDataStreamSettings(), - clientContext); - this.listWebDataStreamsCallable = - callableFactory.createUnaryCallable( - listWebDataStreamsTransportSettings, - settings.listWebDataStreamsSettings(), - clientContext); - this.listWebDataStreamsPagedCallable = - callableFactory.createPagedCallable( - listWebDataStreamsTransportSettings, - settings.listWebDataStreamsSettings(), - clientContext); - this.getIosAppDataStreamCallable = - callableFactory.createUnaryCallable( - getIosAppDataStreamTransportSettings, - settings.getIosAppDataStreamSettings(), - clientContext); - this.deleteIosAppDataStreamCallable = - callableFactory.createUnaryCallable( - deleteIosAppDataStreamTransportSettings, - settings.deleteIosAppDataStreamSettings(), - clientContext); - this.updateIosAppDataStreamCallable = - callableFactory.createUnaryCallable( - updateIosAppDataStreamTransportSettings, - settings.updateIosAppDataStreamSettings(), - clientContext); - this.listIosAppDataStreamsCallable = - callableFactory.createUnaryCallable( - listIosAppDataStreamsTransportSettings, - settings.listIosAppDataStreamsSettings(), - clientContext); - this.listIosAppDataStreamsPagedCallable = - callableFactory.createPagedCallable( - listIosAppDataStreamsTransportSettings, - settings.listIosAppDataStreamsSettings(), - clientContext); - this.getAndroidAppDataStreamCallable = - callableFactory.createUnaryCallable( - getAndroidAppDataStreamTransportSettings, - settings.getAndroidAppDataStreamSettings(), - clientContext); - this.deleteAndroidAppDataStreamCallable = - callableFactory.createUnaryCallable( - deleteAndroidAppDataStreamTransportSettings, - settings.deleteAndroidAppDataStreamSettings(), - clientContext); - this.updateAndroidAppDataStreamCallable = - callableFactory.createUnaryCallable( - updateAndroidAppDataStreamTransportSettings, - settings.updateAndroidAppDataStreamSettings(), - clientContext); - this.listAndroidAppDataStreamsCallable = - callableFactory.createUnaryCallable( - listAndroidAppDataStreamsTransportSettings, - settings.listAndroidAppDataStreamsSettings(), - clientContext); - this.listAndroidAppDataStreamsPagedCallable = - callableFactory.createPagedCallable( - listAndroidAppDataStreamsTransportSettings, - settings.listAndroidAppDataStreamsSettings(), - clientContext); this.createFirebaseLinkCallable = callableFactory.createUnaryCallable( createFirebaseLinkTransportSettings, @@ -2974,96 +2546,6 @@ public UnaryCallable batchDeleteUserLinksCal return batchDeleteUserLinksCallable; } - @Override - public UnaryCallable getWebDataStreamCallable() { - return getWebDataStreamCallable; - } - - @Override - public UnaryCallable deleteWebDataStreamCallable() { - return deleteWebDataStreamCallable; - } - - @Override - public UnaryCallable updateWebDataStreamCallable() { - return updateWebDataStreamCallable; - } - - @Override - public UnaryCallable createWebDataStreamCallable() { - return createWebDataStreamCallable; - } - - @Override - public UnaryCallable - listWebDataStreamsCallable() { - return listWebDataStreamsCallable; - } - - @Override - public UnaryCallable - listWebDataStreamsPagedCallable() { - return listWebDataStreamsPagedCallable; - } - - @Override - public UnaryCallable getIosAppDataStreamCallable() { - return getIosAppDataStreamCallable; - } - - @Override - public UnaryCallable deleteIosAppDataStreamCallable() { - return deleteIosAppDataStreamCallable; - } - - @Override - public UnaryCallable - updateIosAppDataStreamCallable() { - return updateIosAppDataStreamCallable; - } - - @Override - public UnaryCallable - listIosAppDataStreamsCallable() { - return listIosAppDataStreamsCallable; - } - - @Override - public UnaryCallable - listIosAppDataStreamsPagedCallable() { - return listIosAppDataStreamsPagedCallable; - } - - @Override - public UnaryCallable - getAndroidAppDataStreamCallable() { - return getAndroidAppDataStreamCallable; - } - - @Override - public UnaryCallable - deleteAndroidAppDataStreamCallable() { - return deleteAndroidAppDataStreamCallable; - } - - @Override - public UnaryCallable - updateAndroidAppDataStreamCallable() { - return updateAndroidAppDataStreamCallable; - } - - @Override - public UnaryCallable - listAndroidAppDataStreamsCallable() { - return listAndroidAppDataStreamsCallable; - } - - @Override - public UnaryCallable - listAndroidAppDataStreamsPagedCallable() { - return listAndroidAppDataStreamsPagedCallable; - } - @Override public UnaryCallable createFirebaseLinkCallable() { return createFirebaseLinkCallable; diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index de3834cb..870ef2dc 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -19,7 +19,6 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; @@ -28,11 +27,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -1508,989 +1505,6 @@ public void batchDeleteUserLinksExceptionTest() throws Exception { } } - @Test - public void getWebDataStreamTest() throws Exception { - WebDataStream expectedResponse = - WebDataStream.newBuilder() - .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setMeasurementId("measurementId1655367159") - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDefaultUri("defaultUri678642539") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); - - WebDataStream actualResponse = client.getWebDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWebDataStreamRequest actualRequest = ((GetWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWebDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); - client.getWebDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWebDataStreamTest2() throws Exception { - WebDataStream expectedResponse = - WebDataStream.newBuilder() - .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setMeasurementId("measurementId1655367159") - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDefaultUri("defaultUri678642539") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - WebDataStream actualResponse = client.getWebDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWebDataStreamRequest actualRequest = ((GetWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWebDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getWebDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWebDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); - - client.deleteWebDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWebDataStreamRequest actualRequest = ((DeleteWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWebDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - WebDataStreamName name = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); - client.deleteWebDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteWebDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteWebDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteWebDataStreamRequest actualRequest = ((DeleteWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteWebDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteWebDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateWebDataStreamTest() throws Exception { - WebDataStream expectedResponse = - WebDataStream.newBuilder() - .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setMeasurementId("measurementId1655367159") - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDefaultUri("defaultUri678642539") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - WebDataStream webDataStream = WebDataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - WebDataStream actualResponse = client.updateWebDataStream(webDataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateWebDataStreamRequest actualRequest = ((UpdateWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(webDataStream, actualRequest.getWebDataStream()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateWebDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - WebDataStream webDataStream = WebDataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateWebDataStream(webDataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWebDataStreamTest() throws Exception { - WebDataStream expectedResponse = - WebDataStream.newBuilder() - .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setMeasurementId("measurementId1655367159") - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDefaultUri("defaultUri678642539") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - WebDataStream webDataStream = WebDataStream.newBuilder().build(); - - WebDataStream actualResponse = client.createWebDataStream(parent, webDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWebDataStreamRequest actualRequest = ((CreateWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(webDataStream, actualRequest.getWebDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWebDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - WebDataStream webDataStream = WebDataStream.newBuilder().build(); - client.createWebDataStream(parent, webDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createWebDataStreamTest2() throws Exception { - WebDataStream expectedResponse = - WebDataStream.newBuilder() - .setName(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setMeasurementId("measurementId1655367159") - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setDefaultUri("defaultUri678642539") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - WebDataStream webDataStream = WebDataStream.newBuilder().build(); - - WebDataStream actualResponse = client.createWebDataStream(parent, webDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateWebDataStreamRequest actualRequest = ((CreateWebDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(webDataStream, actualRequest.getWebDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createWebDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - WebDataStream webDataStream = WebDataStream.newBuilder().build(); - client.createWebDataStream(parent, webDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWebDataStreamsTest() throws Exception { - WebDataStream responsesElement = WebDataStream.newBuilder().build(); - ListWebDataStreamsResponse expectedResponse = - ListWebDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllWebDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListWebDataStreamsPagedResponse pagedListResponse = client.listWebDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWebDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWebDataStreamsRequest actualRequest = ((ListWebDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWebDataStreamsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listWebDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWebDataStreamsTest2() throws Exception { - WebDataStream responsesElement = WebDataStream.newBuilder().build(); - ListWebDataStreamsResponse expectedResponse = - ListWebDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllWebDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListWebDataStreamsPagedResponse pagedListResponse = client.listWebDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWebDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWebDataStreamsRequest actualRequest = ((ListWebDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWebDataStreamsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listWebDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIosAppDataStreamTest() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); - - IosAppDataStream actualResponse = client.getIosAppDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIosAppDataStreamRequest actualRequest = ((GetIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIosAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); - client.getIosAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIosAppDataStreamTest2() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - IosAppDataStream actualResponse = client.getIosAppDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIosAppDataStreamRequest actualRequest = ((GetIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIosAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getIosAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteIosAppDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); - - client.deleteIosAppDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteIosAppDataStreamRequest actualRequest = - ((DeleteIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteIosAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - IosAppDataStreamName name = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]"); - client.deleteIosAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteIosAppDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteIosAppDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteIosAppDataStreamRequest actualRequest = - ((DeleteIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteIosAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteIosAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateIosAppDataStreamTest() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - IosAppDataStream actualResponse = client.updateIosAppDataStream(iosAppDataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateIosAppDataStreamRequest actualRequest = - ((UpdateIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateIosAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateIosAppDataStream(iosAppDataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listIosAppDataStreamsTest() throws Exception { - IosAppDataStream responsesElement = IosAppDataStream.newBuilder().build(); - ListIosAppDataStreamsResponse expectedResponse = - ListIosAppDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllIosAppDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListIosAppDataStreamsPagedResponse pagedListResponse = client.listIosAppDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getIosAppDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListIosAppDataStreamsRequest actualRequest = - ((ListIosAppDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listIosAppDataStreamsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listIosAppDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listIosAppDataStreamsTest2() throws Exception { - IosAppDataStream responsesElement = IosAppDataStream.newBuilder().build(); - ListIosAppDataStreamsResponse expectedResponse = - ListIosAppDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllIosAppDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListIosAppDataStreamsPagedResponse pagedListResponse = client.listIosAppDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getIosAppDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListIosAppDataStreamsRequest actualRequest = - ((ListIosAppDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listIosAppDataStreamsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listIosAppDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAndroidAppDataStreamTest() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AndroidAppDataStreamName name = - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); - - AndroidAppDataStream actualResponse = client.getAndroidAppDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAndroidAppDataStreamRequest actualRequest = - ((GetAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAndroidAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AndroidAppDataStreamName name = - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); - client.getAndroidAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getAndroidAppDataStreamTest2() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - AndroidAppDataStream actualResponse = client.getAndroidAppDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAndroidAppDataStreamRequest actualRequest = - ((GetAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAndroidAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getAndroidAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAndroidAppDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AndroidAppDataStreamName name = - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); - - client.deleteAndroidAppDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAndroidAppDataStreamRequest actualRequest = - ((DeleteAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAndroidAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AndroidAppDataStreamName name = - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]"); - client.deleteAndroidAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteAndroidAppDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteAndroidAppDataStream(name); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteAndroidAppDataStreamRequest actualRequest = - ((DeleteAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteAndroidAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteAndroidAppDataStream(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateAndroidAppDataStreamTest() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - AndroidAppDataStream actualResponse = - client.updateAndroidAppDataStream(androidAppDataStream, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateAndroidAppDataStreamRequest actualRequest = - ((UpdateAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateAndroidAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAndroidAppDataStream(androidAppDataStream, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAndroidAppDataStreamsTest() throws Exception { - AndroidAppDataStream responsesElement = AndroidAppDataStream.newBuilder().build(); - ListAndroidAppDataStreamsResponse expectedResponse = - ListAndroidAppDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllAndroidAppDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListAndroidAppDataStreamsPagedResponse pagedListResponse = - client.listAndroidAppDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAndroidAppDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAndroidAppDataStreamsRequest actualRequest = - ((ListAndroidAppDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAndroidAppDataStreamsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAndroidAppDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listAndroidAppDataStreamsTest2() throws Exception { - AndroidAppDataStream responsesElement = AndroidAppDataStream.newBuilder().build(); - ListAndroidAppDataStreamsResponse expectedResponse = - ListAndroidAppDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllAndroidAppDataStreams(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListAndroidAppDataStreamsPagedResponse pagedListResponse = - client.listAndroidAppDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAndroidAppDataStreamsList().get(0), resources.get(0)); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListAndroidAppDataStreamsRequest actualRequest = - ((ListAndroidAppDataStreamsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listAndroidAppDataStreamsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listAndroidAppDataStreams(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void createFirebaseLinkTest() throws Exception { FirebaseLink expectedResponse = @@ -2737,12 +1751,12 @@ public void listFirebaseLinksExceptionTest2() throws Exception { public void getGlobalSiteTagTest() throws Exception { GlobalSiteTag expectedResponse = GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]").toString()) + .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .setSnippet("snippet-2061635299") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]"); + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -2764,7 +1778,7 @@ public void getGlobalSiteTagExceptionTest() throws Exception { mockAnalyticsAdminService.addException(exception); try { - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]"); + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); client.getGlobalSiteTag(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -2776,7 +1790,7 @@ public void getGlobalSiteTagExceptionTest() throws Exception { public void getGlobalSiteTagTest2() throws Exception { GlobalSiteTag expectedResponse = GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]").toString()) + .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .setSnippet("snippet-2061635299") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -3202,7 +2216,7 @@ public void getMeasurementProtocolSecretTest() throws Exception { MeasurementProtocolSecret.newBuilder() .setName( MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") .toString()) .setDisplayName("displayName1714148973") .setSecretValue("secretValue-2044460895") @@ -3211,7 +2225,7 @@ public void getMeasurementProtocolSecretTest() throws Exception { MeasurementProtocolSecretName name = MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -3236,7 +2250,7 @@ public void getMeasurementProtocolSecretExceptionTest() throws Exception { try { MeasurementProtocolSecretName name = MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); client.getMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -3250,7 +2264,7 @@ public void getMeasurementProtocolSecretTest2() throws Exception { MeasurementProtocolSecret.newBuilder() .setName( MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") .toString()) .setDisplayName("displayName1714148973") .setSecretValue("secretValue-2044460895") @@ -3298,7 +2312,7 @@ public void listMeasurementProtocolSecretsTest() throws Exception { .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); ListMeasurementProtocolSecretsPagedResponse pagedListResponse = client.listMeasurementProtocolSecrets(parent); @@ -3327,7 +2341,7 @@ public void listMeasurementProtocolSecretsExceptionTest() throws Exception { mockAnalyticsAdminService.addException(exception); try { - WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); client.listMeasurementProtocolSecrets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -3388,14 +2402,14 @@ public void createMeasurementProtocolSecretTest() throws Exception { MeasurementProtocolSecret.newBuilder() .setName( MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") .toString()) .setDisplayName("displayName1714148973") .setSecretValue("secretValue-2044460895") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); MeasurementProtocolSecret measurementProtocolSecret = MeasurementProtocolSecret.newBuilder().build(); @@ -3422,7 +2436,7 @@ public void createMeasurementProtocolSecretExceptionTest() throws Exception { mockAnalyticsAdminService.addException(exception); try { - WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); MeasurementProtocolSecret measurementProtocolSecret = MeasurementProtocolSecret.newBuilder().build(); client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); @@ -3438,7 +2452,7 @@ public void createMeasurementProtocolSecretTest2() throws Exception { MeasurementProtocolSecret.newBuilder() .setName( MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") .toString()) .setDisplayName("displayName1714148973") .setSecretValue("secretValue-2044460895") @@ -3489,7 +2503,7 @@ public void deleteMeasurementProtocolSecretTest() throws Exception { MeasurementProtocolSecretName name = MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); client.deleteMeasurementProtocolSecret(name); @@ -3513,7 +2527,7 @@ public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { try { MeasurementProtocolSecretName name = MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); client.deleteMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -3562,7 +2576,7 @@ public void updateMeasurementProtocolSecretTest() throws Exception { MeasurementProtocolSecret.newBuilder() .setName( MeasurementProtocolSecretName.of( - "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") .toString()) .setDisplayName("displayName1714148973") .setSecretValue("secretValue-2044460895") @@ -5518,6 +4532,7 @@ public void createCustomMetricTest() throws Exception { .setParameterName("parameterName-379607596") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -5562,6 +4577,7 @@ public void createCustomMetricTest2() throws Exception { .setParameterName("parameterName-379607596") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -5606,6 +4622,7 @@ public void updateCustomMetricTest() throws Exception { .setParameterName("parameterName-379607596") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -5806,6 +4823,7 @@ public void getCustomMetricTest() throws Exception { .setParameterName("parameterName-379607596") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -5847,6 +4865,7 @@ public void getCustomMetricTest2() throws Exception { .setParameterName("parameterName-379607596") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index dd896783..784e21fb 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -501,284 +501,6 @@ public void batchDeleteUserLinks( } } - @Override - public void getWebDataStream( - GetWebDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WebDataStream) { - requests.add(request); - responseObserver.onNext(((WebDataStream) 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 GetWebDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WebDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteWebDataStream( - DeleteWebDataStreamRequest 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 DeleteWebDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateWebDataStream( - UpdateWebDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WebDataStream) { - requests.add(request); - responseObserver.onNext(((WebDataStream) 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 UpdateWebDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WebDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createWebDataStream( - CreateWebDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WebDataStream) { - requests.add(request); - responseObserver.onNext(((WebDataStream) 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 CreateWebDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WebDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listWebDataStreams( - ListWebDataStreamsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListWebDataStreamsResponse) { - requests.add(request); - responseObserver.onNext(((ListWebDataStreamsResponse) 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 ListWebDataStreams, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListWebDataStreamsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIosAppDataStream( - GetIosAppDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof IosAppDataStream) { - requests.add(request); - responseObserver.onNext(((IosAppDataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIosAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - IosAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteIosAppDataStream( - DeleteIosAppDataStreamRequest 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 DeleteIosAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateIosAppDataStream( - UpdateIosAppDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof IosAppDataStream) { - requests.add(request); - responseObserver.onNext(((IosAppDataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateIosAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - IosAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listIosAppDataStreams( - ListIosAppDataStreamsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListIosAppDataStreamsResponse) { - requests.add(request); - responseObserver.onNext(((ListIosAppDataStreamsResponse) 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 ListIosAppDataStreams, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListIosAppDataStreamsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getAndroidAppDataStream( - GetAndroidAppDataStreamRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AndroidAppDataStream) { - requests.add(request); - responseObserver.onNext(((AndroidAppDataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetAndroidAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AndroidAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteAndroidAppDataStream( - DeleteAndroidAppDataStreamRequest 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 DeleteAndroidAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateAndroidAppDataStream( - UpdateAndroidAppDataStreamRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AndroidAppDataStream) { - requests.add(request); - responseObserver.onNext(((AndroidAppDataStream) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateAndroidAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AndroidAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listAndroidAppDataStreams( - ListAndroidAppDataStreamsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListAndroidAppDataStreamsResponse) { - requests.add(request); - responseObserver.onNext(((ListAndroidAppDataStreamsResponse) 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 ListAndroidAppDataStreams, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListAndroidAppDataStreamsResponse.class.getName(), - Exception.class.getName()))); - } - } - @Override public void createFirebaseLink( CreateFirebaseLinkRequest request, StreamObserver responseObserver) { diff --git a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index fdd15373..d025ed83 100644 --- a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -16,5 +16,9 @@ com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* * *EnhancedMeasurementSettings*(*) - + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * *DataStream*(*) + \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml index 46ab3724..78604edb 100644 --- a/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.8.4 + 0.9.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.8.4 + 0.9.0 diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 5c0e867d..03f354c6 100644 --- a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -1026,668 +1026,6 @@ private AnalyticsAdminServiceGrpc() {} return getBatchDeleteUserLinksMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getGetWebDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWebDataStream", - requestType = com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.WebDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getGetWebDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getGetWebDataStreamMethod; - if ((getGetWebDataStreamMethod = AnalyticsAdminServiceGrpc.getGetWebDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetWebDataStreamMethod = AnalyticsAdminServiceGrpc.getGetWebDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getGetWebDataStreamMethod = - getGetWebDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWebDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.WebDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("GetWebDataStream")) - .build(); - } - } - } - return getGetWebDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, com.google.protobuf.Empty> - getDeleteWebDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWebDataStream", - requestType = com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, com.google.protobuf.Empty> - getDeleteWebDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, - com.google.protobuf.Empty> - getDeleteWebDataStreamMethod; - if ((getDeleteWebDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteWebDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteWebDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteWebDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getDeleteWebDataStreamMethod = - getDeleteWebDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWebDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteWebDataStream")) - .build(); - } - } - } - return getDeleteWebDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getUpdateWebDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWebDataStream", - requestType = com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.WebDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getUpdateWebDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getUpdateWebDataStreamMethod; - if ((getUpdateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateWebDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateWebDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getUpdateWebDataStreamMethod = - getUpdateWebDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWebDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.WebDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateWebDataStream")) - .build(); - } - } - } - return getUpdateWebDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getCreateWebDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWebDataStream", - requestType = com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.WebDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getCreateWebDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream> - getCreateWebDataStreamMethod; - if ((getCreateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateWebDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateWebDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateWebDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getCreateWebDataStreamMethod = - getCreateWebDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWebDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.WebDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("CreateWebDataStream")) - .build(); - } - } - } - return getCreateWebDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> - getListWebDataStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWebDataStreams", - requestType = com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> - getListWebDataStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> - getListWebDataStreamsMethod; - if ((getListWebDataStreamsMethod = AnalyticsAdminServiceGrpc.getListWebDataStreamsMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListWebDataStreamsMethod = AnalyticsAdminServiceGrpc.getListWebDataStreamsMethod) - == null) { - AnalyticsAdminServiceGrpc.getListWebDataStreamsMethod = - getListWebDataStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWebDataStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("ListWebDataStreams")) - .build(); - } - } - } - return getListWebDataStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getGetIosAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIosAppDataStream", - requestType = com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getGetIosAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getGetIosAppDataStreamMethod; - if ((getGetIosAppDataStreamMethod = AnalyticsAdminServiceGrpc.getGetIosAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetIosAppDataStreamMethod = AnalyticsAdminServiceGrpc.getGetIosAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getGetIosAppDataStreamMethod = - getGetIosAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetIosAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.IosAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("GetIosAppDataStream")) - .build(); - } - } - } - return getGetIosAppDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, - com.google.protobuf.Empty> - getDeleteIosAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteIosAppDataStream", - requestType = com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, - com.google.protobuf.Empty> - getDeleteIosAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, - com.google.protobuf.Empty> - getDeleteIosAppDataStreamMethod; - if ((getDeleteIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getDeleteIosAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getDeleteIosAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getDeleteIosAppDataStreamMethod = - getDeleteIosAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteIosAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "DeleteIosAppDataStream")) - .build(); - } - } - } - return getDeleteIosAppDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getUpdateIosAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateIosAppDataStream", - requestType = com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getUpdateIosAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getUpdateIosAppDataStreamMethod; - if ((getUpdateIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getUpdateIosAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getUpdateIosAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getUpdateIosAppDataStreamMethod = - getUpdateIosAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateIosAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.IosAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "UpdateIosAppDataStream")) - .build(); - } - } - } - return getUpdateIosAppDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - getListIosAppDataStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListIosAppDataStreams", - requestType = com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - getListIosAppDataStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - getListIosAppDataStreamsMethod; - if ((getListIosAppDataStreamsMethod = AnalyticsAdminServiceGrpc.getListIosAppDataStreamsMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListIosAppDataStreamsMethod = - AnalyticsAdminServiceGrpc.getListIosAppDataStreamsMethod) - == null) { - AnalyticsAdminServiceGrpc.getListIosAppDataStreamsMethod = - getListIosAppDataStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListIosAppDataStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "ListIosAppDataStreams")) - .build(); - } - } - } - return getListIosAppDataStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getGetAndroidAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAndroidAppDataStream", - requestType = com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getGetAndroidAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getGetAndroidAppDataStreamMethod; - if ((getGetAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getGetAndroidAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getGetAndroidAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getGetAndroidAppDataStreamMethod = - getGetAndroidAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAndroidAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AndroidAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "GetAndroidAppDataStream")) - .build(); - } - } - } - return getGetAndroidAppDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, - com.google.protobuf.Empty> - getDeleteAndroidAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAndroidAppDataStream", - requestType = com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, - com.google.protobuf.Empty> - getDeleteAndroidAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, - com.google.protobuf.Empty> - getDeleteAndroidAppDataStreamMethod; - if ((getDeleteAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getDeleteAndroidAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getDeleteAndroidAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getDeleteAndroidAppDataStreamMethod = - getDeleteAndroidAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAndroidAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "DeleteAndroidAppDataStream")) - .build(); - } - } - } - return getDeleteAndroidAppDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getUpdateAndroidAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAndroidAppDataStream", - requestType = com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getUpdateAndroidAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getUpdateAndroidAppDataStreamMethod; - if ((getUpdateAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getUpdateAndroidAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getUpdateAndroidAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getUpdateAndroidAppDataStreamMethod = - getUpdateAndroidAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateAndroidAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AndroidAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "UpdateAndroidAppDataStream")) - .build(); - } - } - } - return getUpdateAndroidAppDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - getListAndroidAppDataStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAndroidAppDataStreams", - requestType = com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - getListAndroidAppDataStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - getListAndroidAppDataStreamsMethod; - if ((getListAndroidAppDataStreamsMethod = - AnalyticsAdminServiceGrpc.getListAndroidAppDataStreamsMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAndroidAppDataStreamsMethod = - AnalyticsAdminServiceGrpc.getListAndroidAppDataStreamsMethod) - == null) { - AnalyticsAdminServiceGrpc.getListAndroidAppDataStreamsMethod = - getListAndroidAppDataStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAndroidAppDataStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "ListAndroidAppDataStreams")) - .build(); - } - } - } - return getListAndroidAppDataStreamsMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, com.google.analytics.admin.v1alpha.FirebaseLink> @@ -4638,225 +3976,25 @@ public void batchUpdateUserLinks( * Deletes a user link on an account or property. * */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Lookup for a single WebDataStream
-     * 
- */ - public void getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWebDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a web stream on a property.
-     * 
- */ - public void deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWebDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a web stream on a property.
-     * 
- */ - public void updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWebDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a web stream with the specified location and attributes.
-     * 
- */ - public void createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWebDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
-     * 
- */ - public void listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWebDataStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lookup for a single IosAppDataStream
-     * 
- */ - public void getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIosAppDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an iOS app stream on a property.
-     * 
- */ - public void deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteIosAppDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an iOS app stream on a property.
-     * 
- */ - public void updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateIosAppDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
-     * 
- */ - public void listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListIosAppDataStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lookup for a single AndroidAppDataStream
-     * 
- */ - public void getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAndroidAppDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an android app stream on a property.
-     * 
- */ - public void deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAndroidAppDataStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an android app stream on a property.
-     * 
- */ - public void updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAndroidAppDataStreamMethod(), responseObserver); + getDeleteUserLinkMethod(), responseObserver); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - responseObserver) { + public void batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAndroidAppDataStreamsMethod(), responseObserver); + getBatchDeleteUserLinksMethod(), responseObserver); } /** @@ -5779,94 +4917,6 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) - .addMethod( - getGetWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_GET_WEB_DATA_STREAM))) - .addMethod( - getDeleteWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) - .addMethod( - getUpdateWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_UPDATE_WEB_DATA_STREAM))) - .addMethod( - getCreateWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_CREATE_WEB_DATA_STREAM))) - .addMethod( - getListWebDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( - this, METHODID_LIST_WEB_DATA_STREAMS))) - .addMethod( - getGetIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_GET_IOS_APP_DATA_STREAM))) - .addMethod( - getDeleteIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) - .addMethod( - getUpdateIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) - .addMethod( - getListIosAppDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( - this, METHODID_LIST_IOS_APP_DATA_STREAMS))) - .addMethod( - getGetAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream>( - this, METHODID_GET_ANDROID_APP_DATA_STREAM))) - .addMethod( - getDeleteAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ANDROID_APP_DATA_STREAM))) - .addMethod( - getUpdateAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream>( - this, METHODID_UPDATE_ANDROID_APP_DATA_STREAM))) - .addMethod( - getListAndroidAppDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>( - this, METHODID_LIST_ANDROID_APP_DATA_STREAMS))) .addMethod( getCreateFirebaseLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6468,240 +5518,10 @@ public void getUserLink( */ public void batchGetUserLinks( com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lookup for a single WebDataStream
-     * 
- */ - public void getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a web stream on a property.
-     * 
- */ - public void deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a web stream on a property.
-     * 
- */ - public void updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a web stream with the specified location and attributes.
-     * 
- */ - public void createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
-     * 
- */ - public void listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, - io.grpc.stub.StreamObserver + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), + getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -6710,15 +5530,15 @@ public void listWebDataStreams( * * *
-     * Lookup for a single IosAppDataStream
+     * Lists all user links on an account or property.
      * 
*/ - public void getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver + public void listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), + getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -6727,14 +5547,22 @@ public void getIosAppDataStream( * * *
-     * Deletes an iOS app stream on a property.
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
      * 
*/ - public void deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), + getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -6743,15 +5571,17 @@ public void deleteIosAppDataStream( * * *
-     * Updates an iOS app stream on a property.
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
      * 
*/ - public void updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), + getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -6760,18 +5590,17 @@ public void updateIosAppDataStream( * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
      * 
*/ - public void listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + public void batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), + getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -6780,15 +5609,14 @@ public void listIosAppDataStreams( * * *
-     * Lookup for a single AndroidAppDataStream
+     * Updates a user link on an account or property.
      * 
*/ - public void getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), + getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -6797,14 +5625,15 @@ public void getAndroidAppDataStream( * * *
-     * Deletes an android app stream on a property.
+     * Updates information about multiple users' links to an account or property.
      * 
*/ - public void deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), + getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -6813,15 +5642,14 @@ public void deleteAndroidAppDataStream( * * *
-     * Updates an android app stream on a property.
+     * Deletes a user link on an account or property.
      * 
*/ - public void updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), + getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -6830,18 +5658,14 @@ public void updateAndroidAppDataStream( * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - responseObserver) { + public void batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -7835,404 +6659,228 @@ public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisi * Returns summaries of all accounts accessible by the caller. * */ - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPropertyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPropertiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePropertyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePropertyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.UserLink getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.UserLink createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.UserLink updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); + getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * Lookup for a single "GA4" Property.
      * 
*/ - public com.google.protobuf.Empty deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.Property getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); + getChannel(), getGetPropertyMethod(), getCallOptions(), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
      * 
*/ - public com.google.protobuf.Empty batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); + getChannel(), getListPropertiesMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single WebDataStream
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.Property createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a web stream on a property.
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
      * 
*/ - public com.google.protobuf.Empty deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.Property deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } /** * * *
-     * Updates a web stream on a property.
+     * Updates a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.Property updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Gets information about a user's link to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.UserLink getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getGetUserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Gets information about multiple users' links to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); + getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Lists all user links on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); + getChannel(), getListUserLinksMethod(), getCallOptions(), request); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
      * 
*/ - public com.google.protobuf.Empty deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); + getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
      * 
*/ - public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.UserLink createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); + getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); + getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Updates a user link on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.UserLink updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); + getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Deletes an android app stream on a property.
+     * Updates information about multiple users' links to an account or property.
      * 
*/ - public com.google.protobuf.Empty deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); + getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); } /** * * *
-     * Updates an android app stream on a property.
+     * Deletes a user link on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + public com.google.protobuf.Empty deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); + getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + public com.google.protobuf.Empty batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); + getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); } /** @@ -9294,198 +7942,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Lookup for a single WebDataStream
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a web stream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a web stream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a web stream with the specified location and attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> - listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lookup for a single IosAppDataStream
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an iOS app stream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an iOS app stream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lookup for a single AndroidAppDataStream
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an android app stream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an android app stream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); - } - /** * * @@ -10277,69 +8733,56 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_BATCH_UPDATE_USER_LINKS = 18; private static final int METHODID_DELETE_USER_LINK = 19; private static final int METHODID_BATCH_DELETE_USER_LINKS = 20; - private static final int METHODID_GET_WEB_DATA_STREAM = 21; - private static final int METHODID_DELETE_WEB_DATA_STREAM = 22; - private static final int METHODID_UPDATE_WEB_DATA_STREAM = 23; - private static final int METHODID_CREATE_WEB_DATA_STREAM = 24; - private static final int METHODID_LIST_WEB_DATA_STREAMS = 25; - private static final int METHODID_GET_IOS_APP_DATA_STREAM = 26; - private static final int METHODID_DELETE_IOS_APP_DATA_STREAM = 27; - private static final int METHODID_UPDATE_IOS_APP_DATA_STREAM = 28; - private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 29; - private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 30; - private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 31; - private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 32; - private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 33; - private static final int METHODID_CREATE_FIREBASE_LINK = 34; - private static final int METHODID_DELETE_FIREBASE_LINK = 35; - private static final int METHODID_LIST_FIREBASE_LINKS = 36; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 37; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 38; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 39; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 40; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 41; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 42; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 43; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 44; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 45; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 46; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 47; - private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 48; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 49; - private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 50; - private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 51; - private static final int METHODID_CREATE_CONVERSION_EVENT = 52; - private static final int METHODID_GET_CONVERSION_EVENT = 53; - private static final int METHODID_DELETE_CONVERSION_EVENT = 54; - private static final int METHODID_LIST_CONVERSION_EVENTS = 55; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 56; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 57; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 58; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 59; - private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 60; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 61; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 62; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 63; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 64; - private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 65; - private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 66; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 67; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 68; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 69; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 70; - private static final int METHODID_GET_CUSTOM_DIMENSION = 71; - private static final int METHODID_CREATE_CUSTOM_METRIC = 72; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 73; - private static final int METHODID_LIST_CUSTOM_METRICS = 74; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 75; - private static final int METHODID_GET_CUSTOM_METRIC = 76; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 77; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 78; - private static final int METHODID_CREATE_DATA_STREAM = 79; - private static final int METHODID_DELETE_DATA_STREAM = 80; - private static final int METHODID_UPDATE_DATA_STREAM = 81; - private static final int METHODID_LIST_DATA_STREAMS = 82; - private static final int METHODID_GET_DATA_STREAM = 83; + private static final int METHODID_CREATE_FIREBASE_LINK = 21; + private static final int METHODID_DELETE_FIREBASE_LINK = 22; + private static final int METHODID_LIST_FIREBASE_LINKS = 23; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 24; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 25; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 26; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 27; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 28; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 29; + private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 30; + private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 31; + private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 32; + private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 33; + private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 34; + private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 35; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 36; + private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 37; + private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 38; + private static final int METHODID_CREATE_CONVERSION_EVENT = 39; + private static final int METHODID_GET_CONVERSION_EVENT = 40; + private static final int METHODID_DELETE_CONVERSION_EVENT = 41; + private static final int METHODID_LIST_CONVERSION_EVENTS = 42; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 43; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 44; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 45; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 46; + private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 47; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 48; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 49; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 50; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 51; + private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 52; + private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 53; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 54; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 55; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 56; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 57; + private static final int METHODID_GET_CUSTOM_DIMENSION = 58; + private static final int METHODID_CREATE_CUSTOM_METRIC = 59; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 60; + private static final int METHODID_LIST_CUSTOM_METRICS = 61; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 62; + private static final int METHODID_GET_CUSTOM_METRIC = 63; + private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 64; + private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 65; + private static final int METHODID_CREATE_DATA_STREAM = 66; + private static final int METHODID_DELETE_DATA_STREAM = 67; + private static final int METHODID_UPDATE_DATA_STREAM = 68; + private static final int METHODID_LIST_DATA_STREAMS = 69; + private static final int METHODID_GET_DATA_STREAM = 70; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10489,84 +8932,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_GET_WEB_DATA_STREAM: - serviceImpl.getWebDataStream( - (com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_WEB_DATA_STREAM: - serviceImpl.deleteWebDataStream( - (com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WEB_DATA_STREAM: - serviceImpl.updateWebDataStream( - (com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_WEB_DATA_STREAM: - serviceImpl.createWebDataStream( - (com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WEB_DATA_STREAMS: - serviceImpl.listWebDataStreams( - (com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>) - responseObserver); - break; - case METHODID_GET_IOS_APP_DATA_STREAM: - serviceImpl.getIosAppDataStream( - (com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_IOS_APP_DATA_STREAM: - serviceImpl.deleteIosAppDataStream( - (com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_IOS_APP_DATA_STREAM: - serviceImpl.updateIosAppDataStream( - (com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_IOS_APP_DATA_STREAMS: - serviceImpl.listIosAppDataStreams( - (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>) - responseObserver); - break; - case METHODID_GET_ANDROID_APP_DATA_STREAM: - serviceImpl.getAndroidAppDataStream( - (com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ANDROID_APP_DATA_STREAM: - serviceImpl.deleteAndroidAppDataStream( - (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ANDROID_APP_DATA_STREAM: - serviceImpl.updateAndroidAppDataStream( - (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ANDROID_APP_DATA_STREAMS: - serviceImpl.listAndroidAppDataStreams( - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>) - responseObserver); - break; case METHODID_CREATE_FIREBASE_LINK: serviceImpl.createFirebaseLink( (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) request, @@ -10985,19 +9350,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getBatchUpdateUserLinksMethod()) .addMethod(getDeleteUserLinkMethod()) .addMethod(getBatchDeleteUserLinksMethod()) - .addMethod(getGetWebDataStreamMethod()) - .addMethod(getDeleteWebDataStreamMethod()) - .addMethod(getUpdateWebDataStreamMethod()) - .addMethod(getCreateWebDataStreamMethod()) - .addMethod(getListWebDataStreamsMethod()) - .addMethod(getGetIosAppDataStreamMethod()) - .addMethod(getDeleteIosAppDataStreamMethod()) - .addMethod(getUpdateIosAppDataStreamMethod()) - .addMethod(getListIosAppDataStreamsMethod()) - .addMethod(getGetAndroidAppDataStreamMethod()) - .addMethod(getDeleteAndroidAppDataStreamMethod()) - .addMethod(getUpdateAndroidAppDataStreamMethod()) - .addMethod(getListAndroidAppDataStreamsMethod()) .addMethod(getCreateFirebaseLinkMethod()) .addMethod(getDeleteFirebaseLinkMethod()) .addMethod(getListFirebaseLinksMethod()) diff --git a/pom.xml b/pom.xml index 57d8d1ad..3a37173a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.8.4 + 0.9.0 Google Analytics Admin Parent https://github.com/googleapis/java-analytics-admin @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.2 @@ -61,23 +61,23 @@ com.google.analytics google-analytics-admin - 0.8.4 + 0.9.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.8.4 + 0.9.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.8.4 + 0.9.0 com.google.cloud google-cloud-shared-dependencies - 2.8.0 + 2.9.0 pom import diff --git a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index 6c9ba72b..7aff221b 100644 --- a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -58,4 +58,53 @@ 8001 com/google/analytics/admin/v1alpha/*EnhancedMeasurementSettings* + + + 8001 + com/google/analytics/admin/v1alpha/AndroidAppDataStream* + + + 6011 + com/google/analytics/admin/v1alpha/ChangeHistoryChange$ChangeHistoryResource + *_FIELD_NUMBER + + + 7002 + com/google/analytics/admin/v1alpha/ChangeHistoryChange* + * *DataStream*(*) + + + 6011 + com/google/analytics/admin/v1alpha/ChangeHistory* + *DATA_STREAM* + + + 6001 + com/google/analytics/admin/v1alpha/ChangeHistory* + *DATA_STREAM* + + + 8001 + com/google/analytics/admin/v1alpha/*DataStreamRequest* + * *DataStream*(*) + + + 7004 + com/google/analytics/admin/v1alpha/GlobalSiteTagName + * format(*) + + + 7004 + com/google/analytics/admin/v1alpha/GlobalSiteTagName + * of(*) + + + 8001 + com/google/analytics/admin/v1alpha/*DataStream* + + + 7002 + com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName* + * *WebDataStream*(*) + diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml index 1a173bc9..cf6298a4 100644 --- a/proto-google-analytics-admin-v1alpha/pom.xml +++ b/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.8.4 + 0.9.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.8.4 + 0.9.0 diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index a787a63a..1122f1ff 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -139,70 +139,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -557,61 +493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com" + "/UserLink\022L\n\010requests\030\002 \003(\01325.google.ana" + "lytics.admin.v1alpha.DeleteUserLinkReque" - + "stB\003\340A\002\"\\\n\027GetWebDataStreamRequest\022A\n\004na" - + "me\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.googlea" - + "pis.com/WebDataStream\"_\n\032DeleteWebDataSt" - + "reamRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analy" - + "ticsadmin.googleapis.com/WebDataStream\"\237" - + "\001\n\032UpdateWebDataStreamRequest\022K\n\017web_dat" - + "a_stream\030\001 \001(\0132-.google.analytics.admin." - + "v1alpha.WebDataStreamB\003\340A\002\0224\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" - + "\"\256\001\n\032CreateWebDataStreamRequest\022K\n\017web_d" - + "ata_stream\030\001 \001(\0132-.google.analytics.admi" - + "n.v1alpha.WebDataStreamB\003\340A\002\022C\n\006parent\030\002" - + " \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapis." - + "com/WebDataStream\"\207\001\n\031ListWebDataStreams" - + "Request\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyti" - + "csadmin.googleapis.com/WebDataStream\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n\032L" - + "istWebDataStreamsResponse\022G\n\020web_data_st" - + "reams\030\001 \003(\0132-.google.analytics.admin.v1a" - + "lpha.WebDataStream\022\027\n\017next_page_token\030\002 " - + "\001(\t\"b\n\032GetIosAppDataStreamRequest\022D\n\004nam" - + "e\030\001 \001(\tB6\340A\002\372A0\n.analyticsadmin.googleap" - + "is.com/IosAppDataStream\"e\n\035DeleteIosAppD" - + "ataStreamRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n." - + "analyticsadmin.googleapis.com/IosAppData" - + "Stream\"\251\001\n\035UpdateIosAppDataStreamRequest" - + "\022R\n\023ios_app_data_stream\030\001 \001(\01320.google.a" - + "nalytics.admin.v1alpha.IosAppDataStreamB" - + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"\215\001\n\034ListIosAppDataStr" - + "eamsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.ana" - + "lyticsadmin.googleapis.com/IosAppDataStr" - + "eam\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"\210\001\n\035ListIosAppDataStreamsResponse\022N\n\024" - + "ios_app_data_streams\030\001 \003(\01320.google.anal" - + "ytics.admin.v1alpha.IosAppDataStream\022\027\n\017" - + "next_page_token\030\002 \001(\t\"j\n\036GetAndroidAppDa" - + "taStreamRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2a" - + "nalyticsadmin.googleapis.com/AndroidAppD" - + "ataStream\"m\n!DeleteAndroidAppDataStreamR" - + "equest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsa" - + "dmin.googleapis.com/AndroidAppDataStream" - + "\"\265\001\n!UpdateAndroidAppDataStreamRequest\022Z" - + "\n\027android_app_data_stream\030\001 \001(\01324.google" - + ".analytics.admin.v1alpha.AndroidAppDataS" - + "treamB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"\225\001\n ListAndroid" - + "AppDataStreamsRequest\022J\n\006parent\030\001 \001(\tB:\340" - + "A\002\372A4\0222analyticsadmin.googleapis.com/And" - + "roidAppDataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\224\001\n!ListAndroidAppDataS" - + "treamsResponse\022V\n\030android_app_data_strea" - + "ms\030\001 \003(\01324.google.analytics.admin.v1alph" - + "a.AndroidAppDataStream\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"\251\001\n\031CreateFirebaseLinkRequest\022B\n" + + "stB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequest\022B\n" + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.go" + "ogleapis.com/FirebaseLink\022H\n\rfirebase_li" + "nk\030\002 \001(\0132,.google.analytics.admin.v1alph" @@ -848,7 +730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.analytics.admin.v1alpha.DataStream\022\027" + "\n\017next_page_token\030\002 \001(\t\"V\n\024GetDataStream" + "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analytics" - + "admin.googleapis.com/DataStream2\363\236\001\n\025Ana" + + "admin.googleapis.com/DataStream2\312\200\001\n\025Ana" + "lyticsAdminService\022\223\001\n\nGetAccount\0221.goog" + "le.analytics.admin.v1alpha.GetAccountReq" + "uest\032\'.google.analytics.admin.v1alpha.Ac" @@ -867,8 +749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ame=accounts/*}:\007account\332A\023account,updat" + "e_mask\022\314\001\n\026ProvisionAccountTicket\022=.goog" + "le.analytics.admin.v1alpha.ProvisionAcco" - + "untTicketRequest\032>.google.analytics.admi", - "n.v1alpha.ProvisionAccountTicketResponse" + + "untTicketRequest\032>.google.analytics.admi" + + "n.v1alpha.ProvisionAccountTicketResponse" + "\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisionAcc" + "ountTicket:\001*\022\264\001\n\024ListAccountSummaries\022;" + ".google.analytics.admin.v1alpha.ListAcco" @@ -921,8 +803,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "parent=properties/*}/userLinks:audit:\001*\022" + "\367\001\n\016CreateUserLink\0225.google.analytics.ad" + "min.v1alpha.CreateUserLinkRequest\032(.goog" - + "le.analytics.admin.v1alpha.UserLink\"\203\001\202\323" - + "\344\223\002j\"&/v1alpha/{parent=accounts/*}/userL" + + "le.analytics.admin.v1alpha.UserLink\"\203\001\202\323", + "\344\223\002j\"&/v1alpha/{parent=accounts/*}/userL" + "inks:\tuser_linkZ5\"(/v1alpha/{parent=prop" + "erties/*}/userLinks:\tuser_link\332A\020parent," + "user_link\022\213\002\n\024BatchCreateUserLinks\022;.goo" @@ -956,411 +838,314 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/us" + "erLinks:batchDelete:\001*Z9\"4/v1alpha/{pare" + "nt=properties/*}/userLinks:batchDelete:\001" - + "*\022\270\001\n\020GetWebDataStream\0227.google.analytic" - + "s.admin.v1alpha.GetWebDataStreamRequest\032" - + "-.google.analytics.admin.v1alpha.WebData" - + "Stream\"<\202\323\344\223\002/\022-/v1alpha/{name=propertie" - + "s/*/webDataStreams/*}\332A\004name\022\247\001\n\023DeleteW" - + "ebDataStream\022:.google.analytics.admin.v1" - + "alpha.DeleteWebDataStreamRequest\032\026.googl" - + "e.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name" - + "=properties/*/webDataStreams/*}\332A\004name\022\366" - + "\001\n\023UpdateWebDataStream\022:.google.analytic" - + "s.admin.v1alpha.UpdateWebDataStreamReque" - + "st\032-.google.analytics.admin.v1alpha.WebD" - + "ataStream\"t\202\323\344\223\002P2=/v1alpha/{web_data_st" - + "ream.name=properties/*/webDataStreams/*}" - + ":\017web_data_stream\332A\033web_data_stream,upda" - + "te_mask\022\341\001\n\023CreateWebDataStream\022:.google" - + ".analytics.admin.v1alpha.CreateWebDataSt" - + "reamRequest\032-.google.analytics.admin.v1a" - + "lpha.WebDataStream\"_\202\323\344\223\002@\"-/v1alpha/{pa" - + "rent=properties/*}/webDataStreams:\017web_d" - + "ata_stream\332A\026parent,web_data_stream\022\313\001\n\022" - + "ListWebDataStreams\0229.google.analytics.ad" - + "min.v1alpha.ListWebDataStreamsRequest\032:." - + "google.analytics.admin.v1alpha.ListWebDa" - + "taStreamsResponse\">\202\323\344\223\002/\022-/v1alpha/{par" - + "ent=properties/*}/webDataStreams\332A\006paren" - + "t\022\304\001\n\023GetIosAppDataStream\022:.google.analy" - + "tics.admin.v1alpha.GetIosAppDataStreamRe" - + "quest\0320.google.analytics.admin.v1alpha.I" - + "osAppDataStream\"?\202\323\344\223\0022\0220/v1alpha/{name=" - + "properties/*/iosAppDataStreams/*}\332A\004name" - + "\022\260\001\n\026DeleteIosAppDataStream\022=.google.ana" - + "lytics.admin.v1alpha.DeleteIosAppDataStr" - + "eamRequest\032\026.google.protobuf.Empty\"?\202\323\344\223" - + "\0022*0/v1alpha/{name=properties/*/iosAppDa" - + "taStreams/*}\332A\004name\022\217\002\n\026UpdateIosAppData" - + "Stream\022=.google.analytics.admin.v1alpha." - + "UpdateIosAppDataStreamRequest\0320.google.a" - + "nalytics.admin.v1alpha.IosAppDataStream\"" - + "\203\001\202\323\344\223\002[2D/v1alpha/{ios_app_data_stream." - + "name=properties/*/iosAppDataStreams/*}:\023" - + "ios_app_data_stream\332A\037ios_app_data_strea" - + "m,update_mask\022\327\001\n\025ListIosAppDataStreams\022" - + "<.google.analytics.admin.v1alpha.ListIos" - + "AppDataStreamsRequest\032=.google.analytics" - + ".admin.v1alpha.ListIosAppDataStreamsResp" - + "onse\"A\202\323\344\223\0022\0220/v1alpha/{parent=propertie" - + "s/*}/iosAppDataStreams\332A\006parent\022\324\001\n\027GetA" - + "ndroidAppDataStream\022>.google.analytics.a" - + "dmin.v1alpha.GetAndroidAppDataStreamRequ" - + "est\0324.google.analytics.admin.v1alpha.And" - + "roidAppDataStream\"C\202\323\344\223\0026\0224/v1alpha/{nam" - + "e=properties/*/androidAppDataStreams/*}\332" - + "A\004name\022\274\001\n\032DeleteAndroidAppDataStream\022A." - + "google.analytics.admin.v1alpha.DeleteAnd" - + "roidAppDataStreamRequest\032\026.google.protob" - + "uf.Empty\"C\202\323\344\223\0026*4/v1alpha/{name=propert" - + "ies/*/androidAppDataStreams/*}\332A\004name\022\253\002" - + "\n\032UpdateAndroidAppDataStream\022A.google.an" - + "alytics.admin.v1alpha.UpdateAndroidAppDa" - + "taStreamRequest\0324.google.analytics.admin" - + ".v1alpha.AndroidAppDataStream\"\223\001\202\323\344\223\002g2L" - + "/v1alpha/{android_app_data_stream.name=p" - + "roperties/*/androidAppDataStreams/*}:\027an" - + "droid_app_data_stream\332A#android_app_data" - + "_stream,update_mask\022\347\001\n\031ListAndroidAppDa" - + "taStreams\022@.google.analytics.admin.v1alp" - + "ha.ListAndroidAppDataStreamsRequest\032A.go" - + "ogle.analytics.admin.v1alpha.ListAndroid" - + "AppDataStreamsResponse\"E\202\323\344\223\0026\0224/v1alpha" - + "/{parent=properties/*}/androidAppDataStr" - + "eams\332A\006parent\022\331\001\n\022CreateFirebaseLink\0229.g" - + "oogle.analytics.admin.v1alpha.CreateFire" - + "baseLinkRequest\032,.google.analytics.admin" - + ".v1alpha.FirebaseLink\"Z\202\323\344\223\002=\",/v1alpha/" - + "{parent=properties/*}/firebaseLinks:\rfir" - + "ebase_link\332A\024parent,firebase_link\022\244\001\n\022De" - + "leteFirebaseLink\0229.google.analytics.admi" - + "n.v1alpha.DeleteFirebaseLinkRequest\032\026.go" - + "ogle.protobuf.Empty\";\202\323\344\223\002.*,/v1alpha/{n" - + "ame=properties/*/firebaseLinks/*}\332A\004name" - + "\022\307\001\n\021ListFirebaseLinks\0228.google.analytic" - + "s.admin.v1alpha.ListFirebaseLinksRequest" - + "\0329.google.analytics.admin.v1alpha.ListFi" - + "rebaseLinksResponse\"=\202\323\344\223\002.\022,/v1alpha/{p" - + "arent=properties/*}/firebaseLinks\332A\006pare" - + "nt\022\306\001\n\020GetGlobalSiteTag\0227.google.analyti" - + "cs.admin.v1alpha.GetGlobalSiteTagRequest" - + "\032-.google.analytics.admin.v1alpha.Global" - + "SiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name=properti" - + "es/*/webDataStreams/*/globalSiteTag}\332A\004n" - + "ame\022\341\001\n\023CreateGoogleAdsLink\022:.google.ana" - + "lytics.admin.v1alpha.CreateGoogleAdsLink" - + "Request\032-.google.analytics.admin.v1alpha" - + ".GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alpha/{parent" - + "=properties/*}/googleAdsLinks:\017google_ad" - + "s_link\332A\026parent,google_ads_link\022\366\001\n\023Upda" - + "teGoogleAdsLink\022:.google.analytics.admin" - + ".v1alpha.UpdateGoogleAdsLinkRequest\032-.go" - + "ogle.analytics.admin.v1alpha.GoogleAdsLi" - + "nk\"t\202\323\344\223\002P2=/v1alpha/{google_ads_link.na" - + "me=properties/*/googleAdsLinks/*}:\017googl" - + "e_ads_link\332A\033google_ads_link,update_mask" - + "\022\247\001\n\023DeleteGoogleAdsLink\022:.google.analyt" - + "ics.admin.v1alpha.DeleteGoogleAdsLinkReq" - + "uest\032\026.google.protobuf.Empty\"<\202\323\344\223\002/*-/v" - + "1alpha/{name=properties/*/googleAdsLinks" - + "/*}\332A\004name\022\313\001\n\022ListGoogleAdsLinks\0229.goog" - + "le.analytics.admin.v1alpha.ListGoogleAds" - + "LinksRequest\032:.google.analytics.admin.v1" - + "alpha.ListGoogleAdsLinksResponse\">\202\323\344\223\002/" - + "\022-/v1alpha/{parent=properties/*}/googleA" - + "dsLinks\332A\006parent\022\313\001\n\026GetDataSharingSetti" - + "ngs\022=.google.analytics.admin.v1alpha.Get" - + "DataSharingSettingsRequest\0323.google.anal" - + "ytics.admin.v1alpha.DataSharingSettings\"" - + "=\202\323\344\223\0020\022./v1alpha/{name=accounts/*/dataS" - + "haringSettings}\332A\004name\022\241\003\n\034GetMeasuremen" - + "tProtocolSecret\022C.google.analytics.admin" - + ".v1alpha.GetMeasurementProtocolSecretReq" - + "uest\0329.google.analytics.admin.v1alpha.Me" - + "asurementProtocolSecret\"\200\002\202\323\344\223\002\362\001\022J/v1al" - + "pha/{name=properties/*/webDataStreams/*/" - + "measurementProtocolSecrets/*}ZO\022M/v1alph" - + "a/{name=properties/*/iosAppDataStreams/*" - + "/measurementProtocolSecrets/*}ZS\022Q/v1alp" - + "ha/{name=properties/*/androidAppDataStre" - + "ams/*/measurementProtocolSecrets/*}\332A\004na" - + "me\022\264\003\n\036ListMeasurementProtocolSecrets\022E." - + "google.analytics.admin.v1alpha.ListMeasu" - + "rementProtocolSecretsRequest\032F.google.an" - + "alytics.admin.v1alpha.ListMeasurementPro" - + "tocolSecretsResponse\"\202\002\202\323\344\223\002\362\001\022J/v1alpha" - + "/{parent=properties/*/webDataStreams/*}/" - + "measurementProtocolSecretsZO\022M/v1alpha/{" - + "parent=properties/*/iosAppDataStreams/*}" - + "/measurementProtocolSecretsZS\022Q/v1alpha/" - + "{parent=properties/*/androidAppDataStrea" - + "ms/*}/measurementProtocolSecrets\332A\006paren" - + "t\022\234\004\n\037CreateMeasurementProtocolSecret\022F." - + "google.analytics.admin.v1alpha.CreateMea" + + "*\022\331\001\n\022CreateFirebaseLink\0229.google.analyt" + + "ics.admin.v1alpha.CreateFirebaseLinkRequ" + + "est\032,.google.analytics.admin.v1alpha.Fir" + + "ebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=prop" + + "erties/*}/firebaseLinks:\rfirebase_link\332A" + + "\024parent,firebase_link\022\244\001\n\022DeleteFirebase" + + "Link\0229.google.analytics.admin.v1alpha.De" + + "leteFirebaseLinkRequest\032\026.google.protobu" + + "f.Empty\";\202\323\344\223\002.*,/v1alpha/{name=properti" + + "es/*/firebaseLinks/*}\332A\004name\022\307\001\n\021ListFir" + + "ebaseLinks\0228.google.analytics.admin.v1al" + + "pha.ListFirebaseLinksRequest\0329.google.an" + + "alytics.admin.v1alpha.ListFirebaseLinksR" + + "esponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=proper" + + "ties/*}/firebaseLinks\332A\006parent\022\303\001\n\020GetGl" + + "obalSiteTag\0227.google.analytics.admin.v1a" + + "lpha.GetGlobalSiteTagRequest\032-.google.an" + + "alytics.admin.v1alpha.GlobalSiteTag\"G\202\323\344" + + "\223\002:\0228/v1alpha/{name=properties/*/dataStr" + + "eams/*/globalSiteTag}\332A\004name\022\341\001\n\023CreateG" + + "oogleAdsLink\022:.google.analytics.admin.v1" + + "alpha.CreateGoogleAdsLinkRequest\032-.googl" + + "e.analytics.admin.v1alpha.GoogleAdsLink\"" + + "_\202\323\344\223\002@\"-/v1alpha/{parent=properties/*}/" + + "googleAdsLinks:\017google_ads_link\332A\026parent" + + ",google_ads_link\022\366\001\n\023UpdateGoogleAdsLink" + + "\022:.google.analytics.admin.v1alpha.Update" + + "GoogleAdsLinkRequest\032-.google.analytics." + + "admin.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/v1" + + "alpha/{google_ads_link.name=properties/*" + + "/googleAdsLinks/*}:\017google_ads_link\332A\033go" + + "ogle_ads_link,update_mask\022\247\001\n\023DeleteGoog" + + "leAdsLink\022:.google.analytics.admin.v1alp" + + "ha.DeleteGoogleAdsLinkRequest\032\026.google.p" + + "rotobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=pr" + + "operties/*/googleAdsLinks/*}\332A\004name\022\313\001\n\022" + + "ListGoogleAdsLinks\0229.google.analytics.ad" + + "min.v1alpha.ListGoogleAdsLinksRequest\032:." + + "google.analytics.admin.v1alpha.ListGoogl" + + "eAdsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{par" + + "ent=properties/*}/googleAdsLinks\332A\006paren" + + "t\022\313\001\n\026GetDataSharingSettings\022=.google.an" + + "alytics.admin.v1alpha.GetDataSharingSett" + + "ingsRequest\0323.google.analytics.admin.v1a" + + "lpha.DataSharingSettings\"=\202\323\344\223\0020\022./v1alp" + + "ha/{name=accounts/*/dataSharingSettings}" + + "\332A\004name\022\366\001\n\034GetMeasurementProtocolSecret" + + "\022C.google.analytics.admin.v1alpha.GetMea" + "surementProtocolSecretRequest\0329.google.a" + "nalytics.admin.v1alpha.MeasurementProtoc" - + "olSecret\"\365\002\202\323\344\223\002\311\002\"J/v1alpha/{parent=pro" - + "perties/*/webDataStreams/*}/measurementP" - + "rotocolSecrets:\033measurement_protocol_sec" - + "retZl\"M/v1alpha/{parent=properties/*/ios" - + "AppDataStreams/*}/measurementProtocolSec" - + "rets:\033measurement_protocol_secretZp\"Q/v1" - + "alpha/{parent=properties/*/androidAppDat" - + "aStreams/*}/measurementProtocolSecrets:\033" - + "measurement_protocol_secret\332A\"parent,mea" - + "surement_protocol_secret\022\204\003\n\037DeleteMeasu" - + "rementProtocolSecret\022F.google.analytics." - + "admin.v1alpha.DeleteMeasurementProtocolS" - + "ecretRequest\032\026.google.protobuf.Empty\"\200\002\202" - + "\323\344\223\002\362\001*J/v1alpha/{name=properties/*/webD" - + "ataStreams/*/measurementProtocolSecrets/" - + "*}ZO*M/v1alpha/{name=properties/*/iosApp" - + "DataStreams/*/measurementProtocolSecrets" - + "/*}ZS*Q/v1alpha/{name=properties/*/andro" - + "idAppDataStreams/*/measurementProtocolSe" - + "crets/*}\332A\004name\022\367\004\n\037UpdateMeasurementPro" - + "tocolSecret\022F.google.analytics.admin.v1a" - + "lpha.UpdateMeasurementProtocolSecretRequ" - + "est\0329.google.analytics.admin.v1alpha.Mea" - + "surementProtocolSecret\"\320\003\202\323\344\223\002\237\0032f/v1alp" - + "ha/{measurement_protocol_secret.name=pro" - + "perties/*/webDataStreams/*/measurementPr" - + "otocolSecrets/*}:\033measurement_protocol_s" - + "ecretZ\210\0012i/v1alpha/{measurement_protocol" - + "_secret.name=properties/*/iosAppDataStre" - + "ams/*/measurementProtocolSecrets/*}:\033mea" - + "surement_protocol_secretZ\214\0012m/v1alpha/{m" - + "easurement_protocol_secret.name=properti" - + "es/*/androidAppDataStreams/*/measurement" - + "ProtocolSecrets/*}:\033measurement_protocol" - + "_secret\332A\'measurement_protocol_secret,up" - + "date_mask\022\367\001\n\035AcknowledgeUserDataCollect" - + "ion\022D.google.analytics.admin.v1alpha.Ack" - + "nowledgeUserDataCollectionRequest\032E.goog" - + "le.analytics.admin.v1alpha.AcknowledgeUs" - + "erDataCollectionResponse\"I\202\323\344\223\002C\">/v1alp" - + "ha/{property=properties/*}:acknowledgeUs" - + "erDataCollection:\001*\022\344\001\n\031SearchChangeHist" - + "oryEvents\022@.google.analytics.admin.v1alp" - + "ha.SearchChangeHistoryEventsRequest\032A.go" - + "ogle.analytics.admin.v1alpha.SearchChang" - + "eHistoryEventsResponse\"B\202\323\344\223\002<\"7/v1alpha" - + "/{account=accounts/*}:searchChangeHistor" - + "yEvents:\001*\022\325\001\n\030GetGoogleSignalsSettings\022" - + "?.google.analytics.admin.v1alpha.GetGoog" - + "leSignalsSettingsRequest\0325.google.analyt" - + "ics.admin.v1alpha.GoogleSignalsSettings\"" - + "A\202\323\344\223\0024\0222/v1alpha/{name=properties/*/goo" - + "gleSignalsSettings}\332A\004name\022\254\002\n\033UpdateGoo" - + "gleSignalsSettings\022B.google.analytics.ad" - + "min.v1alpha.UpdateGoogleSignalsSettingsR" - + "equest\0325.google.analytics.admin.v1alpha." - + "GoogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v1alpha" - + "/{google_signals_settings.name=propertie" - + "s/*/googleSignalsSettings}:\027google_signa" - + "ls_settings\332A#google_signals_settings,up" - + "date_mask\022\353\001\n\025CreateConversionEvent\022<.go" - + "ogle.analytics.admin.v1alpha.CreateConve" - + "rsionEventRequest\032/.google.analytics.adm" - + "in.v1alpha.ConversionEvent\"c\202\323\344\223\002C\"//v1a" - + "lpha/{parent=properties/*}/conversionEve" - + "nts:\020conversion_event\332A\027parent,conversio" - + "n_event\022\300\001\n\022GetConversionEvent\0229.google." - + "analytics.admin.v1alpha.GetConversionEve" - + "ntRequest\032/.google.analytics.admin.v1alp" - + "ha.ConversionEvent\">\202\323\344\223\0021\022//v1alpha/{na" - + "me=properties/*/conversionEvents/*}\332A\004na" - + "me\022\255\001\n\025DeleteConversionEvent\022<.google.an" - + "alytics.admin.v1alpha.DeleteConversionEv" - + "entRequest\032\026.google.protobuf.Empty\">\202\323\344\223" - + "\0021*//v1alpha/{name=properties/*/conversi" - + "onEvents/*}\332A\004name\022\323\001\n\024ListConversionEve" - + "nts\022;.google.analytics.admin.v1alpha.Lis" - + "tConversionEventsRequest\032<.google.analyt" - + "ics.admin.v1alpha.ListConversionEventsRe" - + "sponse\"@\202\323\344\223\0021\022//v1alpha/{parent=propert" - + "ies/*}/conversionEvents\332A\006parent\022\370\001\n Get" - + "DisplayVideo360AdvertiserLink\022G.google.a" - + "nalytics.admin.v1alpha.GetDisplayVideo36" - + "0AdvertiserLinkRequest\032=.google.analytic" - + "s.admin.v1alpha.DisplayVideo360Advertise" - + "rLink\"L\202\323\344\223\002?\022=/v1alpha/{name=properties" - + "/*/displayVideo360AdvertiserLinks/*}\332A\004n" - + "ame\022\213\002\n\"ListDisplayVideo360AdvertiserLin" - + "ks\022I.google.analytics.admin.v1alpha.List" - + "DisplayVideo360AdvertiserLinksRequest\032J." - + "google.analytics.admin.v1alpha.ListDispl" - + "ayVideo360AdvertiserLinksResponse\"N\202\323\344\223\002" - + "?\022=/v1alpha/{parent=properties/*}/displa" - + "yVideo360AdvertiserLinks\332A\006parent\022\306\002\n#Cr" - + "eateDisplayVideo360AdvertiserLink\022J.goog" - + "le.analytics.admin.v1alpha.CreateDisplay" - + "Video360AdvertiserLinkRequest\032=.google.a" - + "nalytics.admin.v1alpha.DisplayVideo360Ad" - + "vertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{parent=" - + "properties/*}/displayVideo360AdvertiserL" - + "inks:!display_video_360_advertiser_link\332" - + "A(parent,display_video_360_advertiser_li" - + "nk\022\327\001\n#DeleteDisplayVideo360AdvertiserLi" - + "nk\022J.google.analytics.admin.v1alpha.Dele" - + "teDisplayVideo360AdvertiserLinkRequest\032\026" - + ".google.protobuf.Empty\"L\202\323\344\223\002?*=/v1alpha" - + "/{name=properties/*/displayVideo360Adver" - + "tiserLinks/*}\332A\004name\022\356\002\n#UpdateDisplayVi" - + "deo360AdvertiserLink\022J.google.analytics." - + "admin.v1alpha.UpdateDisplayVideo360Adver" - + "tiserLinkRequest\032=.google.analytics.admi" - + "n.v1alpha.DisplayVideo360AdvertiserLink\"" - + "\273\001\202\323\344\223\002\204\0012_/v1alpha/{display_video_360_a" - + "dvertiser_link.name=properties/*/display" - + "Video360AdvertiserLinks/*}:!display_vide" - + "o_360_advertiser_link\332A-display_video_36" - + "0_advertiser_link,update_mask\022\230\002\n(GetDis" - + "playVideo360AdvertiserLinkProposal\022O.goo" - + "gle.analytics.admin.v1alpha.GetDisplayVi" - + "deo360AdvertiserLinkProposalRequest\032E.go" - + "ogle.analytics.admin.v1alpha.DisplayVide" - + "o360AdvertiserLinkProposal\"T\202\323\344\223\002G\022E/v1a" - + "lpha/{name=properties/*/displayVideo360A" - + "dvertiserLinkProposals/*}\332A\004name\022\253\002\n*Lis" - + "tDisplayVideo360AdvertiserLinkProposals\022" - + "Q.google.analytics.admin.v1alpha.ListDis" - + "playVideo360AdvertiserLinkProposalsReque" - + "st\032R.google.analytics.admin.v1alpha.List" - + "DisplayVideo360AdvertiserLinkProposalsRe" - + "sponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=propert" - + "ies/*}/displayVideo360AdvertiserLinkProp" - + "osals\332A\006parent\022\370\002\n+CreateDisplayVideo360" - + "AdvertiserLinkProposal\022R.google.analytic" - + "s.admin.v1alpha.CreateDisplayVideo360Adv" - + "ertiserLinkProposalRequest\032E.google.anal" - + "ytics.admin.v1alpha.DisplayVideo360Adver" - + "tiserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alpha/{pa" - + "rent=properties/*}/displayVideo360Advert" - + "iserLinkProposals:*display_video_360_adv" - + "ertiser_link_proposal\332A1parent,display_v" - + "ideo_360_advertiser_link_proposal\022\357\001\n+De" - + "leteDisplayVideo360AdvertiserLinkProposa" - + "l\022R.google.analytics.admin.v1alpha.Delet" - + "eDisplayVideo360AdvertiserLinkProposalRe" - + "quest\032\026.google.protobuf.Empty\"T\202\323\344\223\002G*E/" - + "v1alpha/{name=properties/*/displayVideo3" - + "60AdvertiserLinkProposals/*}\332A\004name\022\263\002\n," - + "ApproveDisplayVideo360AdvertiserLinkProp" - + "osal\022S.google.analytics.admin.v1alpha.Ap" - + "proveDisplayVideo360AdvertiserLinkPropos" - + "alRequest\032T.google.analytics.admin.v1alp" - + "ha.ApproveDisplayVideo360AdvertiserLinkP" - + "roposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name=" - + "properties/*/displayVideo360AdvertiserLi" - + "nkProposals/*}:approve:\001*\022\241\002\n+CancelDisp" - + "layVideo360AdvertiserLinkProposal\022R.goog" - + "le.analytics.admin.v1alpha.CancelDisplay" - + "Video360AdvertiserLinkProposalRequest\032E." - + "google.analytics.admin.v1alpha.DisplayVi" - + "deo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/v" + + "olSecret\"V\202\323\344\223\002I\022G/v1alpha/{name=propert" + + "ies/*/dataStreams/*/measurementProtocolS" + + "ecrets/*}\332A\004name\022\211\002\n\036ListMeasurementProt" + + "ocolSecrets\022E.google.analytics.admin.v1a" + + "lpha.ListMeasurementProtocolSecretsReque" + + "st\032F.google.analytics.admin.v1alpha.List" + + "MeasurementProtocolSecretsResponse\"X\202\323\344\223" + + "\002I\022G/v1alpha/{parent=properties/*/dataSt" + + "reams/*}/measurementProtocolSecrets\332A\006pa" + + "rent\022\270\002\n\037CreateMeasurementProtocolSecret" + + "\022F.google.analytics.admin.v1alpha.Create" + + "MeasurementProtocolSecretRequest\0329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecret\"\221\001\202\323\344\223\002f\"G/v1alpha/{parent=p" + + "roperties/*/dataStreams/*}/measurementPr" + + "otocolSecrets:\033measurement_protocol_secr" + + "et\332A\"parent,measurement_protocol_secret\022" + + "\331\001\n\037DeleteMeasurementProtocolSecret\022F.go" + + "ogle.analytics.admin.v1alpha.DeleteMeasu" + + "rementProtocolSecretRequest\032\026.google.pro" + + "tobuf.Empty\"V\202\323\344\223\002I*G/v1alpha/{name=prop" + + "erties/*/dataStreams/*/measurementProtoc" + + "olSecrets/*}\332A\004name\022\332\002\n\037UpdateMeasuremen" + + "tProtocolSecret\022F.google.analytics.admin" + + ".v1alpha.UpdateMeasurementProtocolSecret" + + "Request\0329.google.analytics.admin.v1alpha" + + ".MeasurementProtocolSecret\"\263\001\202\323\344\223\002\202\0012c/v" + + "1alpha/{measurement_protocol_secret.name" + + "=properties/*/dataStreams/*/measurementP" + + "rotocolSecrets/*}:\033measurement_protocol_" + + "secret\332A\'measurement_protocol_secret,upd" + + "ate_mask\022\367\001\n\035AcknowledgeUserDataCollecti" + + "on\022D.google.analytics.admin.v1alpha.Ackn" + + "owledgeUserDataCollectionRequest\032E.googl" + + "e.analytics.admin.v1alpha.AcknowledgeUse" + + "rDataCollectionResponse\"I\202\323\344\223\002C\">/v1alph" + + "a/{property=properties/*}:acknowledgeUse" + + "rDataCollection:\001*\022\344\001\n\031SearchChangeHisto" + + "ryEvents\022@.google.analytics.admin.v1alph" + + "a.SearchChangeHistoryEventsRequest\032A.goo" + + "gle.analytics.admin.v1alpha.SearchChange" + + "HistoryEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/" + + "{account=accounts/*}:searchChangeHistory" + + "Events:\001*\022\325\001\n\030GetGoogleSignalsSettings\022?" + + ".google.analytics.admin.v1alpha.GetGoogl" + + "eSignalsSettingsRequest\0325.google.analyti" + + "cs.admin.v1alpha.GoogleSignalsSettings\"A" + + "\202\323\344\223\0024\0222/v1alpha/{name=properties/*/goog" + + "leSignalsSettings}\332A\004name\022\254\002\n\033UpdateGoog" + + "leSignalsSettings\022B.google.analytics.adm" + + "in.v1alpha.UpdateGoogleSignalsSettingsRe" + + "quest\0325.google.analytics.admin.v1alpha.G" + + "oogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v1alpha/" + + "{google_signals_settings.name=properties" + + "/*/googleSignalsSettings}:\027google_signal" + + "s_settings\332A#google_signals_settings,upd" + + "ate_mask\022\353\001\n\025CreateConversionEvent\022<.goo" + + "gle.analytics.admin.v1alpha.CreateConver" + + "sionEventRequest\032/.google.analytics.admi" + + "n.v1alpha.ConversionEvent\"c\202\323\344\223\002C\"//v1al" + + "pha/{parent=properties/*}/conversionEven" + + "ts:\020conversion_event\332A\027parent,conversion" + + "_event\022\300\001\n\022GetConversionEvent\0229.google.a" + + "nalytics.admin.v1alpha.GetConversionEven" + + "tRequest\032/.google.analytics.admin.v1alph" + + "a.ConversionEvent\">\202\323\344\223\0021\022//v1alpha/{nam" + + "e=properties/*/conversionEvents/*}\332A\004nam" + + "e\022\255\001\n\025DeleteConversionEvent\022<.google.ana" + + "lytics.admin.v1alpha.DeleteConversionEve" + + "ntRequest\032\026.google.protobuf.Empty\">\202\323\344\223\002" + + "1*//v1alpha/{name=properties/*/conversio" + + "nEvents/*}\332A\004name\022\323\001\n\024ListConversionEven" + + "ts\022;.google.analytics.admin.v1alpha.List" + + "ConversionEventsRequest\032<.google.analyti" + + "cs.admin.v1alpha.ListConversionEventsRes" + + "ponse\"@\202\323\344\223\0021\022//v1alpha/{parent=properti" + + "es/*}/conversionEvents\332A\006parent\022\370\001\n GetD" + + "isplayVideo360AdvertiserLink\022G.google.an" + + "alytics.admin.v1alpha.GetDisplayVideo360" + + "AdvertiserLinkRequest\032=.google.analytics" + + ".admin.v1alpha.DisplayVideo360Advertiser" + + "Link\"L\202\323\344\223\002?\022=/v1alpha/{name=properties/" + + "*/displayVideo360AdvertiserLinks/*}\332A\004na" + + "me\022\213\002\n\"ListDisplayVideo360AdvertiserLink" + + "s\022I.google.analytics.admin.v1alpha.ListD" + + "isplayVideo360AdvertiserLinksRequest\032J.g" + + "oogle.analytics.admin.v1alpha.ListDispla" + + "yVideo360AdvertiserLinksResponse\"N\202\323\344\223\002?" + + "\022=/v1alpha/{parent=properties/*}/display" + + "Video360AdvertiserLinks\332A\006parent\022\306\002\n#Cre" + + "ateDisplayVideo360AdvertiserLink\022J.googl" + + "e.analytics.admin.v1alpha.CreateDisplayV" + + "ideo360AdvertiserLinkRequest\032=.google.an" + + "alytics.admin.v1alpha.DisplayVideo360Adv" + + "ertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{parent=p" + + "roperties/*}/displayVideo360AdvertiserLi" + + "nks:!display_video_360_advertiser_link\332A" + + "(parent,display_video_360_advertiser_lin" + + "k\022\327\001\n#DeleteDisplayVideo360AdvertiserLin" + + "k\022J.google.analytics.admin.v1alpha.Delet" + + "eDisplayVideo360AdvertiserLinkRequest\032\026." + + "google.protobuf.Empty\"L\202\323\344\223\002?*=/v1alpha/" + + "{name=properties/*/displayVideo360Advert" + + "iserLinks/*}\332A\004name\022\356\002\n#UpdateDisplayVid" + + "eo360AdvertiserLink\022J.google.analytics.a" + + "dmin.v1alpha.UpdateDisplayVideo360Advert" + + "iserLinkRequest\032=.google.analytics.admin" + + ".v1alpha.DisplayVideo360AdvertiserLink\"\273" + + "\001\202\323\344\223\002\204\0012_/v1alpha/{display_video_360_ad" + + "vertiser_link.name=properties/*/displayV" + + "ideo360AdvertiserLinks/*}:!display_video" + + "_360_advertiser_link\332A-display_video_360" + + "_advertiser_link,update_mask\022\230\002\n(GetDisp" + + "layVideo360AdvertiserLinkProposal\022O.goog" + + "le.analytics.admin.v1alpha.GetDisplayVid" + + "eo360AdvertiserLinkProposalRequest\032E.goo" + + "gle.analytics.admin.v1alpha.DisplayVideo" + + "360AdvertiserLinkProposal\"T\202\323\344\223\002G\022E/v1al" + + "pha/{name=properties/*/displayVideo360Ad" + + "vertiserLinkProposals/*}\332A\004name\022\253\002\n*List" + + "DisplayVideo360AdvertiserLinkProposals\022Q" + + ".google.analytics.admin.v1alpha.ListDisp" + + "layVideo360AdvertiserLinkProposalsReques" + + "t\032R.google.analytics.admin.v1alpha.ListD" + + "isplayVideo360AdvertiserLinkProposalsRes" + + "ponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=properti" + + "es/*}/displayVideo360AdvertiserLinkPropo" + + "sals\332A\006parent\022\370\002\n+CreateDisplayVideo360A" + + "dvertiserLinkProposal\022R.google.analytics" + + ".admin.v1alpha.CreateDisplayVideo360Adve" + + "rtiserLinkProposalRequest\032E.google.analy" + + "tics.admin.v1alpha.DisplayVideo360Advert" + + "iserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alpha/{par" + + "ent=properties/*}/displayVideo360Adverti" + + "serLinkProposals:*display_video_360_adve" + + "rtiser_link_proposal\332A1parent,display_vi" + + "deo_360_advertiser_link_proposal\022\357\001\n+Del" + + "eteDisplayVideo360AdvertiserLinkProposal" + + "\022R.google.analytics.admin.v1alpha.Delete" + + "DisplayVideo360AdvertiserLinkProposalReq" + + "uest\032\026.google.protobuf.Empty\"T\202\323\344\223\002G*E/v" + "1alpha/{name=properties/*/displayVideo36" - + "0AdvertiserLinkProposals/*}:cancel:\001*\022\353\001" - + "\n\025CreateCustomDimension\022<.google.analyti" - + "cs.admin.v1alpha.CreateCustomDimensionRe" - + "quest\032/.google.analytics.admin.v1alpha.C" - + "ustomDimension\"c\202\323\344\223\002C\"//v1alpha/{parent" - + "=properties/*}/customDimensions:\020custom_" - + "dimension\332A\027parent,custom_dimension\022\201\002\n\025" - + "UpdateCustomDimension\022<.google.analytics", - ".admin.v1alpha.UpdateCustomDimensionRequ" - + "est\032/.google.analytics.admin.v1alpha.Cus" - + "tomDimension\"y\202\323\344\223\002T2@/v1alpha/{custom_d" - + "imension.name=properties/*/customDimensi" - + "ons/*}:\020custom_dimension\332A\034custom_dimens" - + "ion,update_mask\022\323\001\n\024ListCustomDimensions" - + "\022;.google.analytics.admin.v1alpha.ListCu" - + "stomDimensionsRequest\032<.google.analytics" - + ".admin.v1alpha.ListCustomDimensionsRespo" - + "nse\"@\202\323\344\223\0021\022//v1alpha/{parent=properties" - + "/*}/customDimensions\332A\006parent\022\272\001\n\026Archiv" - + "eCustomDimension\022=.google.analytics.admi" - + "n.v1alpha.ArchiveCustomDimensionRequest\032" - + "\026.google.protobuf.Empty\"I\202\323\344\223\002<\"7/v1alph" - + "a/{name=properties/*/customDimensions/*}" - + ":archive:\001*\332A\004name\022\300\001\n\022GetCustomDimensio" - + "n\0229.google.analytics.admin.v1alpha.GetCu" - + "stomDimensionRequest\032/.google.analytics." - + "admin.v1alpha.CustomDimension\">\202\323\344\223\0021\022//" - + "v1alpha/{name=properties/*/customDimensi" - + "ons/*}\332A\004name\022\331\001\n\022CreateCustomMetric\0229.g" - + "oogle.analytics.admin.v1alpha.CreateCust" - + "omMetricRequest\032,.google.analytics.admin" - + ".v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1alpha/" - + "{parent=properties/*}/customMetrics:\rcus" - + "tom_metric\332A\024parent,custom_metric\022\354\001\n\022Up" - + "dateCustomMetric\0229.google.analytics.admi" - + "n.v1alpha.UpdateCustomMetricRequest\032,.go" - + "ogle.analytics.admin.v1alpha.CustomMetri" - + "c\"m\202\323\344\223\002K2:/v1alpha/{custom_metric.name=" - + "properties/*/customMetrics/*}:\rcustom_me" - + "tric\332A\031custom_metric,update_mask\022\307\001\n\021Lis" - + "tCustomMetrics\0228.google.analytics.admin." - + "v1alpha.ListCustomMetricsRequest\0329.googl" - + "e.analytics.admin.v1alpha.ListCustomMetr" - + "icsResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=pr" - + "operties/*}/customMetrics\332A\006parent\022\261\001\n\023A" - + "rchiveCustomMetric\022:.google.analytics.ad" - + "min.v1alpha.ArchiveCustomMetricRequest\032\026" - + ".google.protobuf.Empty\"F\202\323\344\223\0029\"4/v1alpha" - + "/{name=properties/*/customMetrics/*}:arc" - + "hive:\001*\332A\004name\022\264\001\n\017GetCustomMetric\0226.goo" - + "gle.analytics.admin.v1alpha.GetCustomMet" - + "ricRequest\032,.google.analytics.admin.v1al" - + "pha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha/{name" - + "=properties/*/customMetrics/*}\332A\004name\022\325\001" - + "\n\030GetDataRetentionSettings\022?.google.anal" - + "ytics.admin.v1alpha.GetDataRetentionSett" - + "ingsRequest\0325.google.analytics.admin.v1a" - + "lpha.DataRetentionSettings\"A\202\323\344\223\0024\0222/v1a" - + "lpha/{name=properties/*/dataRetentionSet" - + "tings}\332A\004name\022\254\002\n\033UpdateDataRetentionSet" - + "tings\022B.google.analytics.admin.v1alpha.U" - + "pdateDataRetentionSettingsRequest\0325.goog" - + "le.analytics.admin.v1alpha.DataRetention" - + "Settings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_retent" - + "ion_settings.name=properties/*/dataReten" - + "tionSettings}:\027data_retention_settings\332A" - + "#data_retention_settings,update_mask\022\315\001\n" - + "\020CreateDataStream\0227.google.analytics.adm" - + "in.v1alpha.CreateDataStreamRequest\032*.goo" - + "gle.analytics.admin.v1alpha.DataStream\"T" - + "\202\323\344\223\0029\"*/v1alpha/{parent=properties/*}/d" - + "ataStreams:\013data_stream\332A\022parent,data_st" - + "ream\022\236\001\n\020DeleteDataStream\0227.google.analy" - + "tics.admin.v1alpha.DeleteDataStreamReque" - + "st\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v1a" - + "lpha/{name=properties/*/dataStreams/*}\332A" - + "\004name\022\336\001\n\020UpdateDataStream\0227.google.anal" - + "ytics.admin.v1alpha.UpdateDataStreamRequ" - + "est\032*.google.analytics.admin.v1alpha.Dat" - + "aStream\"e\202\323\344\223\002E26/v1alpha/{data_stream.n" - + "ame=properties/*/dataStreams/*}:\013data_st" - + "ream\332A\027data_stream,update_mask\022\277\001\n\017ListD" - + "ataStreams\0226.google.analytics.admin.v1al" - + "pha.ListDataStreamsRequest\0327.google.anal" - + "ytics.admin.v1alpha.ListDataStreamsRespo" - + "nse\";\202\323\344\223\002,\022*/v1alpha/{parent=properties" - + "/*}/dataStreams\332A\006parent\022\254\001\n\rGetDataStre" - + "am\0224.google.analytics.admin.v1alpha.GetD" - + "ataStreamRequest\032*.google.analytics.admi" - + "n.v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1alpha/{" - + "name=properties/*/dataStreams/*}\332A\004name\032" - + "\374\001\312A\035analyticsadmin.googleapis.com\322A\330\001ht" - + "tps://www.googleapis.com/auth/analytics." - + "edit,https://www.googleapis.com/auth/ana" - + "lytics.manage.users,https://www.googleap" - + "is.com/auth/analytics.manage.users.reado" - + "nly,https://www.googleapis.com/auth/anal" - + "ytics.readonlyB\200\001\n\"com.google.analytics." - + "admin.v1alphaB\023AnalyticsAdminProtoP\001ZCgo" - + "ogle.golang.org/genproto/googleapis/anal" - + "ytics/admin/v1alpha;adminb\006proto3" + + "0AdvertiserLinkProposals/*}\332A\004name\022\263\002\n,A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "sal\022S.google.analytics.admin.v1alpha.App" + + "roveDisplayVideo360AdvertiserLinkProposa" + + "lRequest\032T.google.analytics.admin.v1alph" + + "a.ApproveDisplayVideo360AdvertiserLinkPr" + + "oposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name=p" + + "roperties/*/displayVideo360AdvertiserLin" + + "kProposals/*}:approve:\001*\022\241\002\n+CancelDispl" + + "ayVideo360AdvertiserLinkProposal\022R.googl" + + "e.analytics.admin.v1alpha.CancelDisplayV" + + "ideo360AdvertiserLinkProposalRequest\032E.g" + + "oogle.analytics.admin.v1alpha.DisplayVid" + + "eo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/v1" + + "alpha/{name=properties/*/displayVideo360" + + "AdvertiserLinkProposals/*}:cancel:\001*\022\353\001\n" + + "\025CreateCustomDimension\022<.google.analytic" + + "s.admin.v1alpha.CreateCustomDimensionReq" + + "uest\032/.google.analytics.admin.v1alpha.Cu" + + "stomDimension\"c\202\323\344\223\002C\"//v1alpha/{parent=" + + "properties/*}/customDimensions:\020custom_d" + + "imension\332A\027parent,custom_dimension\022\201\002\n\025U" + + "pdateCustomDimension\022<.google.analytics." + + "admin.v1alpha.UpdateCustomDimensionReque" + + "st\032/.google.analytics.admin.v1alpha.Cust" + + "omDimension\"y\202\323\344\223\002T2@/v1alpha/{custom_di" + + "mension.name=properties/*/customDimensio" + + "ns/*}:\020custom_dimension\332A\034custom_dimensi" + + "on,update_mask\022\323\001\n\024ListCustomDimensions\022" + + ";.google.analytics.admin.v1alpha.ListCus" + + "tomDimensionsRequest\032<.google.analytics." + + "admin.v1alpha.ListCustomDimensionsRespon" + + "se\"@\202\323\344\223\0021\022//v1alpha/{parent=properties/" + + "*}/customDimensions\332A\006parent\022\272\001\n\026Archive" + + "CustomDimension\022=.google.analytics.admin" + + ".v1alpha.ArchiveCustomDimensionRequest\032\026" + + ".google.protobuf.Empty\"I\202\323\344\223\002<\"7/v1alpha" + + "/{name=properties/*/customDimensions/*}:" + + "archive:\001*\332A\004name\022\300\001\n\022GetCustomDimension" + + "\0229.google.analytics.admin.v1alpha.GetCus" + + "tomDimensionRequest\032/.google.analytics.a" + + "dmin.v1alpha.CustomDimension\">\202\323\344\223\0021\022//v" + + "1alpha/{name=properties/*/customDimensio" + + "ns/*}\332A\004name\022\331\001\n\022CreateCustomMetric\0229.go" + + "ogle.analytics.admin.v1alpha.CreateCusto" + + "mMetricRequest\032,.google.analytics.admin." + + "v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1alpha/{" + + "parent=properties/*}/customMetrics:\rcust" + + "om_metric\332A\024parent,custom_metric\022\354\001\n\022Upd" + + "ateCustomMetric\0229.google.analytics.admin" + + ".v1alpha.UpdateCustomMetricRequest\032,.goo" + + "gle.analytics.admin.v1alpha.CustomMetric" + + "\"m\202\323\344\223\002K2:/v1alpha/{custom_metric.name=p" + + "roperties/*/customMetrics/*}:\rcustom_met" + + "ric\332A\031custom_metric,update_mask\022\307\001\n\021List" + + "CustomMetrics\0228.google.analytics.admin.v" + + "1alpha.ListCustomMetricsRequest\0329.google" + + ".analytics.admin.v1alpha.ListCustomMetri" + + "csResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=pro" + + "perties/*}/customMetrics\332A\006parent\022\261\001\n\023Ar" + + "chiveCustomMetric\022:.google.analytics.adm" + + "in.v1alpha.ArchiveCustomMetricRequest\032\026." + + "google.protobuf.Empty\"F\202\323\344\223\0029\"4/v1alpha/" + + "{name=properties/*/customMetrics/*}:arch" + + "ive:\001*\332A\004name\022\264\001\n\017GetCustomMetric\0226.goog" + + "le.analytics.admin.v1alpha.GetCustomMetr" + + "icRequest\032,.google.analytics.admin.v1alp" + + "ha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha/{name=" + + "properties/*/customMetrics/*}\332A\004name\022\325\001\n" + + "\030GetDataRetentionSettings\022?.google.analy" + + "tics.admin.v1alpha.GetDataRetentionSetti" + + "ngsRequest\0325.google.analytics.admin.v1al" + + "pha.DataRetentionSettings\"A\202\323\344\223\0024\0222/v1al" + + "pha/{name=properties/*/dataRetentionSett" + + "ings}\332A\004name\022\254\002\n\033UpdateDataRetentionSett" + + "ings\022B.google.analytics.admin.v1alpha.Up" + + "dateDataRetentionSettingsRequest\0325.googl" + + "e.analytics.admin.v1alpha.DataRetentionS" + + "ettings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_retenti" + + "on_settings.name=properties/*/dataRetent" + + "ionSettings}:\027data_retention_settings\332A#" + + "data_retention_settings,update_mask\022\315\001\n\020" + + "CreateDataStream\0227.google.analytics.admi" + + "n.v1alpha.CreateDataStreamRequest\032*.goog" + + "le.analytics.admin.v1alpha.DataStream\"T\202" + + "\323\344\223\0029\"*/v1alpha/{parent=properties/*}/da" + + "taStreams:\013data_stream\332A\022parent,data_str" + + "eam\022\236\001\n\020DeleteDataStream\0227.google.analyt" + + "ics.admin.v1alpha.DeleteDataStreamReques" + + "t\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v1al" + + "pha/{name=properties/*/dataStreams/*}\332A\004" + + "name\022\336\001\n\020UpdateDataStream\0227.google.analy" + + "tics.admin.v1alpha.UpdateDataStreamReque" + + "st\032*.google.analytics.admin.v1alpha.Data" + + "Stream\"e\202\323\344\223\002E26/v1alpha/{data_stream.na" + + "me=properties/*/dataStreams/*}:\013data_str" + + "eam\332A\027data_stream,update_mask\022\277\001\n\017ListDa" + + "taStreams\0226.google.analytics.admin.v1alp" + + "ha.ListDataStreamsRequest\0327.google.analy" + + "tics.admin.v1alpha.ListDataStreamsRespon" + + "se\";\202\323\344\223\002,\022*/v1alpha/{parent=properties/" + + "*}/dataStreams\332A\006parent\022\254\001\n\rGetDataStrea" + + "m\0224.google.analytics.admin.v1alpha.GetDa" + + "taStreamRequest\032*.google.analytics.admin" + + ".v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1alpha/{n" + + "ame=properties/*/dataStreams/*}\332A\004name\032\374" + + "\001\312A\035analyticsadmin.googleapis.com\322A\330\001htt" + + "ps://www.googleapis.com/auth/analytics.e" + + "dit,https://www.googleapis.com/auth/anal" + + "ytics.manage.users,https://www.googleapi" + + "s.com/auth/analytics.manage.users.readon" + + "ly,https://www.googleapis.com/auth/analy" + + "tics.readonlyB\200\001\n\"com.google.analytics.a" + + "dmin.v1alphaB\023AnalyticsAdminProtoP\001ZCgoo" + + "gle.golang.org/genproto/googleapis/analy" + + "tics/admin/v1alpha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1599,136 +1384,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "Requests", }); - internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor, - new java.lang.String[] { - "WebDataStream", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor, - new java.lang.String[] { - "WebDataStream", "Parent", - }); - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor, - new java.lang.String[] { - "WebDataStreams", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor, - new java.lang.String[] { - "IosAppDataStream", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor, - new java.lang.String[] { - "IosAppDataStreams", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor, - new java.lang.String[] { - "AndroidAppDataStream", "UpdateMask", - }); - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor, - new java.lang.String[] { - "AndroidAppDataStreams", "NextPageToken", - }); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(28); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, @@ -1736,7 +1393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirebaseLink", }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(29); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -1744,7 +1401,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(30); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -1752,7 +1409,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(31); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -1760,7 +1417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(32); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -1768,7 +1425,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(33); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -1776,7 +1433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(34); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -1784,7 +1441,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(35); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -1792,7 +1449,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(36); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -1800,7 +1457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(37); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -1808,7 +1465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(38); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -1816,7 +1473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(39); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -1824,7 +1481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(40); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, @@ -1832,7 +1489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountSummaries", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(41); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, @@ -1840,13 +1497,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "Acknowledgement", }); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(42); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor, new java.lang.String[] {}); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(43); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, @@ -1862,7 +1519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageToken", }); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, @@ -1870,7 +1527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeHistoryEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, @@ -1878,7 +1535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, @@ -1886,7 +1543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MeasurementProtocolSecret", }); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, @@ -1894,7 +1551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, @@ -1902,7 +1559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecret", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, @@ -1910,7 +1567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, @@ -1918,7 +1575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecrets", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, @@ -1926,7 +1583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, @@ -1934,7 +1591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleSignalsSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, @@ -1942,7 +1599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvent", "Parent", }); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, @@ -1950,7 +1607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, @@ -1958,7 +1615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, @@ -1966,7 +1623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, @@ -1974,7 +1631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -1982,7 +1639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, @@ -1990,7 +1647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(60); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, @@ -1998,7 +1655,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(61); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2006,7 +1663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DisplayVideo360AdvertiserLink", }); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(62); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2014,7 +1671,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(63); internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2022,7 +1679,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(64); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2030,7 +1687,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(65); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, @@ -2038,7 +1695,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(66); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, @@ -2046,7 +1703,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(67); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2054,7 +1711,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DisplayVideo360AdvertiserLinkProposal", }); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(68); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2062,7 +1719,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(69); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2070,7 +1727,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(70); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, @@ -2078,7 +1735,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLink", }); internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(71); internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2086,7 +1743,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(72); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, @@ -2094,7 +1751,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomDimension", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(73); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, @@ -2102,7 +1759,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimension", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(74); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, @@ -2110,7 +1767,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(75); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, @@ -2118,7 +1775,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimensions", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(76); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, @@ -2126,7 +1783,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(77); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, @@ -2134,7 +1791,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(78); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, @@ -2142,7 +1799,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomMetric", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(79); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, @@ -2150,7 +1807,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetric", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(80); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, @@ -2158,7 +1815,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(81); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, @@ -2166,7 +1823,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetrics", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(82); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, @@ -2174,7 +1831,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(83); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, @@ -2182,7 +1839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(84); internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, @@ -2190,7 +1847,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(85); internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, @@ -2198,7 +1855,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataRetentionSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(86); internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, @@ -2206,7 +1863,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DataStream", }); internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(87); internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, @@ -2214,7 +1871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(88); internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, @@ -2222,7 +1879,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStream", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(89); internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, @@ -2230,7 +1887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(90); internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, @@ -2238,7 +1895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(91); internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java deleted file mode 100644 index fec64428..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java +++ /dev/null @@ -1,1795 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A resource message representing a Google Analytics Android app stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AndroidAppDataStream} - */ -public final class AndroidAppDataStream extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AndroidAppDataStream) - AndroidAppDataStreamOrBuilder { - private static final long serialVersionUID = 0L; - // Use AndroidAppDataStream.newBuilder() to construct. - private AndroidAppDataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AndroidAppDataStream() { - name_ = ""; - firebaseAppId_ = ""; - packageName_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AndroidAppDataStream(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AndroidAppDataStream( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - firebaseAppId_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - packageName_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/1000/androidAppDataStreams/2000"
-   * 
- * - * 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 Data Stream.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/1000/androidAppDataStreams/2000"
-   * 
- * - * 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 FIREBASE_APP_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-   * Output only. ID of the corresponding Android app in Firebase, if any.
-   * This ID can change if the Android app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - 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(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. ID of the corresponding Android app in Firebase, if any.
-   * This ID can change if the Android app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int PACKAGE_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object packageName_; - /** - * - * - *
-   * Immutable. The package name for the app being measured.
-   * Example: "com.example.myandroidapp"
-   * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - @java.lang.Override - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - 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(); - packageName_ = s; - return s; - } - } - /** - * - * - *
-   * Immutable. The package name for the app being measured.
-   * Example: "com.example.myandroidapp"
-   * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.AndroidAppDataStream)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AndroidAppDataStream other = - (com.google.analytics.admin.v1alpha.AndroidAppDataStream) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getPackageName().equals(other.getPackageName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPackageName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream 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.AndroidAppDataStream parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream 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.AndroidAppDataStream parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream 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.AndroidAppDataStream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream 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.AndroidAppDataStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream 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.AndroidAppDataStream 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.AndroidAppDataStream 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.AndroidAppDataStream prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource message representing a Google Analytics Android app stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AndroidAppDataStream} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AndroidAppDataStream) - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - firebaseAppId_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - packageName_ = ""; - - displayName_ = ""; - - 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_AndroidAppDataStream_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream build() { - com.google.analytics.admin.v1alpha.AndroidAppDataStream result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream buildPartial() { - com.google.analytics.admin.v1alpha.AndroidAppDataStream result = - new com.google.analytics.admin.v1alpha.AndroidAppDataStream(this); - result.name_ = name_; - result.firebaseAppId_ = firebaseAppId_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.packageName_ = packageName_; - result.displayName_ = displayName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AndroidAppDataStream) { - return mergeFrom((com.google.analytics.admin.v1alpha.AndroidAppDataStream) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AndroidAppDataStream other) { - if (other == com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getPackageName().isEmpty()) { - packageName_ = other.packageName_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.AndroidAppDataStream parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.AndroidAppDataStream) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/1000/androidAppDataStreams/2000"
-     * 
- * - * 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 Data Stream.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/1000/androidAppDataStreams/2000"
-     * 
- * - * 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 Data Stream.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/1000/androidAppDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/1000/androidAppDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/1000/androidAppDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object packageName_ = ""; - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - public com.google.protobuf.ByteString getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - packageName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearPackageName() { - - packageName_ = getDefaultInstance().getPackageName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - packageName_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - @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.AndroidAppDataStream) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AndroidAppDataStream) - private static final com.google.analytics.admin.v1alpha.AndroidAppDataStream DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AndroidAppDataStream(); - } - - public static com.google.analytics.admin.v1alpha.AndroidAppDataStream getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AndroidAppDataStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AndroidAppDataStream(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java deleted file mode 100644 index 43984e0b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.admin.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class AndroidAppDataStreamName implements ResourceName { - private static final PathTemplate PROPERTY_ANDROID_APP_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/androidAppDataStreams/{android_app_data_stream}"); - private volatile Map fieldValuesMap; - private final String property; - private final String androidAppDataStream; - - @Deprecated - protected AndroidAppDataStreamName() { - property = null; - androidAppDataStream = null; - } - - private AndroidAppDataStreamName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - androidAppDataStream = Preconditions.checkNotNull(builder.getAndroidAppDataStream()); - } - - public String getProperty() { - return property; - } - - public String getAndroidAppDataStream() { - return androidAppDataStream; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static AndroidAppDataStreamName of(String property, String androidAppDataStream) { - return newBuilder().setProperty(property).setAndroidAppDataStream(androidAppDataStream).build(); - } - - public static String format(String property, String androidAppDataStream) { - return newBuilder() - .setProperty(property) - .setAndroidAppDataStream(androidAppDataStream) - .build() - .toString(); - } - - public static AndroidAppDataStreamName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_ANDROID_APP_DATA_STREAM.validatedMatch( - formattedString, "AndroidAppDataStreamName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("android_app_data_stream")); - } - - 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 (AndroidAppDataStreamName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_ANDROID_APP_DATA_STREAM.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 (androidAppDataStream != null) { - fieldMapBuilder.put("android_app_data_stream", androidAppDataStream); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_ANDROID_APP_DATA_STREAM.instantiate( - "property", property, "android_app_data_stream", androidAppDataStream); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - AndroidAppDataStreamName that = ((AndroidAppDataStreamName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.androidAppDataStream, that.androidAppDataStream); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(androidAppDataStream); - return h; - } - - /** Builder for properties/{property}/androidAppDataStreams/{android_app_data_stream}. */ - public static class Builder { - private String property; - private String androidAppDataStream; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getAndroidAppDataStream() { - return androidAppDataStream; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setAndroidAppDataStream(String androidAppDataStream) { - this.androidAppDataStream = androidAppDataStream; - return this; - } - - private Builder(AndroidAppDataStreamName androidAppDataStreamName) { - this.property = androidAppDataStreamName.property; - this.androidAppDataStream = androidAppDataStreamName.androidAppDataStream; - } - - public AndroidAppDataStreamName build() { - return new AndroidAppDataStreamName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java deleted file mode 100644 index e1857fad..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamOrBuilder.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface AndroidAppDataStreamOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AndroidAppDataStream) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/1000/androidAppDataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/1000/androidAppDataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. ID of the corresponding Android app in Firebase, if any.
-   * This ID can change if the Android app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-   * Output only. ID of the corresponding Android app in Firebase, if any.
-   * This ID can change if the Android app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Immutable. The package name for the app being measured.
-   * Example: "com.example.myandroidapp"
-   * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The packageName. - */ - java.lang.String getPackageName(); - /** - * - * - *
-   * Immutable. The package name for the app being measured.
-   * Example: "com.example.myandroidapp"
-   * 
- * - * string package_name = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for packageName. - */ - com.google.protobuf.ByteString getPackageNameBytes(); - - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index 296252e0..a19c9a95 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -232,115 +232,6 @@ public interface ChangeHistoryResourceOrBuilder */ com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); - /** - * - * - *
-     * A snapshot of a WebDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * - * @return Whether the webDataStream field is set. - */ - boolean hasWebDataStream(); - /** - * - * - *
-     * A snapshot of a WebDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * - * @return The webDataStream. - */ - com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); - /** - * - * - *
-     * A snapshot of a WebDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); - - /** - * - * - *
-     * A snapshot of an AndroidAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - * - * @return Whether the androidAppDataStream field is set. - */ - boolean hasAndroidAppDataStream(); - /** - * - * - *
-     * A snapshot of an AndroidAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - * - * @return The androidAppDataStream. - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); - /** - * - * - *
-     * A snapshot of an AndroidAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder(); - - /** - * - * - *
-     * A snapshot of an IosAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - * - * @return Whether the iosAppDataStream field is set. - */ - boolean hasIosAppDataStream(); - /** - * - * - *
-     * A snapshot of an IosAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - * - * @return The iosAppDataStream. - */ - com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); - /** - * - * - *
-     * A snapshot of an IosAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - */ - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); - /** * * @@ -728,6 +619,41 @@ public interface ChangeHistoryResourceOrBuilder com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return The dataStream. + */ + com.google.analytics.admin.v1alpha.DataStream getDataStream(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -815,64 +741,6 @@ private ChangeHistoryResource( resourceCase_ = 2; break; } - case 26: - { - com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; - if (resourceCase_ == 3) { - subBuilder = - ((com.google.analytics.admin.v1alpha.WebDataStream) resource_).toBuilder(); - } - resource_ = - input.readMessage( - com.google.analytics.admin.v1alpha.WebDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.admin.v1alpha.WebDataStream) resource_); - resource_ = subBuilder.buildPartial(); - } - resourceCase_ = 3; - break; - } - case 34: - { - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; - if (resourceCase_ == 4) { - subBuilder = - ((com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) - .toBuilder(); - } - resource_ = - input.readMessage( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); - resource_ = subBuilder.buildPartial(); - } - resourceCase_ = 4; - break; - } - case 42: - { - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; - if (resourceCase_ == 5) { - subBuilder = - ((com.google.analytics.admin.v1alpha.IosAppDataStream) resource_).toBuilder(); - } - resource_ = - input.readMessage( - com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); - resource_ = subBuilder.buildPartial(); - } - resourceCase_ = 5; - break; - } case 50: { com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; @@ -1072,6 +940,23 @@ private ChangeHistoryResource( resourceCase_ = 15; break; } + case 146: + { + com.google.analytics.admin.v1alpha.DataStream.Builder subBuilder = null; + if (resourceCase_ == 18) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.DataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 18; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -1116,9 +1001,6 @@ public enum ResourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ACCOUNT(1), PROPERTY(2), - WEB_DATA_STREAM(3), - ANDROID_APP_DATA_STREAM(4), - IOS_APP_DATA_STREAM(5), FIREBASE_LINK(6), GOOGLE_ADS_LINK(7), GOOGLE_SIGNALS_SETTINGS(8), @@ -1129,6 +1011,7 @@ public enum ResourceCase CUSTOM_DIMENSION(13), CUSTOM_METRIC(14), DATA_RETENTION_SETTINGS(15), + DATA_STREAM(18), RESOURCE_NOT_SET(0); private final int value; @@ -1151,12 +1034,6 @@ public static ResourceCase forNumber(int value) { return ACCOUNT; case 2: return PROPERTY; - case 3: - return WEB_DATA_STREAM; - case 4: - return ANDROID_APP_DATA_STREAM; - case 5: - return IOS_APP_DATA_STREAM; case 6: return FIREBASE_LINK; case 7: @@ -1177,6 +1054,8 @@ public static ResourceCase forNumber(int value) { return CUSTOM_METRIC; case 15: return DATA_RETENTION_SETTINGS; + case 18: + return DATA_STREAM; case 0: return RESOURCE_NOT_SET; default: @@ -1295,164 +1174,6 @@ public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); } - public static final int WEB_DATA_STREAM_FIELD_NUMBER = 3; - /** - * - * - *
-     * A snapshot of a WebDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * - * @return Whether the webDataStream field is set. - */ - @java.lang.Override - public boolean hasWebDataStream() { - return resourceCase_ == 3; - } - /** - * - * - *
-     * A snapshot of a WebDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * - * @return The webDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { - if (resourceCase_ == 3) { - return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } - /** - * - * - *
-     * A snapshot of a WebDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { - if (resourceCase_ == 3) { - return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } - - public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 4; - /** - * - * - *
-     * A snapshot of an AndroidAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - * - * @return Whether the androidAppDataStream field is set. - */ - @java.lang.Override - public boolean hasAndroidAppDataStream() { - return resourceCase_ == 4; - } - /** - * - * - *
-     * A snapshot of an AndroidAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - * - * @return The androidAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - if (resourceCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); - } - /** - * - * - *
-     * A snapshot of an AndroidAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - if (resourceCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); - } - - public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 5; - /** - * - * - *
-     * A snapshot of an IosAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - * - * @return Whether the iosAppDataStream field is set. - */ - @java.lang.Override - public boolean hasIosAppDataStream() { - return resourceCase_ == 5; - } - /** - * - * - *
-     * A snapshot of an IosAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - * - * @return The iosAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - if (resourceCase_ == 5) { - return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); - } - /** - * - * - *
-     * A snapshot of an IosAppDataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - if (resourceCase_ == 5) { - return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); - } - public static final int FIREBASE_LINK_FIELD_NUMBER = 6; /** * @@ -2005,10 +1726,61 @@ public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetention return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); } - private byte memoizedIsInitialized = -1; - + public static final int DATA_STREAM_FIELD_NUMBER = 18; + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ @java.lang.Override - public final boolean isInitialized() { + public boolean hasDataStream() { + return resourceCase_ == 18; + } + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; @@ -2025,15 +1797,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resourceCase_ == 2) { output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); } - if (resourceCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); - } - if (resourceCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); - } - if (resourceCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); - } if (resourceCase_ == 6) { output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); } @@ -2070,6 +1833,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); } + if (resourceCase_ == 18) { + output.writeMessage(18, (com.google.analytics.admin.v1alpha.DataStream) resource_); + } unknownFields.writeTo(output); } @@ -2089,21 +1855,6 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.analytics.admin.v1alpha.Property) resource_); } - if (resourceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); - } - if (resourceCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); - } - if (resourceCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); - } if (resourceCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2156,6 +1907,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); } + if (resourceCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.analytics.admin.v1alpha.DataStream) resource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2182,15 +1938,6 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getProperty().equals(other.getProperty())) return false; break; - case 3: - if (!getWebDataStream().equals(other.getWebDataStream())) return false; - break; - case 4: - if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; - break; - case 5: - if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; - break; case 6: if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; break; @@ -2224,6 +1971,9 @@ public boolean equals(final java.lang.Object obj) { case 15: if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; break; + case 18: + if (!getDataStream().equals(other.getDataStream())) return false; + break; case 0: default: } @@ -2247,18 +1997,6 @@ public int hashCode() { hash = (37 * hash) + PROPERTY_FIELD_NUMBER; hash = (53 * hash) + getProperty().hashCode(); break; - case 3: - hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getWebDataStream().hashCode(); - break; - case 4: - hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppDataStream().hashCode(); - break; - case 5: - hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getIosAppDataStream().hashCode(); - break; case 6: hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; hash = (53 * hash) + getFirebaseLink().hashCode(); @@ -2299,6 +2037,10 @@ public int hashCode() { hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getDataRetentionSettings().hashCode(); break; + case 18: + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + break; case 0: default: } @@ -2507,27 +2249,6 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = propertyBuilder_.build(); } } - if (resourceCase_ == 3) { - if (webDataStreamBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = webDataStreamBuilder_.build(); - } - } - if (resourceCase_ == 4) { - if (androidAppDataStreamBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = androidAppDataStreamBuilder_.build(); - } - } - if (resourceCase_ == 5) { - if (iosAppDataStreamBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = iosAppDataStreamBuilder_.build(); - } - } if (resourceCase_ == 6) { if (firebaseLinkBuilder_ == null) { result.resource_ = resource_; @@ -2598,6 +2319,13 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = dataRetentionSettingsBuilder_.build(); } } + if (resourceCase_ == 18) { + if (dataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = dataStreamBuilder_.build(); + } + } result.resourceCase_ = resourceCase_; onBuilt(); return result; @@ -2667,21 +2395,6 @@ public Builder mergeFrom( mergeProperty(other.getProperty()); break; } - case WEB_DATA_STREAM: - { - mergeWebDataStream(other.getWebDataStream()); - break; - } - case ANDROID_APP_DATA_STREAM: - { - mergeAndroidAppDataStream(other.getAndroidAppDataStream()); - break; - } - case IOS_APP_DATA_STREAM: - { - mergeIosAppDataStream(other.getIosAppDataStream()); - break; - } case FIREBASE_LINK: { mergeFirebaseLink(other.getFirebaseLink()); @@ -2733,6 +2446,11 @@ public Builder mergeFrom( mergeDataRetentionSettings(other.getDataRetentionSettings()); break; } + case DATA_STREAM: + { + mergeDataStream(other.getDataStream()); + break; + } case RESOURCE_NOT_SET: { break; @@ -2885,644 +2603,8 @@ public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { if (resourceCase_ == 1 && resource_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { resource_ = - com.google.analytics.admin.v1alpha.Account.newBuilder( - (com.google.analytics.admin.v1alpha.Account) resource_) - .mergeFrom(value) - .buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 1) { - accountBuilder_.mergeFrom(value); - } - accountBuilder_.setMessage(value); - } - resourceCase_ = 1; - return this; - } - /** - * - * - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - if (resourceCase_ == 1) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 1) { - resourceCase_ = 0; - resource_ = null; - } - accountBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { - return getAccountFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - if ((resourceCase_ == 1) && (accountBuilder_ != null)) { - return accountBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1alpha.Account) resource_; - } - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - } - /** - * - * - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, - com.google.analytics.admin.v1alpha.Account.Builder, - com.google.analytics.admin.v1alpha.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - if (!(resourceCase_ == 1)) { - resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - accountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, - com.google.analytics.admin.v1alpha.Account.Builder, - com.google.analytics.admin.v1alpha.AccountOrBuilder>( - (com.google.analytics.admin.v1alpha.Account) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 1; - onChanged(); - ; - return accountBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, - com.google.analytics.admin.v1alpha.Property.Builder, - com.google.analytics.admin.v1alpha.PropertyOrBuilder> - propertyBuilder_; - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return resourceCase_ == 2; - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getProperty() { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1alpha.Property) resource_; - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } else { - if (resourceCase_ == 2) { - return propertyBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - resourceCase_ = 2; - return this; - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder setProperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 2; - return this; - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2 - && resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - resource_ = - com.google.analytics.admin.v1alpha.Property.newBuilder( - (com.google.analytics.admin.v1alpha.Property) resource_) - .mergeFrom(value) - .buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 2) { - propertyBuilder_.mergeFrom(value); - } - propertyBuilder_.setMessage(value); - } - resourceCase_ = 2; - return this; - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder clearProperty() { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 2) { - resourceCase_ = 0; - resource_ = null; - } - propertyBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { - return getPropertyFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1alpha.Property) resource_; - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - } - /** - * - * - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, - com.google.analytics.admin.v1alpha.Property.Builder, - com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - if (!(resourceCase_ == 2)) { - resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - propertyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, - com.google.analytics.admin.v1alpha.Property.Builder, - com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - (com.google.analytics.admin.v1alpha.Property) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 2; - onChanged(); - ; - return propertyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - webDataStreamBuilder_; - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * - * @return Whether the webDataStream field is set. - */ - @java.lang.Override - public boolean hasWebDataStream() { - return resourceCase_ == 3; - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - * - * @return The webDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { - if (webDataStreamBuilder_ == null) { - if (resourceCase_ == 3) { - return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } else { - if (resourceCase_ == 3) { - return webDataStreamBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - webDataStreamBuilder_.setMessage(value); - } - resourceCase_ = 3; - return this; - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - public Builder setWebDataStream( - com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { - if (webDataStreamBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - webDataStreamBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 3; - return this; - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamBuilder_ == null) { - if (resourceCase_ == 3 - && resource_ - != com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()) { - resource_ = - com.google.analytics.admin.v1alpha.WebDataStream.newBuilder( - (com.google.analytics.admin.v1alpha.WebDataStream) resource_) - .mergeFrom(value) - .buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 3) { - webDataStreamBuilder_.mergeFrom(value); - } - webDataStreamBuilder_.setMessage(value); - } - resourceCase_ = 3; - return this; - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - public Builder clearWebDataStream() { - if (webDataStreamBuilder_ == null) { - if (resourceCase_ == 3) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 3) { - resourceCase_ = 0; - resource_ = null; - } - webDataStreamBuilder_.clear(); - } - return this; - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { - return getWebDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { - if ((resourceCase_ == 3) && (webDataStreamBuilder_ != null)) { - return webDataStreamBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 3) { - return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } - } - /** - * - * - *
-       * A snapshot of a WebDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - getWebDataStreamFieldBuilder() { - if (webDataStreamBuilder_ == null) { - if (!(resourceCase_ == 3)) { - resource_ = com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } - webDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( - (com.google.analytics.admin.v1alpha.WebDataStream) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 3; - onChanged(); - ; - return webDataStreamBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - androidAppDataStreamBuilder_; - /** - * - * - *
-       * A snapshot of an AndroidAppDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - * - * @return Whether the androidAppDataStream field is set. - */ - @java.lang.Override - public boolean hasAndroidAppDataStream() { - return resourceCase_ == 4; - } - /** - * - * - *
-       * A snapshot of an AndroidAppDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - * - * @return The androidAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - if (resourceCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; - } - return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); - } else { - if (resourceCase_ == 4) { - return androidAppDataStreamBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); - } - } - /** - * - * - *
-       * A snapshot of an AndroidAppDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(value); - } - resourceCase_ = 4; - return this; - } - /** - * - * - *
-       * A snapshot of an AndroidAppDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 4; - return this; - } - /** - * - * - *
-       * A snapshot of an AndroidAppDataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * - */ - public Builder mergeAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (resourceCase_ == 4 - && resource_ - != com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()) { - resource_ = - com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( - (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) + com.google.analytics.admin.v1alpha.Account.newBuilder( + (com.google.analytics.admin.v1alpha.Account) resource_) .mergeFrom(value) .buildPartial(); } else { @@ -3530,37 +2612,36 @@ public Builder mergeAndroidAppDataStream( } onChanged(); } else { - if (resourceCase_ == 4) { - androidAppDataStreamBuilder_.mergeFrom(value); + if (resourceCase_ == 1) { + accountBuilder_.mergeFrom(value); } - androidAppDataStreamBuilder_.setMessage(value); + accountBuilder_.setMessage(value); } - resourceCase_ = 4; + resourceCase_ = 1; return this; } /** * * *
-       * A snapshot of an AndroidAppDataStream resource in change history.
+       * A snapshot of an Account resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * + * .google.analytics.admin.v1alpha.Account account = 1; */ - public Builder clearAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - if (resourceCase_ == 4) { + public Builder clearAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { resourceCase_ = 0; resource_ = null; onChanged(); } } else { - if (resourceCase_ == 4) { + if (resourceCase_ == 1) { resourceCase_ = 0; resource_ = null; } - androidAppDataStreamBuilder_.clear(); + accountBuilder_.clear(); } return this; } @@ -3568,180 +2649,171 @@ public Builder clearAndroidAppDataStream() { * * *
-       * A snapshot of an AndroidAppDataStream resource in change history.
+       * A snapshot of an Account resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * + * .google.analytics.admin.v1alpha.Account account = 1; */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - getAndroidAppDataStreamBuilder() { - return getAndroidAppDataStreamFieldBuilder().getBuilder(); + public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { + return getAccountFieldBuilder().getBuilder(); } /** * * *
-       * A snapshot of an AndroidAppDataStream resource in change history.
+       * A snapshot of an Account resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * + * .google.analytics.admin.v1alpha.Account account = 1; */ @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - if ((resourceCase_ == 4) && (androidAppDataStreamBuilder_ != null)) { - return androidAppDataStreamBuilder_.getMessageOrBuilder(); + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if ((resourceCase_ == 1) && (accountBuilder_ != null)) { + return accountBuilder_.getMessageOrBuilder(); } else { - if (resourceCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; } - return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); } } /** * * *
-       * A snapshot of an AndroidAppDataStream resource in change history.
+       * A snapshot of an Account resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; - * + * .google.analytics.admin.v1alpha.Account account = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - getAndroidAppDataStreamFieldBuilder() { - if (androidAppDataStreamBuilder_ == null) { - if (!(resourceCase_ == 4)) { - resource_ = - com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + if (!(resourceCase_ == 1)) { + resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); } - androidAppDataStreamBuilder_ = + accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( - (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_, + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + (com.google.analytics.admin.v1alpha.Account) resource_, getParentForChildren(), isClean()); resource_ = null; } - resourceCase_ = 4; + resourceCase_ = 1; onChanged(); ; - return androidAppDataStreamBuilder_; + return accountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - iosAppDataStreamBuilder_; + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertyBuilder_; /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; * - * @return Whether the iosAppDataStream field is set. + * @return Whether the property field is set. */ @java.lang.Override - public boolean hasIosAppDataStream() { - return resourceCase_ == 5; + public boolean hasProperty() { + return resourceCase_ == 2; } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; * - * @return The iosAppDataStream. + * @return The property. */ @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - if (resourceCase_ == 5) { - return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; } - return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); } else { - if (resourceCase_ == 5) { - return iosAppDataStreamBuilder_.getMessage(); + if (resourceCase_ == 2) { + return propertyBuilder_.getMessage(); } - return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); } } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ - public Builder setIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { + public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resource_ = value; onChanged(); } else { - iosAppDataStreamBuilder_.setMessage(value); + propertyBuilder_.setMessage(value); } - resourceCase_ = 5; + resourceCase_ = 2; return this; } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ - public Builder setIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamBuilder_ == null) { + public Builder setProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); } else { - iosAppDataStreamBuilder_.setMessage(builderForValue.build()); + propertyBuilder_.setMessage(builderForValue.build()); } - resourceCase_ = 5; + resourceCase_ = 2; return this; } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ - public Builder mergeIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (resourceCase_ == 5 - && resource_ - != com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()) { + public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2 + && resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { resource_ = - com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder( - (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_) + com.google.analytics.admin.v1alpha.Property.newBuilder( + (com.google.analytics.admin.v1alpha.Property) resource_) .mergeFrom(value) .buildPartial(); } else { @@ -3749,36 +2821,36 @@ public Builder mergeIosAppDataStream( } onChanged(); } else { - if (resourceCase_ == 5) { - iosAppDataStreamBuilder_.mergeFrom(value); + if (resourceCase_ == 2) { + propertyBuilder_.mergeFrom(value); } - iosAppDataStreamBuilder_.setMessage(value); + propertyBuilder_.setMessage(value); } - resourceCase_ = 5; + resourceCase_ = 2; return this; } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ - public Builder clearIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - if (resourceCase_ == 5) { + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { resourceCase_ = 0; resource_ = null; onChanged(); } } else { - if (resourceCase_ == 5) { + if (resourceCase_ == 2) { resourceCase_ = 0; resource_ = null; } - iosAppDataStreamBuilder_.clear(); + propertyBuilder_.clear(); } return this; } @@ -3786,68 +2858,66 @@ public Builder clearIosAppDataStream() { * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder - getIosAppDataStreamBuilder() { - return getIosAppDataStreamFieldBuilder().getBuilder(); + public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { + return getPropertyFieldBuilder().getBuilder(); } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - if ((resourceCase_ == 5) && (iosAppDataStreamBuilder_ != null)) { - return iosAppDataStreamBuilder_.getMessageOrBuilder(); + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); } else { - if (resourceCase_ == 5) { - return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; } - return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); } } /** * * *
-       * A snapshot of an IosAppDataStream resource in change history.
+       * A snapshot of a Property resource in change history.
        * 
* - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * .google.analytics.admin.v1alpha.Property property = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - getIosAppDataStreamFieldBuilder() { - if (iosAppDataStreamBuilder_ == null) { - if (!(resourceCase_ == 5)) { - resource_ = com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); - } - iosAppDataStreamBuilder_ = + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(resourceCase_ == 2)) { + resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( - (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_, + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + (com.google.analytics.admin.v1alpha.Property) resource_, getParentForChildren(), isClean()); resource_ = null; } - resourceCase_ = 5; + resourceCase_ = 2; onChanged(); ; - return iosAppDataStreamBuilder_; + return propertyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -6095,6 +5165,215 @@ public Builder clearDataRetentionSettings() { return dataRetentionSettingsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return resourceCase_ == 18; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 18) { + return dataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataStreamBuilder_.setMessage(value); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder setDataStream( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18 + && resource_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DataStream.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 18) { + dataStreamBuilder_.mergeFrom(value); + } + dataStreamBuilder_.setMessage(value); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder clearDataStream() { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 18) { + resourceCase_ = 0; + resource_ = null; + } + dataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if ((resourceCase_ == 18) && (dataStreamBuilder_ != null)) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + if (!(resourceCase_ == 18)) { + resource_ = com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 18; + onChanged(); + ; + return dataStreamBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index 6e192a50..f65864f0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -58,36 +58,6 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * PROPERTY = 2; */ PROPERTY(2), - /** - * - * - *
-   * WebDataStream resource
-   * 
- * - * WEB_DATA_STREAM = 3; - */ - WEB_DATA_STREAM(3), - /** - * - * - *
-   * AndroidAppDataStream resource
-   * 
- * - * ANDROID_APP_DATA_STREAM = 4; - */ - ANDROID_APP_DATA_STREAM(4), - /** - * - * - *
-   * IosAppDataStream resource
-   * 
- * - * IOS_APP_DATA_STREAM = 5; - */ - IOS_APP_DATA_STREAM(5), /** * * @@ -188,6 +158,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; */ DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), + /** + * + * + *
+   * DataStream resource
+   * 
+ * + * DATA_STREAM = 18; + */ + DATA_STREAM(18), UNRECOGNIZED(-1), ; @@ -221,36 +201,6 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * PROPERTY = 2; */ public static final int PROPERTY_VALUE = 2; - /** - * - * - *
-   * WebDataStream resource
-   * 
- * - * WEB_DATA_STREAM = 3; - */ - public static final int WEB_DATA_STREAM_VALUE = 3; - /** - * - * - *
-   * AndroidAppDataStream resource
-   * 
- * - * ANDROID_APP_DATA_STREAM = 4; - */ - public static final int ANDROID_APP_DATA_STREAM_VALUE = 4; - /** - * - * - *
-   * IosAppDataStream resource
-   * 
- * - * IOS_APP_DATA_STREAM = 5; - */ - public static final int IOS_APP_DATA_STREAM_VALUE = 5; /** * * @@ -351,6 +301,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; */ public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; + /** + * + * + *
+   * DataStream resource
+   * 
+ * + * DATA_STREAM = 18; + */ + public static final int DATA_STREAM_VALUE = 18; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -382,12 +342,6 @@ public static ChangeHistoryResourceType forNumber(int value) { return ACCOUNT; case 2: return PROPERTY; - case 3: - return WEB_DATA_STREAM; - case 4: - return ANDROID_APP_DATA_STREAM; - case 5: - return IOS_APP_DATA_STREAM; case 6: return FIREBASE_LINK; case 7: @@ -408,6 +362,8 @@ public static ChangeHistoryResourceType forNumber(int value) { return DISPLAY_VIDEO_360_ADVERTISER_LINK; case 15: return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; + case 18: + return DATA_STREAM; default: return null; } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java index cce3fcdf..dff9edc0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java @@ -139,9 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent resource where this secret will be created.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
-   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * Format: properties/{property}/dataStreams/{dataStream}
    * 
* * @@ -167,9 +165,7 @@ public java.lang.String getParent() { * *
    * Required. The parent resource where this secret will be created.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
-   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * Format: properties/{property}/dataStreams/{dataStream}
    * 
* * @@ -617,9 +613,7 @@ public Builder mergeFrom( * *
      * Required. The parent resource where this secret will be created.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
-     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * Format: properties/{property}/dataStreams/{dataStream}
      * 
* * @@ -644,9 +638,7 @@ public java.lang.String getParent() { * *
      * Required. The parent resource where this secret will be created.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
-     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * Format: properties/{property}/dataStreams/{dataStream}
      * 
* * @@ -671,9 +663,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent resource where this secret will be created.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
-     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * Format: properties/{property}/dataStreams/{dataStream}
      * 
* * @@ -697,9 +687,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent resource where this secret will be created.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
-     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * Format: properties/{property}/dataStreams/{dataStream}
      * 
* * @@ -719,9 +707,7 @@ public Builder clearParent() { * *
      * Required. The parent resource where this secret will be created.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
-     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * Format: properties/{property}/dataStreams/{dataStream}
      * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java index 4bcf46fd..eccfaa34 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java @@ -28,9 +28,7 @@ public interface CreateMeasurementProtocolSecretRequestOrBuilder * *
    * Required. The parent resource where this secret will be created.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
-   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * Format: properties/{property}/dataStreams/{dataStream}
    * 
* * @@ -45,9 +43,7 @@ public interface CreateMeasurementProtocolSecretRequestOrBuilder * *
    * Required. The parent resource where this secret will be created.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
-   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * Format: properties/{property}/dataStreams/{dataStream}
    * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java deleted file mode 100644 index a27dd19d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java +++ /dev/null @@ -1,964 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for CreateWebDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateWebDataStreamRequest} - */ -public final class CreateWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) - CreateWebDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateWebDataStreamRequest.newBuilder() to construct. - private CreateWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateWebDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateWebDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateWebDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; - if (webDataStream_ != null) { - subBuilder = webDataStream_.toBuilder(); - } - webDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.WebDataStream.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDataStream_); - webDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.Builder.class); - } - - public static final int WEB_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; - /** - * - * - *
-   * Required. The web stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the webDataStream field is set. - */ - @java.lang.Override - public boolean hasWebDataStream() { - return webDataStream_ != null; - } - /** - * - * - *
-   * Required. The web stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The webDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { - return webDataStream_ == null - ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() - : webDataStream_; - } - /** - * - * - *
-   * Required. The web stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { - return getWebDataStream(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource where this web data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource where this web data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (webDataStream_ != null) { - output.writeMessage(1, getWebDataStream()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (webDataStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWebDataStream()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest other = - (com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) obj; - - if (hasWebDataStream() != other.hasWebDataStream()) return false; - if (hasWebDataStream()) { - if (!getWebDataStream().equals(other.getWebDataStream())) return false; - } - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWebDataStream()) { - hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getWebDataStream().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest 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.CreateWebDataStreamRequest 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 CreateWebDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateWebDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (webDataStreamBuilder_ == null) { - webDataStream_ = null; - } else { - webDataStream_ = null; - webDataStreamBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateWebDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest result = - new com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(this); - if (webDataStreamBuilder_ == null) { - result.webDataStream_ = webDataStream_; - } else { - result.webDataStream_ = webDataStreamBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest.getDefaultInstance()) - return this; - if (other.hasWebDataStream()) { - mergeWebDataStream(other.getWebDataStream()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - webDataStreamBuilder_; - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the webDataStream field is set. - */ - public boolean hasWebDataStream() { - return webDataStreamBuilder_ != null || webDataStream_ != null; - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The webDataStream. - */ - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { - if (webDataStreamBuilder_ == null) { - return webDataStream_ == null - ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() - : webDataStream_; - } else { - return webDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - webDataStream_ = value; - onChanged(); - } else { - webDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWebDataStream( - com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { - if (webDataStreamBuilder_ == null) { - webDataStream_ = builderForValue.build(); - onChanged(); - } else { - webDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamBuilder_ == null) { - if (webDataStream_ != null) { - webDataStream_ = - com.google.analytics.admin.v1alpha.WebDataStream.newBuilder(webDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - webDataStream_ = value; - } - onChanged(); - } else { - webDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearWebDataStream() { - if (webDataStreamBuilder_ == null) { - webDataStream_ = null; - onChanged(); - } else { - webDataStream_ = null; - webDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { - - onChanged(); - return getWebDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { - if (webDataStreamBuilder_ != null) { - return webDataStreamBuilder_.getMessageOrBuilder(); - } else { - return webDataStream_ == null - ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() - : webDataStream_; - } - } - /** - * - * - *
-     * Required. The web stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - getWebDataStreamFieldBuilder() { - if (webDataStreamBuilder_ == null) { - webDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( - getWebDataStream(), getParentForChildren(), isClean()); - webDataStream_ = null; - } - return webDataStreamBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource where this web data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this web data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this web data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this web data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this web data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWebDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateWebDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java deleted file mode 100644 index c1f26635..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateWebDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateWebDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The web stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the webDataStream field is set. - */ - boolean hasWebDataStream(); - /** - * - * - *
-   * Required. The web stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The webDataStream. - */ - com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); - /** - * - * - *
-   * Required. The web stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The parent resource where this web data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource where this web data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java index 5d1e4a9d..1e63339e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -44,6 +44,7 @@ private CustomMetric() { description_ = ""; measurementUnit_ = 0; scope_ = 0; + restrictedMetricType_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -65,6 +66,7 @@ private CustomMetric( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +119,31 @@ private CustomMetric( scope_ = rawValue; break; } + case 64: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedMetricType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restrictedMetricType_.add(rawValue); + break; + } + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedMetricType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restrictedMetricType_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -131,6 +158,9 @@ private CustomMetric( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -623,6 +653,167 @@ private MetricScope(int value) { // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MetricScope) } + /** + * + * + *
+   * Labels that mark the data in this custom metric as data that should be
+   * restricted to specific users.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType} + */ + public enum RestrictedMetricType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type unknown or unspecified.
+     * 
+ * + * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + RESTRICTED_METRIC_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric reports cost data.
+     * 
+ * + * COST_DATA = 1; + */ + COST_DATA(1), + /** + * + * + *
+     * Metric reports revenue data.
+     * 
+ * + * REVENUE_DATA = 2; + */ + REVENUE_DATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Type unknown or unspecified.
+     * 
+ * + * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + public static final int RESTRICTED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric reports cost data.
+     * 
+ * + * COST_DATA = 1; + */ + public static final int COST_DATA_VALUE = 1; + /** + * + * + *
+     * Metric reports revenue data.
+     * 
+ * + * REVENUE_DATA = 2; + */ + public static final int REVENUE_DATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RestrictedMetricType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RestrictedMetricType forNumber(int value) { + switch (value) { + case 0: + return RESTRICTED_METRIC_TYPE_UNSPECIFIED; + case 1: + return COST_DATA; + case 2: + return REVENUE_DATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RestrictedMetricType findValueByNumber(int number) { + return RestrictedMetricType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(2); + } + + private static final RestrictedMetricType[] VALUES = values(); + + public static RestrictedMetricType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RestrictedMetricType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType) + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -927,6 +1118,130 @@ public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { : result; } + public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; + private java.util.List restrictedMetricType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType> + restrictedMetricType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>() { + public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType result = + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType.valueOf( + from); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + .UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + @java.lang.Override + public java.util.List + getRestrictedMetricTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>( + restrictedMetricType_, restrictedMetricType_converter_); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + @java.lang.Override + public int getRestrictedMetricTypeCount() { + return restrictedMetricType_.size(); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + getRestrictedMetricType(int index) { + return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + @java.lang.Override + public java.util.List getRestrictedMetricTypeValueList() { + return restrictedMetricType_; + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + @java.lang.Override + public int getRestrictedMetricTypeValue(int index) { + return restrictedMetricType_.get(index); + } + + private int restrictedMetricTypeMemoizedSerializedSize; + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -941,6 +1256,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -964,6 +1280,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(6, scope_); } + if (getRestrictedMetricTypeList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(restrictedMetricTypeMemoizedSerializedSize); + } + for (int i = 0; i < restrictedMetricType_.size(); i++) { + output.writeEnumNoTag(restrictedMetricType_.get(i)); + } unknownFields.writeTo(output); } @@ -996,6 +1319,20 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); } + { + int dataSize = 0; + for (int i = 0; i < restrictedMetricType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + restrictedMetricType_.get(i)); + } + size += dataSize; + if (!getRestrictedMetricTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + restrictedMetricTypeMemoizedSerializedSize = dataSize; + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1018,6 +1355,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (measurementUnit_ != other.measurementUnit_) return false; if (scope_ != other.scope_) return false; + if (!restrictedMetricType_.equals(other.restrictedMetricType_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1041,6 +1379,10 @@ public int hashCode() { hash = (53 * hash) + measurementUnit_; hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + scope_; + if (getRestrictedMetricTypeCount() > 0) { + hash = (37 * hash) + RESTRICTED_METRIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + restrictedMetricType_.hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1198,6 +1540,8 @@ public Builder clear() { scope_ = 0; + restrictedMetricType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -1225,12 +1569,18 @@ public com.google.analytics.admin.v1alpha.CustomMetric build() { public com.google.analytics.admin.v1alpha.CustomMetric buildPartial() { com.google.analytics.admin.v1alpha.CustomMetric result = new com.google.analytics.admin.v1alpha.CustomMetric(this); + int from_bitField0_ = bitField0_; result.name_ = name_; result.parameterName_ = parameterName_; result.displayName_ = displayName_; result.description_ = description_; result.measurementUnit_ = measurementUnit_; result.scope_ = scope_; + if (((bitField0_ & 0x00000001) != 0)) { + restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.restrictedMetricType_ = restrictedMetricType_; onBuilt(); return result; } @@ -1303,6 +1653,16 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomMetric other) if (other.scope_ != 0) { setScopeValue(other.getScopeValue()); } + if (!other.restrictedMetricType_.isEmpty()) { + if (restrictedMetricType_.isEmpty()) { + restrictedMetricType_ = other.restrictedMetricType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.addAll(other.restrictedMetricType_); + } + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1332,6 +1692,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2023,6 +2385,282 @@ public Builder clearScope() { return this; } + private java.util.List restrictedMetricType_ = + java.util.Collections.emptyList(); + + private void ensureRestrictedMetricTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + public java.util.List + getRestrictedMetricTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>( + restrictedMetricType_, restrictedMetricType_converter_); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + public int getRestrictedMetricTypeCount() { + return restrictedMetricType_.size(); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + getRestrictedMetricType(int index) { + return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The restrictedMetricType to set. + * @return This builder for chaining. + */ + public Builder setRestrictedMetricType( + int index, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addRestrictedMetricType( + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedMetricType( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType> + values) { + ensureRestrictedMetricTypeIsMutable(); + for (com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value : values) { + restrictedMetricType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRestrictedMetricType() { + restrictedMetricType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + public java.util.List getRestrictedMetricTypeValueList() { + return java.util.Collections.unmodifiableList(restrictedMetricType_); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + public int getRestrictedMetricTypeValue(int index) { + return restrictedMetricType_.get(index); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + * @return This builder for chaining. + */ + public Builder setRestrictedMetricTypeValue(int index, int value) { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addRestrictedMetricTypeValue(int value) { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required for metrics
+     * with CURRENCY measurement unit. Must be empty for metrics with a
+     * non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedMetricTypeValue(java.lang.Iterable values) { + ensureRestrictedMetricTypeIsMutable(); + for (int value : values) { + restrictedMetricType_.add(value); + } + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java index d0a48396..f124a476 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -204,4 +204,89 @@ public interface CustomMetricOrBuilder * @return The scope. */ com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope(); + + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + java.util.List + getRestrictedMetricTypeList(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + int getRestrictedMetricTypeCount(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType getRestrictedMetricType( + int index); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + java.util.List getRestrictedMetricTypeValueList(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required for metrics
+   * with CURRENCY measurement unit. Must be empty for metrics with a
+   * non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + int getRestrictedMetricTypeValue(int index); } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java deleted file mode 100644 index 694def81..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java +++ /dev/null @@ -1,677 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for DeleteAndroidAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} - */ -public final class DeleteAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) - DeleteAndroidAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteAndroidAppDataStreamRequest.newBuilder() to construct. - private DeleteAndroidAppDataStreamRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteAndroidAppDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteAndroidAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteAndroidAppDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the android app data stream to delete.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the android app data stream to delete.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest 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.DeleteAndroidAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest 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.DeleteAndroidAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest 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.DeleteAndroidAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest 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.DeleteAndroidAppDataStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - 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.DeleteAndroidAppDataStreamRequest 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.DeleteAndroidAppDataStreamRequest 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.DeleteAndroidAppDataStreamRequest 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 DeleteAndroidAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the android app data stream to delete.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the android app data stream to delete.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the android app data stream to delete.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the android app data stream to delete.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the android app data stream to delete.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAndroidAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAndroidAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java deleted file mode 100644 index 7d15f80c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteAndroidAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the android app data stream to delete.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the android app data stream to delete.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java deleted file mode 100644 index 6e970781..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java +++ /dev/null @@ -1,672 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for DeleteIosAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} - */ -public final class DeleteIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) - DeleteIosAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteIosAppDataStreamRequest.newBuilder() to construct. - private DeleteIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteIosAppDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteIosAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteIosAppDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the iOS app data stream to delete.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the iOS app data stream to delete.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest 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.DeleteIosAppDataStreamRequest 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 DeleteIosAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the iOS app data stream to delete.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to delete.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to delete.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to delete.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to delete.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteIosAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteIosAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java deleted file mode 100644 index 7a15026b..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteIosAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the iOS app data stream to delete.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the iOS app data stream to delete.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java index 4068c918..8e11d1e4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java @@ -122,9 +122,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The name of the MeasurementProtocolSecret to delete.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * @@ -151,9 +149,7 @@ public java.lang.String getName() { *
    * Required. The name of the MeasurementProtocolSecret to delete.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * @@ -515,9 +511,7 @@ public Builder mergeFrom( *
      * Required. The name of the MeasurementProtocolSecret to delete.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -543,9 +537,7 @@ public java.lang.String getName() { *
      * Required. The name of the MeasurementProtocolSecret to delete.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -571,9 +563,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The name of the MeasurementProtocolSecret to delete.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -598,9 +588,7 @@ public Builder setName(java.lang.String value) { *
      * Required. The name of the MeasurementProtocolSecret to delete.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -621,9 +609,7 @@ public Builder clearName() { *
      * Required. The name of the MeasurementProtocolSecret to delete.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java index 6c426fb7..eaf860fd 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java @@ -29,9 +29,7 @@ public interface DeleteMeasurementProtocolSecretRequestOrBuilder *
    * Required. The name of the MeasurementProtocolSecret to delete.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * @@ -47,9 +45,7 @@ public interface DeleteMeasurementProtocolSecretRequestOrBuilder *
    * Required. The name of the MeasurementProtocolSecret to delete.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java deleted file mode 100644 index 674dea5f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java +++ /dev/null @@ -1,669 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for DeleteWebDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} - */ -public final class DeleteWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) - DeleteWebDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteWebDataStreamRequest.newBuilder() to construct. - private DeleteWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteWebDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteWebDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteWebDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the web data stream to delete.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the web data stream to delete.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest other = - (com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest 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.DeleteWebDataStreamRequest 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 DeleteWebDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteWebDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteWebDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest build() { - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest result = - new com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the web data stream to delete.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the web data stream to delete.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the web data stream to delete.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the web data stream to delete.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the web data stream to delete.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWebDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteWebDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java deleted file mode 100644 index ba9b0585..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteWebDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteWebDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the web data stream to delete.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the web data stream to delete.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java deleted file mode 100644 index ec3f61f0..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java +++ /dev/null @@ -1,675 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for GetAndroidAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} - */ -public final class GetAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) - GetAndroidAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAndroidAppDataStreamRequest.newBuilder() to construct. - private GetAndroidAppDataStreamRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetAndroidAppDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetAndroidAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetAndroidAppDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the android app data stream to lookup.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the android app data stream to lookup.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest 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.GetAndroidAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest 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.GetAndroidAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest 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.GetAndroidAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest 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.GetAndroidAppDataStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - 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.GetAndroidAppDataStreamRequest 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.GetAndroidAppDataStreamRequest 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.GetAndroidAppDataStreamRequest 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 GetAndroidAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the android app data stream to lookup.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the android app data stream to lookup.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the android app data stream to lookup.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the android app data stream to lookup.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the android app data stream to lookup.
-     * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-     * Example: "properties/123/androidAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAndroidAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAndroidAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java deleted file mode 100644 index b9239067..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetAndroidAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the android app data stream to lookup.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the android app data stream to lookup.
-   * Format: properties/{property_id}/androidAppDataStreams/{stream_id}
-   * Example: "properties/123/androidAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java index 2fe37571..657b0987 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java @@ -119,8 +119,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The name of the site tag to lookup.
    * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/webDataStreams/456/globalSiteTag"
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * @@ -147,8 +147,8 @@ public java.lang.String getName() { *
    * Required. The name of the site tag to lookup.
    * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/webDataStreams/456/globalSiteTag"
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * @@ -496,8 +496,8 @@ public Builder mergeFrom( *
      * Required. The name of the site tag to lookup.
      * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/webDataStreams/456/globalSiteTag"
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * @@ -523,8 +523,8 @@ public java.lang.String getName() { *
      * Required. The name of the site tag to lookup.
      * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/webDataStreams/456/globalSiteTag"
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * @@ -550,8 +550,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The name of the site tag to lookup.
      * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/webDataStreams/456/globalSiteTag"
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * @@ -576,8 +576,8 @@ public Builder setName(java.lang.String value) { *
      * Required. The name of the site tag to lookup.
      * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/webDataStreams/456/globalSiteTag"
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * @@ -598,8 +598,8 @@ public Builder clearName() { *
      * Required. The name of the site tag to lookup.
      * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/webDataStreams/456/globalSiteTag"
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java index 1b6b0450..7cffb6b4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface GetGlobalSiteTagRequestOrBuilder *
    * Required. The name of the site tag to lookup.
    * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/webDataStreams/456/globalSiteTag"
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * @@ -46,8 +46,8 @@ public interface GetGlobalSiteTagRequestOrBuilder *
    * Required. The name of the site tag to lookup.
    * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/webDataStreams/456/globalSiteTag"
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java deleted file mode 100644 index e9faf3d4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java +++ /dev/null @@ -1,669 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for GetIosAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} - */ -public final class GetIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) - GetIosAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetIosAppDataStreamRequest.newBuilder() to construct. - private GetIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetIosAppDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetIosAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetIosAppDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the iOS app data stream to lookup.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the iOS app data stream to lookup.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest 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.GetIosAppDataStreamRequest 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 GetIosAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetIosAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the iOS app data stream to lookup.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to lookup.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to lookup.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to lookup.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the iOS app data stream to lookup.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/123/iosAppDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetIosAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetIosAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java deleted file mode 100644 index c46888b1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetIosAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetIosAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the iOS app data stream to lookup.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the iOS app data stream to lookup.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/123/iosAppDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java index 8e653310..ef1e7fe4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java @@ -121,9 +121,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The name of the measurement protocol secret to lookup.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * @@ -150,9 +148,7 @@ public java.lang.String getName() { *
    * Required. The name of the measurement protocol secret to lookup.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * @@ -509,9 +505,7 @@ public Builder mergeFrom( *
      * Required. The name of the measurement protocol secret to lookup.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -537,9 +531,7 @@ public java.lang.String getName() { *
      * Required. The name of the measurement protocol secret to lookup.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -565,9 +557,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The name of the measurement protocol secret to lookup.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -592,9 +582,7 @@ public Builder setName(java.lang.String value) { *
      * Required. The name of the measurement protocol secret to lookup.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * @@ -615,9 +603,7 @@ public Builder clearName() { *
      * Required. The name of the measurement protocol secret to lookup.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * Note: Any type of stream (WebDataStream, IosAppDataStream,
-     * AndroidAppDataStream) may be a parent.
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java index 13d7baa5..e68f0266 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java @@ -29,9 +29,7 @@ public interface GetMeasurementProtocolSecretRequestOrBuilder *
    * Required. The name of the measurement protocol secret to lookup.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * @@ -47,9 +45,7 @@ public interface GetMeasurementProtocolSecretRequestOrBuilder *
    * Required. The name of the measurement protocol secret to lookup.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * Note: Any type of stream (WebDataStream, IosAppDataStream,
-   * AndroidAppDataStream) may be a parent.
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java deleted file mode 100644 index dde7242d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java +++ /dev/null @@ -1,665 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for GetWebDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetWebDataStreamRequest} - */ -public final class GetWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetWebDataStreamRequest) - GetWebDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetWebDataStreamRequest.newBuilder() to construct. - private GetWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetWebDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetWebDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetWebDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The name of the web data stream to lookup.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the web data stream to lookup.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.GetWebDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest other = - (com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest 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.GetWebDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest 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.GetWebDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest 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.GetWebDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest 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.GetWebDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest 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.GetWebDataStreamRequest 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.GetWebDataStreamRequest 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.GetWebDataStreamRequest 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 GetWebDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetWebDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetWebDataStreamRequest) - com.google.analytics.admin.v1alpha.GetWebDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetWebDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest build() { - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest result = - new com.google.analytics.admin.v1alpha.GetWebDataStreamRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetWebDataStreamRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.GetWebDataStreamRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The name of the web data stream to lookup.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the web data stream to lookup.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the web data stream to lookup.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the web data stream to lookup.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the web data stream to lookup.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/123/webDataStreams/456"
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetWebDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetWebDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.GetWebDataStreamRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetWebDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetWebDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWebDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetWebDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetWebDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java deleted file mode 100644 index 8b9ab86d..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetWebDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetWebDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the web data stream to lookup.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the web data stream to lookup.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/123/webDataStreams/456"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java index 0d1b6edf..cb6f7aa8 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java @@ -23,7 +23,7 @@ * *
  * Read-only resource with the tag for sending data from a website to a
- * WebDataStream.
+ * DataStream. Only present for web DataStream resources.
  * 
* * Protobuf type {@code google.analytics.admin.v1alpha.GlobalSiteTag} @@ -127,7 +127,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{propertyId}/globalSiteTag
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -151,7 +152,8 @@ public java.lang.String getName() { * *
    * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{propertyId}/globalSiteTag
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -395,7 +397,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Read-only resource with the tag for sending data from a website to a
-   * WebDataStream.
+   * DataStream. Only present for web DataStream resources.
    * 
* * Protobuf type {@code google.analytics.admin.v1alpha.GlobalSiteTag} @@ -562,7 +564,8 @@ public Builder mergeFrom( * *
      * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{propertyId}/globalSiteTag
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -585,7 +588,8 @@ public java.lang.String getName() { * *
      * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{propertyId}/globalSiteTag
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -608,7 +612,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{propertyId}/globalSiteTag
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -630,7 +635,8 @@ public Builder setName(java.lang.String value) { * *
      * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{propertyId}/globalSiteTag
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -648,7 +654,8 @@ public Builder clearName() { * *
      * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{propertyId}/globalSiteTag
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java index ecb906f9..ee77319e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java @@ -29,24 +29,32 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") public class GlobalSiteTagName implements ResourceName { - private static final PathTemplate PROPERTY = - PathTemplate.createWithoutUrlEncoding("properties/{property}/globalSiteTag"); + private static final PathTemplate PROPERTY_DATA_STREAM = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/dataStreams/{data_stream}/globalSiteTag"); private volatile Map fieldValuesMap; private final String property; + private final String dataStream; @Deprecated protected GlobalSiteTagName() { property = null; + dataStream = null; } private GlobalSiteTagName(Builder builder) { property = Preconditions.checkNotNull(builder.getProperty()); + dataStream = Preconditions.checkNotNull(builder.getDataStream()); } public String getProperty() { return property; } + public String getDataStream() { + return dataStream; + } + public static Builder newBuilder() { return new Builder(); } @@ -55,12 +63,12 @@ public Builder toBuilder() { return new Builder(this); } - public static GlobalSiteTagName of(String property) { - return newBuilder().setProperty(property).build(); + public static GlobalSiteTagName of(String property, String dataStream) { + return newBuilder().setProperty(property).setDataStream(dataStream).build(); } - public static String format(String property) { - return newBuilder().setProperty(property).build().toString(); + public static String format(String property, String dataStream) { + return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } public static GlobalSiteTagName parse(String formattedString) { @@ -68,9 +76,9 @@ public static GlobalSiteTagName parse(String formattedString) { return null; } Map matchMap = - PROPERTY.validatedMatch( + PROPERTY_DATA_STREAM.validatedMatch( formattedString, "GlobalSiteTagName.parse: formattedString not in valid format"); - return of(matchMap.get("property")); + return of(matchMap.get("property"), matchMap.get("data_stream")); } public static List parseList(List formattedStrings) { @@ -94,7 +102,7 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PROPERTY.matches(formattedString); + return PROPERTY_DATA_STREAM.matches(formattedString); } @Override @@ -106,6 +114,9 @@ public Map getFieldValuesMap() { if (property != null) { fieldMapBuilder.put("property", property); } + if (dataStream != null) { + fieldMapBuilder.put("data_stream", dataStream); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -119,7 +130,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROPERTY.instantiate("property", property); + return PROPERTY_DATA_STREAM.instantiate("property", property, "data_stream", dataStream); } @Override @@ -129,7 +140,8 @@ public boolean equals(Object o) { } if (o != null || getClass() == o.getClass()) { GlobalSiteTagName that = ((GlobalSiteTagName) o); - return Objects.equals(this.property, that.property); + return Objects.equals(this.property, that.property) + && Objects.equals(this.dataStream, that.dataStream); } return false; } @@ -139,12 +151,15 @@ public int hashCode() { int h = 1; h *= 1000003; h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(dataStream); return h; } - /** Builder for properties/{property}/globalSiteTag. */ + /** Builder for properties/{property}/dataStreams/{data_stream}/globalSiteTag. */ public static class Builder { private String property; + private String dataStream; protected Builder() {} @@ -152,13 +167,23 @@ public String getProperty() { return property; } + public String getDataStream() { + return dataStream; + } + public Builder setProperty(String property) { this.property = property; return this; } + public Builder setDataStream(String dataStream) { + this.dataStream = dataStream; + return this; + } + private Builder(GlobalSiteTagName globalSiteTagName) { this.property = globalSiteTagName.property; + this.dataStream = globalSiteTagName.dataStream; } public GlobalSiteTagName build() { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java index 4ec0bf9f..2bb623e0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java @@ -28,7 +28,8 @@ public interface GlobalSiteTagOrBuilder * *
    * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{propertyId}/globalSiteTag
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -41,7 +42,8 @@ public interface GlobalSiteTagOrBuilder * *
    * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{propertyId}/globalSiteTag
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java deleted file mode 100644 index 9196ced9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java +++ /dev/null @@ -1,1808 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A resource message representing a Google Analytics IOS app stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.IosAppDataStream} - */ -public final class IosAppDataStream extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.IosAppDataStream) - IosAppDataStreamOrBuilder { - private static final long serialVersionUID = 0L; - // Use IosAppDataStream.newBuilder() to construct. - private IosAppDataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IosAppDataStream() { - name_ = ""; - firebaseAppId_ = ""; - bundleId_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IosAppDataStream(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private IosAppDataStream( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - firebaseAppId_ = s; - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - bundleId_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.IosAppDataStream.class, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/1000/iosAppDataStreams/2000"
-   * 
- * - * 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 Data Stream.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/1000/iosAppDataStreams/2000"
-   * 
- * - * 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 FIREBASE_APP_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-   * Output only. ID of the corresponding iOS app in Firebase, if any.
-   * This ID can change if the iOS app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - 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(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. ID of the corresponding iOS app in Firebase, if any.
-   * This ID can change if the iOS app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int BUNDLE_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object bundleId_; - /** - * - * - *
-   * Required. Immutable. The Apple App Store Bundle ID for the app
-   * Example: "com.example.myiosapp"
-   * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - @java.lang.Override - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - 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(); - bundleId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Immutable. The Apple App Store Bundle ID for the app
-   * Example: "com.example.myiosapp"
-   * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bundleId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bundleId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.IosAppDataStream)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.IosAppDataStream other = - (com.google.analytics.admin.v1alpha.IosAppDataStream) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getBundleId().equals(other.getBundleId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getBundleId().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream 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.IosAppDataStream parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream 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.IosAppDataStream parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream 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.IosAppDataStream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream 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.IosAppDataStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream 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.IosAppDataStream 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.IosAppDataStream 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.IosAppDataStream prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource message representing a Google Analytics IOS app stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.IosAppDataStream} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.IosAppDataStream) - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.IosAppDataStream.class, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - firebaseAppId_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - bundleId_ = ""; - - displayName_ = ""; - - 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_IosAppDataStream_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream build() { - com.google.analytics.admin.v1alpha.IosAppDataStream result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream buildPartial() { - com.google.analytics.admin.v1alpha.IosAppDataStream result = - new com.google.analytics.admin.v1alpha.IosAppDataStream(this); - result.name_ = name_; - result.firebaseAppId_ = firebaseAppId_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.bundleId_ = bundleId_; - result.displayName_ = displayName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.IosAppDataStream) { - return mergeFrom((com.google.analytics.admin.v1alpha.IosAppDataStream) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.IosAppDataStream other) { - if (other == com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getBundleId().isEmpty()) { - bundleId_ = other.bundleId_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.IosAppDataStream parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.IosAppDataStream) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/1000/iosAppDataStreams/2000"
-     * 
- * - * 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 Data Stream.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/1000/iosAppDataStreams/2000"
-     * 
- * - * 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 Data Stream.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/1000/iosAppDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/1000/iosAppDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-     * Example: "properties/1000/iosAppDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object bundleId_ = ""; - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - public com.google.protobuf.ByteString getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bundleId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearBundleId() { - - bundleId_ = getDefaultInstance().getBundleId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bundleId_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 6; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - @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.IosAppDataStream) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.IosAppDataStream) - private static final com.google.analytics.admin.v1alpha.IosAppDataStream DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.IosAppDataStream(); - } - - public static com.google.analytics.admin.v1alpha.IosAppDataStream getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IosAppDataStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IosAppDataStream(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java deleted file mode 100644 index 29a9271a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.admin.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class IosAppDataStreamName implements ResourceName { - private static final PathTemplate PROPERTY_IOS_APP_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/iosAppDataStreams/{ios_app_data_stream}"); - private volatile Map fieldValuesMap; - private final String property; - private final String iosAppDataStream; - - @Deprecated - protected IosAppDataStreamName() { - property = null; - iosAppDataStream = null; - } - - private IosAppDataStreamName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - iosAppDataStream = Preconditions.checkNotNull(builder.getIosAppDataStream()); - } - - public String getProperty() { - return property; - } - - public String getIosAppDataStream() { - return iosAppDataStream; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static IosAppDataStreamName of(String property, String iosAppDataStream) { - return newBuilder().setProperty(property).setIosAppDataStream(iosAppDataStream).build(); - } - - public static String format(String property, String iosAppDataStream) { - return newBuilder() - .setProperty(property) - .setIosAppDataStream(iosAppDataStream) - .build() - .toString(); - } - - public static IosAppDataStreamName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_IOS_APP_DATA_STREAM.validatedMatch( - formattedString, "IosAppDataStreamName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("ios_app_data_stream")); - } - - 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 (IosAppDataStreamName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_IOS_APP_DATA_STREAM.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 (iosAppDataStream != null) { - fieldMapBuilder.put("ios_app_data_stream", iosAppDataStream); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_IOS_APP_DATA_STREAM.instantiate( - "property", property, "ios_app_data_stream", iosAppDataStream); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - IosAppDataStreamName that = ((IosAppDataStreamName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.iosAppDataStream, that.iosAppDataStream); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(iosAppDataStream); - return h; - } - - /** Builder for properties/{property}/iosAppDataStreams/{ios_app_data_stream}. */ - public static class Builder { - private String property; - private String iosAppDataStream; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getIosAppDataStream() { - return iosAppDataStream; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setIosAppDataStream(String iosAppDataStream) { - this.iosAppDataStream = iosAppDataStream; - return this; - } - - private Builder(IosAppDataStreamName iosAppDataStreamName) { - this.property = iosAppDataStreamName.property; - this.iosAppDataStream = iosAppDataStreamName.iosAppDataStream; - } - - public IosAppDataStreamName build() { - return new IosAppDataStreamName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java deleted file mode 100644 index d30000c9..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamOrBuilder.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface IosAppDataStreamOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.IosAppDataStream) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/1000/iosAppDataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/iosAppDataStreams/{stream_id}
-   * Example: "properties/1000/iosAppDataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. ID of the corresponding iOS app in Firebase, if any.
-   * This ID can change if the iOS app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-   * Output only. ID of the corresponding iOS app in Firebase, if any.
-   * This ID can change if the iOS app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Required. Immutable. The Apple App Store Bundle ID for the app
-   * Example: "com.example.myiosapp"
-   * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bundleId. - */ - java.lang.String getBundleId(); - /** - * - * - *
-   * Required. Immutable. The Apple App Store Bundle ID for the app
-   * Example: "com.example.myiosapp"
-   * 
- * - * - * string bundle_id = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for bundleId. - */ - com.google.protobuf.ByteString getBundleIdBytes(); - - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 6; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java deleted file mode 100644 index 7a831f1a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java +++ /dev/null @@ -1,982 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListAndroidAppDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} - */ -public final class ListAndroidAppDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) - ListAndroidAppDataStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAndroidAppDataStreamsRequest.newBuilder() to construct. - private ListAndroidAppDataStreamsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAndroidAppDataStreamsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListAndroidAppDataStreamsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListAndroidAppDataStreamsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to limit results to app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to limit results to app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous call. Provide this to
-   * retrieve the subsequent page.
-   * When paginating, all other parameters provided to
-   * `ListAndroidAppDataStreams` 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 call. Provide this to
-   * retrieve the subsequent page.
-   * When paginating, all other parameters provided to
-   * `ListAndroidAppDataStreams` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest other = - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest 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.ListAndroidAppDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest 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.ListAndroidAppDataStreamsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest 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.ListAndroidAppDataStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest 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.ListAndroidAppDataStreamsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - 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.ListAndroidAppDataStreamsRequest 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.ListAndroidAppDataStreamsRequest 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.ListAndroidAppDataStreamsRequest 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 ListAndroidAppDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest build() { - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest result = - new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest other) { - if (other - == com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to limit results to app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to limit results to app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to limit results to app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to limit results to app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to limit results to app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous call. Provide this to
-     * retrieve the subsequent page.
-     * When paginating, all other parameters provided to
-     * `ListAndroidAppDataStreams` 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 call. Provide this to
-     * retrieve the subsequent page.
-     * When paginating, all other parameters provided to
-     * `ListAndroidAppDataStreams` 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 call. Provide this to
-     * retrieve the subsequent page.
-     * When paginating, all other parameters provided to
-     * `ListAndroidAppDataStreams` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous call. Provide this to
-     * retrieve the subsequent page.
-     * When paginating, all other parameters provided to
-     * `ListAndroidAppDataStreams` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous call. Provide this to
-     * retrieve the subsequent page.
-     * When paginating, all other parameters provided to
-     * `ListAndroidAppDataStreams` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) - private static final com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAndroidAppDataStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAndroidAppDataStreamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java deleted file mode 100644 index da279013..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAndroidAppDataStreamsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to limit results to app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to limit results to app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A page token, received from a previous call. Provide this to
-   * retrieve the subsequent page.
-   * When paginating, all other parameters provided to
-   * `ListAndroidAppDataStreams` 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 call. Provide this to
-   * retrieve the subsequent page.
-   * When paginating, all other parameters provided to
-   * `ListAndroidAppDataStreams` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java deleted file mode 100644 index 496fa13e..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java +++ /dev/null @@ -1,1223 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListAndroidDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} - */ -public final class ListAndroidAppDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) - ListAndroidAppDataStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAndroidAppDataStreamsResponse.newBuilder() to construct. - private ListAndroidAppDataStreamsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListAndroidAppDataStreamsResponse() { - androidAppDataStreams_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListAndroidAppDataStreamsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListAndroidAppDataStreamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - androidAppDataStreams_ = - new java.util.ArrayList< - com.google.analytics.admin.v1alpha.AndroidAppDataStream>(); - mutable_bitField0_ |= 0x00000001; - } - androidAppDataStreams_.add( - input.readMessage( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - androidAppDataStreams_ = java.util.Collections.unmodifiableList(androidAppDataStreams_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.Builder.class); - } - - public static final int ANDROID_APP_DATA_STREAMS_FIELD_NUMBER = 1; - private java.util.List - androidAppDataStreams_; - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - @java.lang.Override - public java.util.List - getAndroidAppDataStreamsList() { - return androidAppDataStreams_; - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - @java.lang.Override - public java.util.List - getAndroidAppDataStreamsOrBuilderList() { - return androidAppDataStreams_; - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - @java.lang.Override - public int getAndroidAppDataStreamsCount() { - return androidAppDataStreams_.size(); - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStreams( - int index) { - return androidAppDataStreams_.get(index); - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamsOrBuilder(int index) { - return androidAppDataStreams_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < androidAppDataStreams_.size(); i++) { - output.writeMessage(1, androidAppDataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < androidAppDataStreams_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, androidAppDataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse other = - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) obj; - - if (!getAndroidAppDataStreamsList().equals(other.getAndroidAppDataStreamsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAndroidAppDataStreamsCount() > 0) { - hash = (37 * hash) + ANDROID_APP_DATA_STREAMS_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppDataStreamsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse 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.ListAndroidAppDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse 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.ListAndroidAppDataStreamsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse 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.ListAndroidAppDataStreamsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse 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.ListAndroidAppDataStreamsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - 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.ListAndroidAppDataStreamsResponse 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.ListAndroidAppDataStreamsResponse 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.ListAndroidAppDataStreamsResponse 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 ListAndroidDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAndroidAppDataStreamsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (androidAppDataStreamsBuilder_ == null) { - androidAppDataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - androidAppDataStreamsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse build() { - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse result = - new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(this); - int from_bitField0_ = bitField0_; - if (androidAppDataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - androidAppDataStreams_ = java.util.Collections.unmodifiableList(androidAppDataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.androidAppDataStreams_ = androidAppDataStreams_; - } else { - result.androidAppDataStreams_ = androidAppDataStreamsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse other) { - if (other - == com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - .getDefaultInstance()) return this; - if (androidAppDataStreamsBuilder_ == null) { - if (!other.androidAppDataStreams_.isEmpty()) { - if (androidAppDataStreams_.isEmpty()) { - androidAppDataStreams_ = other.androidAppDataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.addAll(other.androidAppDataStreams_); - } - onChanged(); - } - } else { - if (!other.androidAppDataStreams_.isEmpty()) { - if (androidAppDataStreamsBuilder_.isEmpty()) { - androidAppDataStreamsBuilder_.dispose(); - androidAppDataStreamsBuilder_ = null; - androidAppDataStreams_ = other.androidAppDataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - androidAppDataStreamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAndroidAppDataStreamsFieldBuilder() - : null; - } else { - androidAppDataStreamsBuilder_.addAllMessages(other.androidAppDataStreams_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List - androidAppDataStreams_ = java.util.Collections.emptyList(); - - private void ensureAndroidAppDataStreamsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - androidAppDataStreams_ = - new java.util.ArrayList( - androidAppDataStreams_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - androidAppDataStreamsBuilder_; - - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public java.util.List - getAndroidAppDataStreamsList() { - if (androidAppDataStreamsBuilder_ == null) { - return java.util.Collections.unmodifiableList(androidAppDataStreams_); - } else { - return androidAppDataStreamsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public int getAndroidAppDataStreamsCount() { - if (androidAppDataStreamsBuilder_ == null) { - return androidAppDataStreams_.size(); - } else { - return androidAppDataStreamsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStreams( - int index) { - if (androidAppDataStreamsBuilder_ == null) { - return androidAppDataStreams_.get(index); - } else { - return androidAppDataStreamsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder setAndroidAppDataStreams( - int index, com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.set(index, value); - onChanged(); - } else { - androidAppDataStreamsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder setAndroidAppDataStreams( - int index, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamsBuilder_ == null) { - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.set(index, builderForValue.build()); - onChanged(); - } else { - androidAppDataStreamsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder addAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.add(value); - onChanged(); - } else { - androidAppDataStreamsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder addAndroidAppDataStreams( - int index, com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.add(index, value); - onChanged(); - } else { - androidAppDataStreamsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder addAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamsBuilder_ == null) { - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.add(builderForValue.build()); - onChanged(); - } else { - androidAppDataStreamsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder addAndroidAppDataStreams( - int index, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamsBuilder_ == null) { - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.add(index, builderForValue.build()); - onChanged(); - } else { - androidAppDataStreamsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder addAllAndroidAppDataStreams( - java.lang.Iterable - values) { - if (androidAppDataStreamsBuilder_ == null) { - ensureAndroidAppDataStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, androidAppDataStreams_); - onChanged(); - } else { - androidAppDataStreamsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder clearAndroidAppDataStreams() { - if (androidAppDataStreamsBuilder_ == null) { - androidAppDataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - androidAppDataStreamsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public Builder removeAndroidAppDataStreams(int index) { - if (androidAppDataStreamsBuilder_ == null) { - ensureAndroidAppDataStreamsIsMutable(); - androidAppDataStreams_.remove(index); - onChanged(); - } else { - androidAppDataStreamsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - getAndroidAppDataStreamsBuilder(int index) { - return getAndroidAppDataStreamsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamsOrBuilder(int index) { - if (androidAppDataStreamsBuilder_ == null) { - return androidAppDataStreams_.get(index); - } else { - return androidAppDataStreamsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - getAndroidAppDataStreamsOrBuilderList() { - if (androidAppDataStreamsBuilder_ != null) { - return androidAppDataStreamsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(androidAppDataStreams_); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - addAndroidAppDataStreamsBuilder() { - return getAndroidAppDataStreamsFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - addAndroidAppDataStreamsBuilder(int index) { - return getAndroidAppDataStreamsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - public java.util.List - getAndroidAppDataStreamsBuilderList() { - return getAndroidAppDataStreamsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - getAndroidAppDataStreamsFieldBuilder() { - if (androidAppDataStreamsBuilder_ == null) { - androidAppDataStreamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( - androidAppDataStreams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - androidAppDataStreams_ = null; - } - return androidAppDataStreamsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) - private static final com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAndroidAppDataStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAndroidAppDataStreamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java deleted file mode 100644 index 1fbdc3b8..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAndroidAppDataStreamsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - java.util.List - getAndroidAppDataStreamsList(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStreams(int index); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - int getAndroidAppDataStreamsCount(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - java.util.List - getAndroidAppDataStreamsOrBuilderList(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_streams = 1; - * - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamsOrBuilder(int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java deleted file mode 100644 index 8896ab66..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java +++ /dev/null @@ -1,970 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListIosAppDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} - */ -public final class ListIosAppDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) - ListIosAppDataStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListIosAppDataStreamsRequest.newBuilder() to construct. - private ListIosAppDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListIosAppDataStreamsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListIosAppDataStreamsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListIosAppDataStreamsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `ListIosAppDataStreams`
-   * call. Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListIosAppDataStreams`
-   * 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 `ListIosAppDataStreams`
-   * call. Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListIosAppDataStreams`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest other = - (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest 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.ListIosAppDataStreamsRequest 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 ListIosAppDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest build() { - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest result = - new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest other) { - if (other - == com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of app streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `ListIosAppDataStreams`
-     * call. Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListIosAppDataStreams`
-     * 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 `ListIosAppDataStreams`
-     * call. Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListIosAppDataStreams`
-     * 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 `ListIosAppDataStreams`
-     * call. Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListIosAppDataStreams`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListIosAppDataStreams`
-     * call. Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListIosAppDataStreams`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListIosAppDataStreams`
-     * call. Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListIosAppDataStreams`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) - private static final com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListIosAppDataStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListIosAppDataStreamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java deleted file mode 100644 index faf69882..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListIosAppDataStreamsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of app streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A page token, received from a previous `ListIosAppDataStreams`
-   * call. Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListIosAppDataStreams`
-   * 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 `ListIosAppDataStreams`
-   * call. Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListIosAppDataStreams`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java deleted file mode 100644 index 21fd88de..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java +++ /dev/null @@ -1,1185 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListIosAppDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} - */ -public final class ListIosAppDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) - ListIosAppDataStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListIosAppDataStreamsResponse.newBuilder() to construct. - private ListIosAppDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListIosAppDataStreamsResponse() { - iosAppDataStreams_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListIosAppDataStreamsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListIosAppDataStreamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - iosAppDataStreams_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - iosAppDataStreams_.add( - input.readMessage( - com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - iosAppDataStreams_ = java.util.Collections.unmodifiableList(iosAppDataStreams_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.Builder.class); - } - - public static final int IOS_APP_DATA_STREAMS_FIELD_NUMBER = 1; - private java.util.List iosAppDataStreams_; - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - @java.lang.Override - public java.util.List - getIosAppDataStreamsList() { - return iosAppDataStreams_; - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - @java.lang.Override - public java.util.List - getIosAppDataStreamsOrBuilderList() { - return iosAppDataStreams_; - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - @java.lang.Override - public int getIosAppDataStreamsCount() { - return iosAppDataStreams_.size(); - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStreams(int index) { - return iosAppDataStreams_.get(index); - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamsOrBuilder( - int index) { - return iosAppDataStreams_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < iosAppDataStreams_.size(); i++) { - output.writeMessage(1, iosAppDataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < iosAppDataStreams_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, iosAppDataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse other = - (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) obj; - - if (!getIosAppDataStreamsList().equals(other.getIosAppDataStreamsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getIosAppDataStreamsCount() > 0) { - hash = (37 * hash) + IOS_APP_DATA_STREAMS_FIELD_NUMBER; - hash = (53 * hash) + getIosAppDataStreamsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse 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.ListIosAppDataStreamsResponse 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 ListIosAppDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getIosAppDataStreamsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (iosAppDataStreamsBuilder_ == null) { - iosAppDataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - iosAppDataStreamsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse build() { - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse result = - new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(this); - int from_bitField0_ = bitField0_; - if (iosAppDataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - iosAppDataStreams_ = java.util.Collections.unmodifiableList(iosAppDataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.iosAppDataStreams_ = iosAppDataStreams_; - } else { - result.iosAppDataStreams_ = iosAppDataStreamsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse other) { - if (other - == com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse.getDefaultInstance()) - return this; - if (iosAppDataStreamsBuilder_ == null) { - if (!other.iosAppDataStreams_.isEmpty()) { - if (iosAppDataStreams_.isEmpty()) { - iosAppDataStreams_ = other.iosAppDataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.addAll(other.iosAppDataStreams_); - } - onChanged(); - } - } else { - if (!other.iosAppDataStreams_.isEmpty()) { - if (iosAppDataStreamsBuilder_.isEmpty()) { - iosAppDataStreamsBuilder_.dispose(); - iosAppDataStreamsBuilder_ = null; - iosAppDataStreams_ = other.iosAppDataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - iosAppDataStreamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getIosAppDataStreamsFieldBuilder() - : null; - } else { - iosAppDataStreamsBuilder_.addAllMessages(other.iosAppDataStreams_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List iosAppDataStreams_ = - java.util.Collections.emptyList(); - - private void ensureIosAppDataStreamsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - iosAppDataStreams_ = - new java.util.ArrayList( - iosAppDataStreams_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - iosAppDataStreamsBuilder_; - - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public java.util.List - getIosAppDataStreamsList() { - if (iosAppDataStreamsBuilder_ == null) { - return java.util.Collections.unmodifiableList(iosAppDataStreams_); - } else { - return iosAppDataStreamsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public int getIosAppDataStreamsCount() { - if (iosAppDataStreamsBuilder_ == null) { - return iosAppDataStreams_.size(); - } else { - return iosAppDataStreamsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStreams(int index) { - if (iosAppDataStreamsBuilder_ == null) { - return iosAppDataStreams_.get(index); - } else { - return iosAppDataStreamsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder setIosAppDataStreams( - int index, com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.set(index, value); - onChanged(); - } else { - iosAppDataStreamsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder setIosAppDataStreams( - int index, com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamsBuilder_ == null) { - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.set(index, builderForValue.build()); - onChanged(); - } else { - iosAppDataStreamsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder addIosAppDataStreams(com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.add(value); - onChanged(); - } else { - iosAppDataStreamsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder addIosAppDataStreams( - int index, com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.add(index, value); - onChanged(); - } else { - iosAppDataStreamsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder addIosAppDataStreams( - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamsBuilder_ == null) { - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.add(builderForValue.build()); - onChanged(); - } else { - iosAppDataStreamsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder addIosAppDataStreams( - int index, com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamsBuilder_ == null) { - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.add(index, builderForValue.build()); - onChanged(); - } else { - iosAppDataStreamsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder addAllIosAppDataStreams( - java.lang.Iterable values) { - if (iosAppDataStreamsBuilder_ == null) { - ensureIosAppDataStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, iosAppDataStreams_); - onChanged(); - } else { - iosAppDataStreamsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder clearIosAppDataStreams() { - if (iosAppDataStreamsBuilder_ == null) { - iosAppDataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - iosAppDataStreamsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public Builder removeIosAppDataStreams(int index) { - if (iosAppDataStreamsBuilder_ == null) { - ensureIosAppDataStreamsIsMutable(); - iosAppDataStreams_.remove(index); - onChanged(); - } else { - iosAppDataStreamsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder getIosAppDataStreamsBuilder( - int index) { - return getIosAppDataStreamsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamsOrBuilder(int index) { - if (iosAppDataStreamsBuilder_ == null) { - return iosAppDataStreams_.get(index); - } else { - return iosAppDataStreamsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public java.util.List - getIosAppDataStreamsOrBuilderList() { - if (iosAppDataStreamsBuilder_ != null) { - return iosAppDataStreamsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(iosAppDataStreams_); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder - addIosAppDataStreamsBuilder() { - return getIosAppDataStreamsFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder addIosAppDataStreamsBuilder( - int index) { - return getIosAppDataStreamsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - public java.util.List - getIosAppDataStreamsBuilderList() { - return getIosAppDataStreamsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - getIosAppDataStreamsFieldBuilder() { - if (iosAppDataStreamsBuilder_ == null) { - iosAppDataStreamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( - iosAppDataStreams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - iosAppDataStreams_ = null; - } - return iosAppDataStreamsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) - private static final com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListIosAppDataStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListIosAppDataStreamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java deleted file mode 100644 index a543349c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListIosAppDataStreamsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - java.util.List getIosAppDataStreamsList(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStreams(int index); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - int getIosAppDataStreamsCount(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - java.util.List - getIosAppDataStreamsOrBuilderList(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_streams = 1; - * - */ - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamsOrBuilder( - int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java index 240aa85b..8e7cd80b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -133,10 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The resource name of the parent stream.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
    * 
* * @@ -162,10 +160,8 @@ public java.lang.String getParent() { * *
    * Required. The resource name of the parent stream.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
    * 
* * @@ -630,10 +626,8 @@ public Builder mergeFrom( * *
      * Required. The resource name of the parent stream.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
      * 
* * @@ -658,10 +652,8 @@ public java.lang.String getParent() { * *
      * Required. The resource name of the parent stream.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
      * 
* * @@ -686,10 +678,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The resource name of the parent stream.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
      * 
* * @@ -713,10 +703,8 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The resource name of the parent stream.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
      * 
* * @@ -736,10 +724,8 @@ public Builder clearParent() { * *
      * Required. The resource name of the parent stream.
-     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-     * may be a parent.
      * Format:
-     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
      * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java index 0e40a364..88b39d0c 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -28,10 +28,8 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * *
    * Required. The resource name of the parent stream.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
    * 
* * @@ -46,10 +44,8 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * *
    * Required. The resource name of the parent stream.
-   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
-   * may be a parent.
    * Format:
-   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
    * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java index 60b98ecb..27a1aca5 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java @@ -137,13 +137,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. An expression for filtering the results of the request.
    * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account) or
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
    * `firebase_project:`(The id or number of the linked firebase project).
    * Some examples of filters:
    * ```
    * | Filter                      | Description                               |
    * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.         |
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
    * | firebase_project:project-id | The firebase project with id: project-id. |
    * | firebase_project:123        | The firebase project with number: 123.    |
    * ```
@@ -171,13 +174,16 @@ public java.lang.String getFilter() {
    * 
    * Required. An expression for filtering the results of the request.
    * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account) or
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
    * `firebase_project:`(The id or number of the linked firebase project).
    * Some examples of filters:
    * ```
    * | Filter                      | Description                               |
    * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.         |
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
    * | firebase_project:project-id | The firebase project with id: project-id. |
    * | firebase_project:123        | The firebase project with number: 123.    |
    * ```
@@ -668,13 +674,16 @@ public Builder mergeFrom(
      * 
      * Required. An expression for filtering the results of the request.
      * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account) or
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
      * `firebase_project:`(The id or number of the linked firebase project).
      * Some examples of filters:
      * ```
      * | Filter                      | Description                               |
      * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.         |
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
      * | firebase_project:project-id | The firebase project with id: project-id. |
      * | firebase_project:123        | The firebase project with number: 123.    |
      * ```
@@ -701,13 +710,16 @@ public java.lang.String getFilter() {
      * 
      * Required. An expression for filtering the results of the request.
      * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account) or
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
      * `firebase_project:`(The id or number of the linked firebase project).
      * Some examples of filters:
      * ```
      * | Filter                      | Description                               |
      * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.         |
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
      * | firebase_project:project-id | The firebase project with id: project-id. |
      * | firebase_project:123        | The firebase project with number: 123.    |
      * ```
@@ -734,13 +746,16 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
      * Required. An expression for filtering the results of the request.
      * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account) or
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
      * `firebase_project:`(The id or number of the linked firebase project).
      * Some examples of filters:
      * ```
      * | Filter                      | Description                               |
      * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.         |
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
      * | firebase_project:project-id | The firebase project with id: project-id. |
      * | firebase_project:123        | The firebase project with number: 123.    |
      * ```
@@ -766,13 +781,16 @@ public Builder setFilter(java.lang.String value) {
      * 
      * Required. An expression for filtering the results of the request.
      * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account) or
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
      * `firebase_project:`(The id or number of the linked firebase project).
      * Some examples of filters:
      * ```
      * | Filter                      | Description                               |
      * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.         |
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
      * | firebase_project:project-id | The firebase project with id: project-id. |
      * | firebase_project:123        | The firebase project with number: 123.    |
      * ```
@@ -794,13 +812,16 @@ public Builder clearFilter() {
      * 
      * Required. An expression for filtering the results of the request.
      * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account) or
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
      * `firebase_project:`(The id or number of the linked firebase project).
      * Some examples of filters:
      * ```
      * | Filter                      | Description                               |
      * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.         |
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
      * | firebase_project:project-id | The firebase project with id: project-id. |
      * | firebase_project:123        | The firebase project with number: 123.    |
      * ```
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java
index 41b5bb6c..24357307 100644
--- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java
+++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java
@@ -29,13 +29,16 @@ public interface ListPropertiesRequestOrBuilder
    * 
    * Required. An expression for filtering the results of the request.
    * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account) or
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
    * `firebase_project:`(The id or number of the linked firebase project).
    * Some examples of filters:
    * ```
    * | Filter                      | Description                               |
    * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.         |
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
    * | firebase_project:project-id | The firebase project with id: project-id. |
    * | firebase_project:123        | The firebase project with number: 123.    |
    * ```
@@ -52,13 +55,16 @@ public interface ListPropertiesRequestOrBuilder
    * 
    * Required. An expression for filtering the results of the request.
    * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account) or
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
    * `firebase_project:`(The id or number of the linked firebase project).
    * Some examples of filters:
    * ```
    * | Filter                      | Description                               |
    * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.         |
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
    * | firebase_project:project-id | The firebase project with id: project-id. |
    * | firebase_project:123        | The firebase project with number: 123.    |
    * ```
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java
deleted file mode 100644
index 8907d42d..00000000
--- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java
+++ /dev/null
@@ -1,966 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/analytics/admin/v1alpha/analytics_admin.proto
-
-package com.google.analytics.admin.v1alpha;
-
-/**
- *
- *
- * 
- * Request message for ListWebDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsRequest} - */ -public final class ListWebDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) - ListWebDataStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWebDataStreamsRequest.newBuilder() to construct. - private ListWebDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWebDataStreamsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWebDataStreamsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListWebDataStreamsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of web streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of web streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A page token, received from a previous `ListWebDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListWebDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest other = - (com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest 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.ListWebDataStreamsRequest 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 ListWebDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.class, - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest build() { - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest result = - new com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest other) { - if (other - == com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of web streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of web streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of web streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of web streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the parent property.
-     * For example, to list results of web streams under the property with Id
-     * 123: "properties/123"
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A page token, received from a previous `ListWebDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListWebDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListWebDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListWebDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A page token, received from a previous `ListWebDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListWebDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) - private static final com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWebDataStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWebDataStreamsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java deleted file mode 100644 index 57370f45..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListWebDataStreamsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListWebDataStreamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of web streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The name of the parent property.
-   * For example, to list results of web streams under the property with Id
-   * 123: "properties/123"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A page token, received from a previous `ListWebDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListWebDataStreams` 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 `ListWebDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListWebDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java deleted file mode 100644 index 29b9fccb..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java +++ /dev/null @@ -1,1155 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for ListWebDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsResponse} - */ -public final class ListWebDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) - ListWebDataStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListWebDataStreamsResponse.newBuilder() to construct. - private ListWebDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListWebDataStreamsResponse() { - webDataStreams_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListWebDataStreamsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListWebDataStreamsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - webDataStreams_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - webDataStreams_.add( - input.readMessage( - com.google.analytics.admin.v1alpha.WebDataStream.parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - webDataStreams_ = java.util.Collections.unmodifiableList(webDataStreams_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.Builder.class); - } - - public static final int WEB_DATA_STREAMS_FIELD_NUMBER = 1; - private java.util.List webDataStreams_; - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - @java.lang.Override - public java.util.List getWebDataStreamsList() { - return webDataStreams_; - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - @java.lang.Override - public java.util.List - getWebDataStreamsOrBuilderList() { - return webDataStreams_; - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - @java.lang.Override - public int getWebDataStreamsCount() { - return webDataStreams_.size(); - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStreams(int index) { - return webDataStreams_.get(index); - } - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamsOrBuilder( - int index) { - return webDataStreams_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < webDataStreams_.size(); i++) { - output.writeMessage(1, webDataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < webDataStreams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webDataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse other = - (com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) obj; - - if (!getWebDataStreamsList().equals(other.getWebDataStreamsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getWebDataStreamsCount() > 0) { - hash = (37 * hash) + WEB_DATA_STREAMS_FIELD_NUMBER; - hash = (53 * hash) + getWebDataStreamsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse 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.ListWebDataStreamsResponse 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 ListWebDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListWebDataStreamsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.class, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWebDataStreamsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (webDataStreamsBuilder_ == null) { - webDataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - webDataStreamsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListWebDataStreamsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse build() { - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse result = - new com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(this); - int from_bitField0_ = bitField0_; - if (webDataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - webDataStreams_ = java.util.Collections.unmodifiableList(webDataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.webDataStreams_ = webDataStreams_; - } else { - result.webDataStreams_ = webDataStreamsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse other) { - if (other - == com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse.getDefaultInstance()) - return this; - if (webDataStreamsBuilder_ == null) { - if (!other.webDataStreams_.isEmpty()) { - if (webDataStreams_.isEmpty()) { - webDataStreams_ = other.webDataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWebDataStreamsIsMutable(); - webDataStreams_.addAll(other.webDataStreams_); - } - onChanged(); - } - } else { - if (!other.webDataStreams_.isEmpty()) { - if (webDataStreamsBuilder_.isEmpty()) { - webDataStreamsBuilder_.dispose(); - webDataStreamsBuilder_ = null; - webDataStreams_ = other.webDataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - webDataStreamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWebDataStreamsFieldBuilder() - : null; - } else { - webDataStreamsBuilder_.addAllMessages(other.webDataStreams_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List webDataStreams_ = - java.util.Collections.emptyList(); - - private void ensureWebDataStreamsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - webDataStreams_ = - new java.util.ArrayList( - webDataStreams_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - webDataStreamsBuilder_; - - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public java.util.List - getWebDataStreamsList() { - if (webDataStreamsBuilder_ == null) { - return java.util.Collections.unmodifiableList(webDataStreams_); - } else { - return webDataStreamsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public int getWebDataStreamsCount() { - if (webDataStreamsBuilder_ == null) { - return webDataStreams_.size(); - } else { - return webDataStreamsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStreams(int index) { - if (webDataStreamsBuilder_ == null) { - return webDataStreams_.get(index); - } else { - return webDataStreamsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder setWebDataStreams( - int index, com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWebDataStreamsIsMutable(); - webDataStreams_.set(index, value); - onChanged(); - } else { - webDataStreamsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder setWebDataStreams( - int index, com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { - if (webDataStreamsBuilder_ == null) { - ensureWebDataStreamsIsMutable(); - webDataStreams_.set(index, builderForValue.build()); - onChanged(); - } else { - webDataStreamsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder addWebDataStreams(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWebDataStreamsIsMutable(); - webDataStreams_.add(value); - onChanged(); - } else { - webDataStreamsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder addWebDataStreams( - int index, com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWebDataStreamsIsMutable(); - webDataStreams_.add(index, value); - onChanged(); - } else { - webDataStreamsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder addWebDataStreams( - com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { - if (webDataStreamsBuilder_ == null) { - ensureWebDataStreamsIsMutable(); - webDataStreams_.add(builderForValue.build()); - onChanged(); - } else { - webDataStreamsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder addWebDataStreams( - int index, com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { - if (webDataStreamsBuilder_ == null) { - ensureWebDataStreamsIsMutable(); - webDataStreams_.add(index, builderForValue.build()); - onChanged(); - } else { - webDataStreamsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder addAllWebDataStreams( - java.lang.Iterable values) { - if (webDataStreamsBuilder_ == null) { - ensureWebDataStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webDataStreams_); - onChanged(); - } else { - webDataStreamsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder clearWebDataStreams() { - if (webDataStreamsBuilder_ == null) { - webDataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - webDataStreamsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public Builder removeWebDataStreams(int index) { - if (webDataStreamsBuilder_ == null) { - ensureWebDataStreamsIsMutable(); - webDataStreams_.remove(index); - onChanged(); - } else { - webDataStreamsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamsBuilder( - int index) { - return getWebDataStreamsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamsOrBuilder( - int index) { - if (webDataStreamsBuilder_ == null) { - return webDataStreams_.get(index); - } else { - return webDataStreamsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public java.util.List - getWebDataStreamsOrBuilderList() { - if (webDataStreamsBuilder_ != null) { - return webDataStreamsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(webDataStreams_); - } - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.WebDataStream.Builder addWebDataStreamsBuilder() { - return getWebDataStreamsFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.WebDataStream.Builder addWebDataStreamsBuilder( - int index) { - return getWebDataStreamsFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()); - } - /** - * - * - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - public java.util.List - getWebDataStreamsBuilderList() { - return getWebDataStreamsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - getWebDataStreamsFieldBuilder() { - if (webDataStreamsBuilder_ == null) { - webDataStreamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( - webDataStreams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - webDataStreams_ = null; - } - return webDataStreamsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) - private static final com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWebDataStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListWebDataStreamsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java deleted file mode 100644 index 96ce2ee4..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListWebDataStreamsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListWebDataStreamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - java.util.List getWebDataStreamsList(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - com.google.analytics.admin.v1alpha.WebDataStream getWebDataStreams(int index); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - int getWebDataStreamsCount(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - java.util.List - getWebDataStreamsOrBuilderList(); - /** - * - * - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.WebDataStream web_data_streams = 1; - */ - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamsOrBuilder(int index); - - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java index c43d5d32..92bea223 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java @@ -29,24 +29,24 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") public class MeasurementProtocolSecretName implements ResourceName { - private static final PathTemplate PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET = + private static final PathTemplate PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET = PathTemplate.createWithoutUrlEncoding( - "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"); + "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"); private volatile Map fieldValuesMap; private final String property; - private final String webDataStream; + private final String dataStream; private final String measurementProtocolSecret; @Deprecated protected MeasurementProtocolSecretName() { property = null; - webDataStream = null; + dataStream = null; measurementProtocolSecret = null; } private MeasurementProtocolSecretName(Builder builder) { property = Preconditions.checkNotNull(builder.getProperty()); - webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); + dataStream = Preconditions.checkNotNull(builder.getDataStream()); measurementProtocolSecret = Preconditions.checkNotNull(builder.getMeasurementProtocolSecret()); } @@ -54,8 +54,8 @@ public String getProperty() { return property; } - public String getWebDataStream() { - return webDataStream; + public String getDataStream() { + return dataStream; } public String getMeasurementProtocolSecret() { @@ -71,19 +71,19 @@ public Builder toBuilder() { } public static MeasurementProtocolSecretName of( - String property, String webDataStream, String measurementProtocolSecret) { + String property, String dataStream, String measurementProtocolSecret) { return newBuilder() .setProperty(property) - .setWebDataStream(webDataStream) + .setDataStream(dataStream) .setMeasurementProtocolSecret(measurementProtocolSecret) .build(); } public static String format( - String property, String webDataStream, String measurementProtocolSecret) { + String property, String dataStream, String measurementProtocolSecret) { return newBuilder() .setProperty(property) - .setWebDataStream(webDataStream) + .setDataStream(dataStream) .setMeasurementProtocolSecret(measurementProtocolSecret) .build() .toString(); @@ -94,12 +94,12 @@ public static MeasurementProtocolSecretName parse(String formattedString) { return null; } Map matchMap = - PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.validatedMatch( + PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.validatedMatch( formattedString, "MeasurementProtocolSecretName.parse: formattedString not in valid format"); return of( matchMap.get("property"), - matchMap.get("web_data_stream"), + matchMap.get("data_stream"), matchMap.get("measurement_protocol_secret")); } @@ -124,7 +124,7 @@ public static List toStringList(List valu } public static boolean isParsableFrom(String formattedString) { - return PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.matches(formattedString); + return PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.matches(formattedString); } @Override @@ -136,8 +136,8 @@ public Map getFieldValuesMap() { if (property != null) { fieldMapBuilder.put("property", property); } - if (webDataStream != null) { - fieldMapBuilder.put("web_data_stream", webDataStream); + if (dataStream != null) { + fieldMapBuilder.put("data_stream", dataStream); } if (measurementProtocolSecret != null) { fieldMapBuilder.put("measurement_protocol_secret", measurementProtocolSecret); @@ -155,11 +155,11 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.instantiate( + return PROPERTY_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.instantiate( "property", property, - "web_data_stream", - webDataStream, + "data_stream", + dataStream, "measurement_protocol_secret", measurementProtocolSecret); } @@ -172,7 +172,7 @@ public boolean equals(Object o) { if (o != null || getClass() == o.getClass()) { MeasurementProtocolSecretName that = ((MeasurementProtocolSecretName) o); return Objects.equals(this.property, that.property) - && Objects.equals(this.webDataStream, that.webDataStream) + && Objects.equals(this.dataStream, that.dataStream) && Objects.equals(this.measurementProtocolSecret, that.measurementProtocolSecret); } return false; @@ -184,7 +184,7 @@ public int hashCode() { h *= 1000003; h ^= Objects.hashCode(property); h *= 1000003; - h ^= Objects.hashCode(webDataStream); + h ^= Objects.hashCode(dataStream); h *= 1000003; h ^= Objects.hashCode(measurementProtocolSecret); return h; @@ -192,11 +192,11 @@ public int hashCode() { /** * Builder for - * properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}. + * properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}. */ public static class Builder { private String property; - private String webDataStream; + private String dataStream; private String measurementProtocolSecret; protected Builder() {} @@ -205,8 +205,8 @@ public String getProperty() { return property; } - public String getWebDataStream() { - return webDataStream; + public String getDataStream() { + return dataStream; } public String getMeasurementProtocolSecret() { @@ -218,8 +218,8 @@ public Builder setProperty(String property) { return this; } - public Builder setWebDataStream(String webDataStream) { - this.webDataStream = webDataStream; + public Builder setDataStream(String dataStream) { + this.dataStream = dataStream; return this; } @@ -230,7 +230,7 @@ public Builder setMeasurementProtocolSecret(String measurementProtocolSecret) { private Builder(MeasurementProtocolSecretName measurementProtocolSecretName) { this.property = measurementProtocolSecretName.property; - this.webDataStream = measurementProtocolSecretName.webDataStream; + this.dataStream = measurementProtocolSecretName.dataStream; this.measurementProtocolSecret = measurementProtocolSecretName.measurementProtocolSecret; } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index df69745a..877aa75b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -35,18 +35,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_Property_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -179,277 +167,250 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mestampB\003\340A\003\022>\n\007account\030\r \001(\tB-\340A\005\372A\'\n%a" + "nalyticsadmin.googleapis.com/Account:B\352A" + "?\n&analyticsadmin.googleapis.com/Propert" - + "y\022\025properties/{property}\"\344\002\n\024AndroidAppD" - + "ataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017firebase" - + "_app_id\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" - + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022\031\n\014package_name\030\005 \001(\tB\003\340A\005\022\024\n\014dis" - + "play_name\030\006 \001(\t:~\352A{\n2analyticsadmin.goo" - + "gleapis.com/AndroidAppDataStream\022Eproper" - + "ties/{property}/androidAppDataStreams/{a" - + "ndroid_app_data_stream}\"\324\002\n\020IosAppDataSt" - + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_" - + "id\030\002 \001(\tB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022\031\n\tbundle_id\030\005 \001(\tB\006\340A\005\340A\002\022\024\n\014display_" - + "name\030\006 \001(\t:r\352Ao\n.analyticsadmin.googleap" - + "is.com/IosAppDataStream\022=properties/{pro" - + "perty}/iosAppDataStreams/{ios_app_data_s" - + "tream}\"\350\002\n\rWebDataStream\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022\033\n\016measurement_id\030\002 \001(\tB\003\340A\003\022\034\n\017fire" - + "base_app_id\030\003 \001(\tB\003\340A\003\0224\n\013create_time\030\004 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "update_time\030\005 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\030\n\013default_uri\030\006 \001(\tB\003\340A\005\022\031\n\014" - + "display_name\030\007 \001(\tB\003\340A\002:h\352Ae\n+analyticsa" - + "dmin.googleapis.com/WebDataStream\0226prope" - + "rties/{property}/webDataStreams/{web_dat" - + "a_stream}\"\371\007\n\nDataStream\022S\n\017web_stream_d" - + "ata\030\006 \001(\01328.google.analytics.admin.v1alp" - + "ha.DataStream.WebStreamDataH\000\022b\n\027android" - + "_app_stream_data\030\007 \001(\0132?.google.analytic" - + "s.admin.v1alpha.DataStream.AndroidAppStr" - + "eamDataH\000\022Z\n\023ios_app_stream_data\030\010 \001(\0132;" - + ".google.analytics.admin.v1alpha.DataStre" - + "am.IosAppStreamDataH\000\022\021\n\004name\030\001 \001(\tB\003\340A\003" - + "\022O\n\004type\030\002 \001(\01629.google.analytics.admin." - + "v1alpha.DataStream.DataStreamTypeB\006\340A\005\340A" - + "\002\022\024\n\014display_name\030\003 \001(\t\0224\n\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\005 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\032d\n\rWebStreamData\022\033\n\016measurem" - + "ent_id\030\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\002 \001" - + "(\tB\003\340A\003\022\030\n\013default_uri\030\003 \001(\tB\003\340A\005\032O\n\024And" - + "roidAppStreamData\022\034\n\017firebase_app_id\030\001 \001" - + "(\tB\003\340A\003\022\031\n\014package_name\030\002 \001(\tB\003\340A\005\032K\n\020Io" - + "sAppStreamData\022\034\n\017firebase_app_id\030\001 \001(\tB" - + "\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006\340A\005\340A\002\"}\n\016DataS" - + "treamType\022 \n\034DATA_STREAM_TYPE_UNSPECIFIE" - + "D\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027ANDROID_APP_" - + "DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:^" - + "\352A[\n(analyticsadmin.googleapis.com/DataS" - + "tream\022/properties/{property}/dataStreams" - + "/{data_stream}B\r\n\013stream_data\"\324\001\n\010UserLi" - + "nk\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\remail_address\030\002" - + " \001(\tB\003\340A\005\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n&a" - + "nalyticsadmin.googleapis.com/UserLink\022(a" - + "ccounts/{account}/userLinks/{user_link}\022" - + "+properties/{property}/userLinks/{user_l" - + "ink}\"c\n\rAuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\re" - + "mail_address\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t" - + "\022\027\n\017effective_roles\030\004 \003(\t\"\323\001\n\014FirebaseLi" - + "nk\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.protob" - + "uf.TimestampB\003\340A\003:d\352Aa\n*analyticsadmin.g" - + "oogleapis.com/FirebaseLink\0223properties/{" - + "property}/firebaseLinks/{firebase_link}\"" - + "\217\001\n\rGlobalSiteTag\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007" - + "snippet\030\002 \001(\tB\003\340A\005:U\352AR\n+analyticsadmin." - + "googleapis.com/GlobalSiteTag\022#properties" - + "/{property}/globalSiteTag\"\230\003\n\rGoogleAdsL" - + "ink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013customer_id\030\003 " - + "\001(\tB\003\340A\005\022\037\n\022can_manage_clients\030\004 \001(\010B\003\340A" - + "\003\022?\n\033ads_personalization_enabled\030\005 \001(\0132\032" - + ".google.protobuf.BoolValue\0224\n\013create_tim" - + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\"\n\025creator_email_address\030" - + "\t \001(\tB\003\340A\003:h\352Ae\n+analyticsadmin.googleap" - + "is.com/GoogleAdsLink\0226properties/{proper" - + "ty}/googleAdsLinks/{google_ads_link}\"\353\002\n" - + "\023DataSharingSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" - + "+\n#sharing_with_google_support_enabled\030\002" - + " \001(\010\0222\n*sharing_with_google_assigned_sal" - + "es_enabled\030\003 \001(\010\022-\n%sharing_with_google_" - + "any_sales_enabled\030\004 \001(\010\022,\n$sharing_with_" - + "google_products_enabled\030\005 \001(\010\022#\n\033sharing" - + "_with_others_enabled\030\006 \001(\010:^\352A[\n1analyti" - + "csadmin.googleapis.com/DataSharingSettin" - + "gs\022&accounts/{account}/dataSharingSettin" - + "gs\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007a" - + "ccount\030\002 \001(\tB*\372A\'\n%analyticsadmin.google" - + "apis.com/Account\022\024\n\014display_name\030\003 \001(\t\022K" - + "\n\022property_summaries\030\004 \003(\0132/.google.anal" - + "ytics.admin.v1alpha.PropertySummary:U\352AR" - + "\n,analyticsadmin.googleapis.com/AccountS" - + "ummary\022\"accountSummaries/{account_summar" - + "y}\"f\n\017PropertySummary\022=\n\010property\030\001 \001(\tB" - + "+\372A(\n&analyticsadmin.googleapis.com/Prop" - + "erty\022\024\n\014display_name\030\002 \001(\t\"\225\002\n\031Measureme" - + "ntProtocolSecret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014d" - + "isplay_name\030\002 \001(\tB\003\340A\002\022\031\n\014secret_value\030\003" - + " \001(\tB\003\340A\003:\256\001\352A\252\001\n7analyticsadmin.googlea" - + "pis.com/MeasurementProtocolSecret\022oprope" - + "rties/{property}/webDataStreams/{web_dat" - + "a_stream}/measurementProtocolSecrets/{me" - + "asurement_protocol_secret}\"\212\002\n\022ChangeHis" - + "toryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\022=\n\nactor_" - + "type\030\003 \001(\0162).google.analytics.admin.v1al" - + "pha.ActorType\022\030\n\020user_actor_email\030\004 \001(\t\022" - + "\030\n\020changes_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003" - + "(\01323.google.analytics.admin.v1alpha.Chan" - + "geHistoryChange\"\275\014\n\023ChangeHistoryChange\022" - + "\020\n\010resource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.goog" - + "le.analytics.admin.v1alpha.ActionType\022i\n" - + "\026resource_before_change\030\003 \001(\0132I.google.a" - + "nalytics.admin.v1alpha.ChangeHistoryChan" - + "ge.ChangeHistoryResource\022h\n\025resource_aft" - + "er_change\030\004 \001(\0132I.google.analytics.admin" - + ".v1alpha.ChangeHistoryChange.ChangeHisto" - + "ryResource\032\202\n\n\025ChangeHistoryResource\022:\n\007" - + "account\030\001 \001(\0132\'.google.analytics.admin.v" - + "1alpha.AccountH\000\022<\n\010property\030\002 \001(\0132(.goo" - + "gle.analytics.admin.v1alpha.PropertyH\000\022H" - + "\n\017web_data_stream\030\003 \001(\0132-.google.analyti" - + "cs.admin.v1alpha.WebDataStreamH\000\022W\n\027andr" - + "oid_app_data_stream\030\004 \001(\01324.google.analy" - + "tics.admin.v1alpha.AndroidAppDataStreamH" - + "\000\022O\n\023ios_app_data_stream\030\005 \001(\01320.google." - + "analytics.admin.v1alpha.IosAppDataStream" - + "H\000\022E\n\rfirebase_link\030\006 \001(\0132,.google.analy" - + "tics.admin.v1alpha.FirebaseLinkH\000\022H\n\017goo" - + "gle_ads_link\030\007 \001(\0132-.google.analytics.ad" - + "min.v1alpha.GoogleAdsLinkH\000\022X\n\027google_si" - + "gnals_settings\030\010 \001(\01325.google.analytics." - + "admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" - + "!display_video_360_advertiser_link\030\t \001(\013" - + "2=.google.analytics.admin.v1alpha.Displa" - + "yVideo360AdvertiserLinkH\000\022{\n*display_vid" - + "eo_360_advertiser_link_proposal\030\n \001(\0132E." - + "google.analytics.admin.v1alpha.DisplayVi" - + "deo360AdvertiserLinkProposalH\000\022K\n\020conver" - + "sion_event\030\013 \001(\0132/.google.analytics.admi" - + "n.v1alpha.ConversionEventH\000\022`\n\033measureme" - + "nt_protocol_secret\030\014 \001(\01329.google.analyt" - + "ics.admin.v1alpha.MeasurementProtocolSec" - + "retH\000\022K\n\020custom_dimension\030\r \001(\0132/.google" - + ".analytics.admin.v1alpha.CustomDimension" - + "H\000\022E\n\rcustom_metric\030\016 \001(\0132,.google.analy" - + "tics.admin.v1alpha.CustomMetricH\000\022X\n\027dat" - + "a_retention_settings\030\017 \001(\01325.google.anal" - + "ytics.admin.v1alpha.DataRetentionSetting" - + "sH\000B\n\n\010resource\"\337\003\n\035DisplayVideo360Adver" - + "tiserLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\radvertis" - + "er_id\030\002 \001(\tB\003\340A\005\022$\n\027advertiser_display_n" - + "ame\030\003 \001(\tB\003\340A\003\022?\n\033ads_personalization_en" - + "abled\030\004 \001(\0132\032.google.protobuf.BoolValue\022" - + "F\n\035campaign_data_sharing_enabled\030\005 \001(\0132\032" - + ".google.protobuf.BoolValueB\003\340A\005\022B\n\031cost_" - + "data_sharing_enabled\030\006 \001(\0132\032.google.prot" - + "obuf.BoolValueB\003\340A\005:\233\001\352A\227\001\n;analyticsadm" - + "in.googleapis.com/DisplayVideo360Adverti" - + "serLink\022Xproperties/{property}/displayVi" - + "deo360AdvertiserLinks/{display_video_360" - + "_advertiser_link}\"\212\005\n%DisplayVideo360Adv" - + "ertiserLinkProposal\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032" - + "\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022d\n\034link_propo" - + "sal_status_details\030\003 \001(\01329.google.analyt" - + "ics.admin.v1alpha.LinkProposalStatusDeta" - + "ilsB\003\340A\003\022$\n\027advertiser_display_name\030\004 \001(" - + "\tB\003\340A\003\022\035\n\020validation_email\030\005 \001(\tB\003\340A\004\022D\n" - + "\033ads_personalization_enabled\030\006 \001(\0132\032.goo" - + "gle.protobuf.BoolValueB\003\340A\005\022F\n\035campaign_" - + "data_sharing_enabled\030\007 \001(\0132\032.google.prot" - + "obuf.BoolValueB\003\340A\005\022B\n\031cost_data_sharing" - + "_enabled\030\010 \001(\0132\032.google.protobuf.BoolVal" - + "ueB\003\340A\005:\264\001\352A\260\001\nCanalyticsadmin.googleapi" - + "s.com/DisplayVideo360AdvertiserLinkPropo" - + "sal\022iproperties/{property}/displayVideo3" - + "60AdvertiserLinkProposals/{display_video" - + "_360_advertiser_link_proposal}\"\374\001\n\031LinkP" - + "roposalStatusDetails\022l\n link_proposal_in" - + "itiating_product\030\001 \001(\0162=.google.analytic" - + "s.admin.v1alpha.LinkProposalInitiatingPr" - + "oductB\003\340A\003\022\034\n\017requestor_email\030\002 \001(\tB\003\340A\003" - + "\022S\n\023link_proposal_state\030\003 \001(\01621.google.a" - + "nalytics.admin.v1alpha.LinkProposalState" - + "B\003\340A\003\"\217\002\n\017ConversionEvent\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022\027\n\nevent_name\030\002 \001(\tB\003\340A\005\0224\n\013create_" - + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\022\026\n\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n\006custom\030\005 " - + "\001(\010B\003\340A\003:m\352Aj\n-analyticsadmin.googleapis" - + ".com/ConversionEvent\0229properties/{proper" - + "ty}/conversionEvents/{conversion_event}\"" - + "\240\002\n\025GoogleSignalsSettings\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022A\n\005state\030\003 \001(\01622.google.analytics.a" - + "dmin.v1alpha.GoogleSignalsState\022J\n\007conse" - + "nt\030\004 \001(\01624.google.analytics.admin.v1alph" - + "a.GoogleSignalsConsentB\003\340A\003:e\352Ab\n3analyt" - + "icsadmin.googleapis.com/GoogleSignalsSet" - + "tings\022+properties/{property}/googleSigna" - + "lsSettings\"\237\003\n\017CustomDimension\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\036\n\016parameter_name\030\002 \001(\tB\006\340A\002\340A" - + "\005\022\031\n\014display_name\030\003 \001(\tB\003\340A\002\022\030\n\013descript" - + "ion\030\004 \001(\tB\003\340A\001\022U\n\005scope\030\005 \001(\0162>.google.a" - + "nalytics.admin.v1alpha.CustomDimension.D" - + "imensionScopeB\006\340A\002\340A\005\022)\n\034disallow_ads_pe" - + "rsonalization\030\006 \001(\010B\003\340A\001\"F\n\016DimensionSco" - + "pe\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n\005E" - + "VENT\020\001\022\010\n\004USER\020\002:Z\352AW\n-analyticsadmin.go" - + "ogleapis.com/CustomDimension\022&properties" - + "/{property}/customDimensions\"\354\004\n\014CustomM" - + "etric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_na" - + "me\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\tB\003" - + "\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022[\n\020measure" - + "ment_unit\030\005 \001(\0162<.google.analytics.admin" - + ".v1alpha.CustomMetric.MeasurementUnitB\003\340" - + "A\002\022O\n\005scope\030\006 \001(\01628.google.analytics.adm" - + "in.v1alpha.CustomMetric.MetricScopeB\006\340A\002" - + "\340A\005\"\267\001\n\017MeasurementUnit\022 \n\034MEASUREMENT_U" - + "NIT_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n\010CURRE" - + "NCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKILOMETER" - + "S\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013\n\007SECO" - + "NDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013MetricS" - + "cope\022\034\n\030METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005EV" - + "ENT\020\001:T\352AQ\n*analyticsadmin.googleapis.co" - + "m/CustomMetric\022#properties/{property}/cu" - + "stomMetrics\"\302\003\n\025DataRetentionSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022e\n\024event_data_retention" - + "\030\002 \001(\0162G.google.analytics.admin.v1alpha." - + "DataRetentionSettings.RetentionDuration\022" - + "\'\n\037reset_user_data_on_new_activity\030\003 \001(\010" - + "\"\236\001\n\021RetentionDuration\022\"\n\036RETENTION_DURA" - + "TION_UNSPECIFIED\020\000\022\016\n\nTWO_MONTHS\020\001\022\023\n\017FO" - + "URTEEN_MONTHS\020\003\022\025\n\021TWENTY_SIX_MONTHS\020\004\022\027" - + "\n\023THIRTY_EIGHT_MONTHS\020\005\022\020\n\014FIFTY_MONTHS\020" - + "\006:e\352Ab\n3analyticsadmin.googleapis.com/Da" - + "taRetentionSettings\022+properties/{propert" - + "y}/dataRetentionSettings*\252\004\n\020IndustryCat" - + "egory\022!\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000" - + "\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINESS_AND_INDUSTR" - + "IAL_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\016FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIE" - + "S_AND_LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024" - + "INTERNET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOVERN" - + "MENT\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_ANI" - + "MALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013" - + "\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUC" - + "ATION\020\031\022\014\n\010SHOPPING\020\032*f\n\014ServiceLevel\022\035\n" - + "\031SERVICE_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_A" - + "NALYTICS_STANDARD\020\001\022\030\n\024GOOGLE_ANALYTICS_" - + "360\020\002*J\n\tActorType\022\032\n\026ACTOR_TYPE_UNSPECI" - + "FIED\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_UNSPECIFI" - + "ED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETE" - + "D\020\003*\310\003\n\031ChangeHistoryResourceType\022,\n(CHA" - + "NGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022" - + "\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\023\n\017WEB_DATA_S" - + "TREAM\020\003\022\033\n\027ANDROID_APP_DATA_STREAM\020\004\022\027\n\023" - + "IOS_APP_DATA_STREAM\020\005\022\021\n\rFIREBASE_LINK\020\006" - + "\022\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNALS_" - + "SETTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEAS" - + "UREMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIME" - + "NSION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETEN" - + "TION_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_ADV" - + "ERTISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_ADVE" - + "RTISER_LINK_PROPOSAL\020\017*s\n\022GoogleSignalsS" + + "y\022\025properties/{property}\"\371\007\n\nDataStream\022" + + "S\n\017web_stream_data\030\006 \001(\01328.google.analyt" + + "ics.admin.v1alpha.DataStream.WebStreamDa" + + "taH\000\022b\n\027android_app_stream_data\030\007 \001(\0132?." + + "google.analytics.admin.v1alpha.DataStrea" + + "m.AndroidAppStreamDataH\000\022Z\n\023ios_app_stre" + + "am_data\030\010 \001(\0132;.google.analytics.admin.v" + + "1alpha.DataStream.IosAppStreamDataH\000\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\003\022O\n\004type\030\002 \001(\01629.google.a" + + "nalytics.admin.v1alpha.DataStream.DataSt" + + "reamTypeB\006\340A\005\340A\002\022\024\n\014display_name\030\003 \001(\t\0224" + + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\032d\n\rWebStreamD" + + "ata\022\033\n\016measurement_id\030\001 \001(\tB\003\340A\003\022\034\n\017fire" + + "base_app_id\030\002 \001(\tB\003\340A\003\022\030\n\013default_uri\030\003 " + + "\001(\tB\003\340A\005\032O\n\024AndroidAppStreamData\022\034\n\017fire" + + "base_app_id\030\001 \001(\tB\003\340A\003\022\031\n\014package_name\030\002" + + " \001(\tB\003\340A\005\032K\n\020IosAppStreamData\022\034\n\017firebas" + + "e_app_id\030\001 \001(\tB\003\340A\003\022\031\n\tbundle_id\030\002 \001(\tB\006" + + "\340A\005\340A\002\"}\n\016DataStreamType\022 \n\034DATA_STREAM_" + + "TYPE_UNSPECIFIED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022" + + "\033\n\027ANDROID_APP_DATA_STREAM\020\002\022\027\n\023IOS_APP_" + + "DATA_STREAM\020\003:^\352A[\n(analyticsadmin.googl" + + "eapis.com/DataStream\022/properties/{proper" + + "ty}/dataStreams/{data_stream}B\r\n\013stream_" + + "data\"\324\001\n\010UserLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "email_address\030\002 \001(\tB\003\340A\005\022\024\n\014direct_roles" + + "\030\003 \003(\t:\202\001\352A\177\n&analyticsadmin.googleapis." + + "com/UserLink\022(accounts/{account}/userLin" + + "ks/{user_link}\022+properties/{property}/us" + + "erLinks/{user_link}\"c\n\rAuditUserLink\022\014\n\004" + + "name\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t\022\024\n\014dir" + + "ect_roles\030\003 \003(\t\022\027\n\017effective_roles\030\004 \003(\t" + + "\"\323\001\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007" + + "project\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n*a" + + "nalyticsadmin.googleapis.com/FirebaseLin" + + "k\0223properties/{property}/firebaseLinks/{" + + "firebase_link}\"\251\001\n\rGlobalSiteTag\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:o\352Al\n+" + + "analyticsadmin.googleapis.com/GlobalSite" + + "Tag\022=properties/{property}/dataStreams/{" + + "data_stream}/globalSiteTag\"\230\003\n\rGoogleAds" + + "Link\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013customer_id\030\003" + + " \001(\tB\003\340A\005\022\037\n\022can_manage_clients\030\004 \001(\010B\003\340" + + "A\003\022?\n\033ads_personalization_enabled\030\005 \001(\0132" + + "\032.google.protobuf.BoolValue\0224\n\013create_ti" + + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\"\n\025creator_email_address" + + "\030\t \001(\tB\003\340A\003:h\352Ae\n+analyticsadmin.googlea" + + "pis.com/GoogleAdsLink\0226properties/{prope" + + "rty}/googleAdsLinks/{google_ads_link}\"\353\002" + + "\n\023DataSharingSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003" + + "\022+\n#sharing_with_google_support_enabled\030" + + "\002 \001(\010\0222\n*sharing_with_google_assigned_sa" + + "les_enabled\030\003 \001(\010\022-\n%sharing_with_google" + + "_any_sales_enabled\030\004 \001(\010\022,\n$sharing_with" + + "_google_products_enabled\030\005 \001(\010\022#\n\033sharin" + + "g_with_others_enabled\030\006 \001(\010:^\352A[\n1analyt" + + "icsadmin.googleapis.com/DataSharingSetti" + + "ngs\022&accounts/{account}/dataSharingSetti" + + "ngs\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007" + + "account\030\002 \001(\tB*\372A\'\n%analyticsadmin.googl" + + "eapis.com/Account\022\024\n\014display_name\030\003 \001(\t\022" + + "K\n\022property_summaries\030\004 \003(\0132/.google.ana" + + "lytics.admin.v1alpha.PropertySummary:U\352A" + + "R\n,analyticsadmin.googleapis.com/Account" + + "Summary\022\"accountSummaries/{account_summa" + + "ry}\"f\n\017PropertySummary\022=\n\010property\030\001 \001(\t" + + "B+\372A(\n&analyticsadmin.googleapis.com/Pro" + + "perty\022\024\n\014display_name\030\002 \001(\t\"\216\002\n\031Measurem" + + "entProtocolSecret\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014" + + "display_name\030\002 \001(\tB\003\340A\002\022\031\n\014secret_value\030" + + "\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n7analyticsadmin.google" + + "apis.com/MeasurementProtocolSecret\022hprop" + + "erties/{property}/dataStreams/{data_stre" + + "am}/measurementProtocolSecrets/{measurem" + + "ent_protocol_secret}\"\212\002\n\022ChangeHistoryEv" + + "ent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022=\n\nactor_type\030\003" + + " \001(\0162).google.analytics.admin.v1alpha.Ac" + + "torType\022\030\n\020user_actor_email\030\004 \001(\t\022\030\n\020cha" + + "nges_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003(\01323.g" + + "oogle.analytics.admin.v1alpha.ChangeHist" + + "oryChange\"\214\013\n\023ChangeHistoryChange\022\020\n\010res" + + "ource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.google.ana" + + "lytics.admin.v1alpha.ActionType\022i\n\026resou" + + "rce_before_change\030\003 \001(\0132I.google.analyti" + + "cs.admin.v1alpha.ChangeHistoryChange.Cha" + + "ngeHistoryResource\022h\n\025resource_after_cha" + + "nge\030\004 \001(\0132I.google.analytics.admin.v1alp" + + "ha.ChangeHistoryChange.ChangeHistoryReso" + + "urce\032\321\010\n\025ChangeHistoryResource\022:\n\007accoun" + + "t\030\001 \001(\0132\'.google.analytics.admin.v1alpha" + + ".AccountH\000\022<\n\010property\030\002 \001(\0132(.google.an" + + "alytics.admin.v1alpha.PropertyH\000\022E\n\rfire" + + "base_link\030\006 \001(\0132,.google.analytics.admin" + + ".v1alpha.FirebaseLinkH\000\022H\n\017google_ads_li" + + "nk\030\007 \001(\0132-.google.analytics.admin.v1alph" + + "a.GoogleAdsLinkH\000\022X\n\027google_signals_sett" + + "ings\030\010 \001(\01325.google.analytics.admin.v1al" + + "pha.GoogleSignalsSettingsH\000\022j\n!display_v" + + "ideo_360_advertiser_link\030\t \001(\0132=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLinkH\000\022{\n*display_video_360_adv" + + "ertiser_link_proposal\030\n \001(\0132E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposalH\000\022K\n\020conversion_event" + + "\030\013 \001(\0132/.google.analytics.admin.v1alpha." + + "ConversionEventH\000\022`\n\033measurement_protoco" + + "l_secret\030\014 \001(\01329.google.analytics.admin." + + "v1alpha.MeasurementProtocolSecretH\000\022K\n\020c" + + "ustom_dimension\030\r \001(\0132/.google.analytics" + + ".admin.v1alpha.CustomDimensionH\000\022E\n\rcust" + + "om_metric\030\016 \001(\0132,.google.analytics.admin" + + ".v1alpha.CustomMetricH\000\022X\n\027data_retentio" + + "n_settings\030\017 \001(\01325.google.analytics.admi" + + "n.v1alpha.DataRetentionSettingsH\000\022A\n\013dat" + + "a_stream\030\022 \001(\0132*.google.analytics.admin." + + "v1alpha.DataStreamH\000B\n\n\010resource\"\337\003\n\035Dis" + + "playVideo360AdvertiserLink\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022$\n\027adv" + + "ertiser_display_name\030\003 \001(\tB\003\340A\003\022?\n\033ads_p" + + "ersonalization_enabled\030\004 \001(\0132\032.google.pr" + + "otobuf.BoolValue\022F\n\035campaign_data_sharin" + + "g_enabled\030\005 \001(\0132\032.google.protobuf.BoolVa" + + "lueB\003\340A\005\022B\n\031cost_data_sharing_enabled\030\006 " + + "\001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\233\001\352" + + "A\227\001\n;analyticsadmin.googleapis.com/Displ" + + "ayVideo360AdvertiserLink\022Xproperties/{pr" + + "operty}/displayVideo360AdvertiserLinks/{" + + "display_video_360_advertiser_link}\"\212\005\n%D" + + "isplayVideo360AdvertiserLinkProposal\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003" + + "\340A\005\022d\n\034link_proposal_status_details\030\003 \001(" + + "\01329.google.analytics.admin.v1alpha.LinkP" + + "roposalStatusDetailsB\003\340A\003\022$\n\027advertiser_" + + "display_name\030\004 \001(\tB\003\340A\003\022\035\n\020validation_em" + + "ail\030\005 \001(\tB\003\340A\004\022D\n\033ads_personalization_en" + + "abled\030\006 \001(\0132\032.google.protobuf.BoolValueB" + + "\003\340A\005\022F\n\035campaign_data_sharing_enabled\030\007 " + + "\001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n\031" + + "cost_data_sharing_enabled\030\010 \001(\0132\032.google" + + ".protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\nCanalyti" + + "csadmin.googleapis.com/DisplayVideo360Ad" + + "vertiserLinkProposal\022iproperties/{proper" + + "ty}/displayVideo360AdvertiserLinkProposa" + + "ls/{display_video_360_advertiser_link_pr" + + "oposal}\"\374\001\n\031LinkProposalStatusDetails\022l\n" + + " link_proposal_initiating_product\030\001 \001(\0162" + + "=.google.analytics.admin.v1alpha.LinkPro" + + "posalInitiatingProductB\003\340A\003\022\034\n\017requestor" + + "_email\030\002 \001(\tB\003\340A\003\022S\n\023link_proposal_state" + + "\030\003 \001(\01621.google.analytics.admin.v1alpha." + + "LinkProposalStateB\003\340A\003\"\217\002\n\017ConversionEve" + + "nt\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name\030\002 \001(" + + "\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\026\n\tdeletable\030\004 \001(\010B" + + "\003\340A\003\022\023\n\006custom\030\005 \001(\010B\003\340A\003:m\352Aj\n-analytic" + + "sadmin.googleapis.com/ConversionEvent\0229p" + + "roperties/{property}/conversionEvents/{c" + + "onversion_event}\"\240\002\n\025GoogleSignalsSettin" + + "gs\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\005state\030\003 \001(\01622.g" + + "oogle.analytics.admin.v1alpha.GoogleSign" + + "alsState\022J\n\007consent\030\004 \001(\01624.google.analy" + + "tics.admin.v1alpha.GoogleSignalsConsentB" + + "\003\340A\003:e\352Ab\n3analyticsadmin.googleapis.com" + + "/GoogleSignalsSettings\022+properties/{prop" + + "erty}/googleSignalsSettings\"\237\003\n\017CustomDi" + + "mension\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_" + + "name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\t" + + "B\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022U\n\005scope" + + "\030\005 \001(\0162>.google.analytics.admin.v1alpha." + + "CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)" + + "\n\034disallow_ads_personalization\030\006 \001(\010B\003\340A" + + "\001\"F\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_U" + + "NSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002:Z\352AW\n-" + + "analyticsadmin.googleapis.com/CustomDime" + + "nsion\022&properties/{property}/customDimen" + + "sions\"\265\006\n\014CustomMetric\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\036\n\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014dis" + + "play_name\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(" + + "\tB\003\340A\001\022[\n\020measurement_unit\030\005 \001(\0162<.googl" + + "e.analytics.admin.v1alpha.CustomMetric.M" + + "easurementUnitB\003\340A\002\022O\n\005scope\030\006 \001(\01628.goo" + + "gle.analytics.admin.v1alpha.CustomMetric" + + ".MetricScopeB\006\340A\002\340A\005\022f\n\026restricted_metri" + + "c_type\030\010 \003(\0162A.google.analytics.admin.v1" + + "alpha.CustomMetric.RestrictedMetricTypeB" + + "\003\340A\001\"\267\001\n\017MeasurementUnit\022 \n\034MEASUREMENT_" + + "UNIT_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n\010CURR" + + "ENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKILOMETE" + + "RS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013\n\007SEC" + + "ONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013Metric" + + "Scope\022\034\n\030METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005E" + + "VENT\020\001\"_\n\024RestrictedMetricType\022&\n\"RESTRI" + + "CTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_D" + + "ATA\020\001\022\020\n\014REVENUE_DATA\020\002:T\352AQ\n*analyticsa" + + "dmin.googleapis.com/CustomMetric\022#proper" + + "ties/{property}/customMetrics\"\302\003\n\025DataRe" + + "tentionSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022e\n\024ev" + + "ent_data_retention\030\002 \001(\0162G.google.analyt" + + "ics.admin.v1alpha.DataRetentionSettings." + + "RetentionDuration\022\'\n\037reset_user_data_on_" + + "new_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration" + + "\022\"\n\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" + + "TWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWE" + + "NTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020" + + "\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin" + + ".googleapis.com/DataRetentionSettings\022+p" + + "roperties/{property}/dataRetentionSettin" + + "gs*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CATE" + + "GORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BU" + + "SINESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINAN" + + "CE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006" + + "TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAI" + + "NMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS" + + "_AND_LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n" + + "\005GAMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOM" + + "E_AND_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017" + + "\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ON" + + "LINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY" + + "\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020" + + "\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020" + + "\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*" + + "f\n\014ServiceLevel\022\035\n\031SERVICE_LEVEL_UNSPECI" + + "FIED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n" + + "\024GOOGLE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026" + + "ACTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SY" + + "STEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACT" + + "ION_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007U" + + "PDATED\020\002\022\013\n\007DELETED\020\003*\216\003\n\031ChangeHistoryR" + + "esourceType\022,\n(CHANGE_HISTORY_RESOURCE_T" + + "YPE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPER" + + "TY\020\002\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LI" + + "NK\020\007\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CON" + + "VERSION_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_" + + "SECRET\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM" + + "_METRIC\020\014\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%" + + "\n!DISPLAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n" + + "*DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPO" + + "SAL\020\017\022\017\n\013DATA_STREAM\020\022*s\n\022GoogleSignalsS" + "tate\022$\n GOOGLE_SIGNALS_STATE_UNSPECIFIED" + "\020\000\022\032\n\026GOOGLE_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE" + "_SIGNALS_DISABLED\020\002*\216\001\n\024GoogleSignalsCon" @@ -505,38 +466,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExpireTime", "Account", }); - internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor, - new java.lang.String[] { - "Name", "FirebaseAppId", "CreateTime", "UpdateTime", "PackageName", "DisplayName", - }); - internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_IosAppDataStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_IosAppDataStream_descriptor, - new java.lang.String[] { - "Name", "FirebaseAppId", "CreateTime", "UpdateTime", "BundleId", "DisplayName", - }); - internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor, - new java.lang.String[] { - "Name", - "MeasurementId", - "FirebaseAppId", - "CreateTime", - "UpdateTime", - "DefaultUri", - "DisplayName", - }); internal_static_google_analytics_admin_v1alpha_DataStream_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(2); internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DataStream_descriptor, @@ -582,7 +513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseAppId", "BundleId", }); internal_static_google_analytics_admin_v1alpha_UserLink_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(3); internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UserLink_descriptor, @@ -590,7 +521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", "DirectRoles", }); internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(4); internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor, @@ -598,7 +529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", "DirectRoles", "EffectiveRoles", }); internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(5); internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor, @@ -606,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Project", "CreateTime", }); internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(6); internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor, @@ -614,7 +545,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Snippet", }); internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(7); internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor, @@ -628,7 +559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorEmailAddress", }); internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(8); internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor, @@ -641,7 +572,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SharingWithOthersEnabled", }); internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(9); internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor, @@ -649,7 +580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Account", "DisplayName", "PropertySummaries", }); internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(10); internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, @@ -657,7 +588,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "DisplayName", }); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(11); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor, @@ -665,7 +596,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "SecretValue", }); internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(12); internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, @@ -673,7 +604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", }); internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(13); internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, @@ -690,9 +621,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Account", "Property", - "WebDataStream", - "AndroidAppDataStream", - "IosAppDataStream", "FirebaseLink", "GoogleAdsLink", "GoogleSignalsSettings", @@ -703,10 +631,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimension", "CustomMetric", "DataRetentionSettings", + "DataStream", "Resource", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(14); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor, @@ -719,7 +648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CostDataSharingEnabled", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor, @@ -734,7 +663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CostDataSharingEnabled", }); internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor, @@ -742,7 +671,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LinkProposalInitiatingProduct", "RequestorEmail", "LinkProposalState", }); internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(17); internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, @@ -750,7 +679,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EventName", "CreateTime", "Deletable", "Custom", }); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(18); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, @@ -758,7 +687,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "Consent", }); internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(19); internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, @@ -771,15 +700,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisallowAdsPersonalization", }); internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor, new java.lang.String[] { - "Name", "ParameterName", "DisplayName", "Description", "MeasurementUnit", "Scope", + "Name", + "ParameterName", + "DisplayName", + "Description", + "MeasurementUnit", + "Scope", + "RestrictedMetricType", }); internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor, diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java deleted file mode 100644 index c829e275..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java +++ /dev/null @@ -1,1099 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for UpdateAndroidAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} - */ -public final class UpdateAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) - UpdateAndroidAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateAndroidAppDataStreamRequest.newBuilder() to construct. - private UpdateAndroidAppDataStreamRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateAndroidAppDataStreamRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateAndroidAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateAndroidAppDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; - if (androidAppDataStream_ != null) { - subBuilder = androidAppDataStream_.toBuilder(); - } - androidAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(androidAppDataStream_); - androidAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.Builder.class); - } - - public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - /** - * - * - *
-   * Required. The android app stream to update.
-   * The `name` field is used to identify the android app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - @java.lang.Override - public boolean hasAndroidAppDataStream() { - return androidAppDataStream_ != null; - } - /** - * - * - *
-   * Required. The android app stream to update.
-   * The `name` field is used to identify the android app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } - /** - * - * - *
-   * Required. The android app stream to update.
-   * The `name` field is used to identify the android app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - return getAndroidAppDataStream(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (androidAppDataStream_ != null) { - output.writeMessage(1, getAndroidAppDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (androidAppDataStream_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAndroidAppDataStream()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) obj; - - if (hasAndroidAppDataStream() != other.hasAndroidAppDataStream()) return false; - if (hasAndroidAppDataStream()) { - if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAndroidAppDataStream()) { - hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppDataStream().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest 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.UpdateAndroidAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest 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.UpdateAndroidAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest 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.UpdateAndroidAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest 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.UpdateAndroidAppDataStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - 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.UpdateAndroidAppDataStreamRequest 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.UpdateAndroidAppDataStreamRequest 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.UpdateAndroidAppDataStreamRequest 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 UpdateAndroidAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = null; - } else { - androidAppDataStream_ = null; - androidAppDataStreamBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(this); - if (androidAppDataStreamBuilder_ == null) { - result.androidAppDataStream_ = androidAppDataStream_; - } else { - result.androidAppDataStream_ = androidAppDataStreamBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - .getDefaultInstance()) return this; - if (other.hasAndroidAppDataStream()) { - mergeAndroidAppDataStream(other.getAndroidAppDataStream()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - androidAppDataStreamBuilder_; - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - public boolean hasAndroidAppDataStream() { - return androidAppDataStreamBuilder_ != null || androidAppDataStream_ != null; - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } else { - return androidAppDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - androidAppDataStream_ = value; - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = builderForValue.build(); - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (androidAppDataStream_ != null) { - androidAppDataStream_ = - com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( - androidAppDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - androidAppDataStream_ = value; - } - onChanged(); - } else { - androidAppDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = null; - onChanged(); - } else { - androidAppDataStream_ = null; - androidAppDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - getAndroidAppDataStreamBuilder() { - - onChanged(); - return getAndroidAppDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - if (androidAppDataStreamBuilder_ != null) { - return androidAppDataStreamBuilder_.getMessageOrBuilder(); - } else { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } - } - /** - * - * - *
-     * Required. The android app stream to update.
-     * The `name` field is used to identify the android app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - getAndroidAppDataStreamFieldBuilder() { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( - getAndroidAppDataStream(), getParentForChildren(), isClean()); - androidAppDataStream_ = null; - } - return androidAppDataStreamBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAndroidAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateAndroidAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java deleted file mode 100644 index ecc55b89..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateAndroidAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The android app stream to update.
-   * The `name` field is used to identify the android app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - boolean hasAndroidAppDataStream(); - /** - * - * - *
-   * Required. The android app stream to update.
-   * The `name` field is used to identify the android app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); - /** - * - * - *
-   * Required. The android app stream to update.
-   * The `name` field is used to identify the android app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java deleted file mode 100644 index 93543ad1..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java +++ /dev/null @@ -1,1091 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for UpdateIosAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} - */ -public final class UpdateIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) - UpdateIosAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateIosAppDataStreamRequest.newBuilder() to construct. - private UpdateIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateIosAppDataStreamRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateIosAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateIosAppDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; - if (iosAppDataStream_ != null) { - subBuilder = iosAppDataStream_.toBuilder(); - } - iosAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(iosAppDataStream_); - iosAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.Builder.class); - } - - public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - /** - * - * - *
-   * Required. The iOS app stream to update.
-   * The `name` field is used to identify the iOS app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - @java.lang.Override - public boolean hasIosAppDataStream() { - return iosAppDataStream_ != null; - } - /** - * - * - *
-   * Required. The iOS app stream to update.
-   * The `name` field is used to identify the iOS app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } - /** - * - * - *
-   * Required. The iOS app stream to update.
-   * The `name` field is used to identify the iOS app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - return getIosAppDataStream(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (iosAppDataStream_ != null) { - output.writeMessage(1, getIosAppDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (iosAppDataStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIosAppDataStream()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) obj; - - if (hasIosAppDataStream() != other.hasIosAppDataStream()) return false; - if (hasIosAppDataStream()) { - if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIosAppDataStream()) { - hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getIosAppDataStream().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest 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.UpdateIosAppDataStreamRequest 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 UpdateIosAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = null; - } else { - iosAppDataStream_ = null; - iosAppDataStreamBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(this); - if (iosAppDataStreamBuilder_ == null) { - result.iosAppDataStream_ = iosAppDataStream_; - } else { - result.iosAppDataStream_ = iosAppDataStreamBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest.getDefaultInstance()) - return this; - if (other.hasIosAppDataStream()) { - mergeIosAppDataStream(other.getIosAppDataStream()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - iosAppDataStreamBuilder_; - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - public boolean hasIosAppDataStream() { - return iosAppDataStreamBuilder_ != null || iosAppDataStream_ != null; - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } else { - return iosAppDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setIosAppDataStream(com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - iosAppDataStream_ = value; - onChanged(); - } else { - iosAppDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = builderForValue.build(); - onChanged(); - } else { - iosAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (iosAppDataStream_ != null) { - iosAppDataStream_ = - com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(iosAppDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - iosAppDataStream_ = value; - } - onChanged(); - } else { - iosAppDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = null; - onChanged(); - } else { - iosAppDataStream_ = null; - iosAppDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder - getIosAppDataStreamBuilder() { - - onChanged(); - return getIosAppDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - if (iosAppDataStreamBuilder_ != null) { - return iosAppDataStreamBuilder_.getMessageOrBuilder(); - } else { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } - } - /** - * - * - *
-     * Required. The iOS app stream to update.
-     * The `name` field is used to identify the iOS app stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - getIosAppDataStreamFieldBuilder() { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( - getIosAppDataStream(), getParentForChildren(), isClean()); - iosAppDataStream_ = null; - } - return iosAppDataStreamBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateIosAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateIosAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java deleted file mode 100644 index 6eaa9606..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateIosAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The iOS app stream to update.
-   * The `name` field is used to identify the iOS app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - boolean hasIosAppDataStream(); - /** - * - * - *
-   * Required. The iOS app stream to update.
-   * The `name` field is used to identify the iOS app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); - /** - * - * - *
-   * Required. The iOS app stream to update.
-   * The `name` field is used to identify the iOS app stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java deleted file mode 100644 index d28636dc..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java +++ /dev/null @@ -1,1083 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for UpdateWebDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} - */ -public final class UpdateWebDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) - UpdateWebDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateWebDataStreamRequest.newBuilder() to construct. - private UpdateWebDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateWebDataStreamRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateWebDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateWebDataStreamRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; - if (webDataStream_ != null) { - subBuilder = webDataStream_.toBuilder(); - } - webDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.WebDataStream.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(webDataStream_); - webDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.Builder.class); - } - - public static final int WEB_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; - /** - * - * - *
-   * Required. The web stream to update.
-   * The `name` field is used to identify the web stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the webDataStream field is set. - */ - @java.lang.Override - public boolean hasWebDataStream() { - return webDataStream_ != null; - } - /** - * - * - *
-   * Required. The web stream to update.
-   * The `name` field is used to identify the web stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The webDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { - return webDataStream_ == null - ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() - : webDataStream_; - } - /** - * - * - *
-   * Required. The web stream to update.
-   * The `name` field is used to identify the web stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { - return getWebDataStream(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (webDataStream_ != null) { - output.writeMessage(1, getWebDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (webDataStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWebDataStream()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest other = - (com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) obj; - - if (hasWebDataStream() != other.hasWebDataStream()) return false; - if (hasWebDataStream()) { - if (!getWebDataStream().equals(other.getWebDataStream())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWebDataStream()) { - hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getWebDataStream().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest 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.UpdateWebDataStreamRequest 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 UpdateWebDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateWebDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.class, - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (webDataStreamBuilder_ == null) { - webDataStream_ = null; - } else { - webDataStream_ = null; - webDataStreamBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateWebDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest build() { - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest result = - new com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(this); - if (webDataStreamBuilder_ == null) { - result.webDataStream_ = webDataStream_; - } else { - result.webDataStream_ = webDataStreamBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest.getDefaultInstance()) - return this; - if (other.hasWebDataStream()) { - mergeWebDataStream(other.getWebDataStream()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.WebDataStream webDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - webDataStreamBuilder_; - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the webDataStream field is set. - */ - public boolean hasWebDataStream() { - return webDataStreamBuilder_ != null || webDataStream_ != null; - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The webDataStream. - */ - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { - if (webDataStreamBuilder_ == null) { - return webDataStream_ == null - ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() - : webDataStream_; - } else { - return webDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - webDataStream_ = value; - onChanged(); - } else { - webDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setWebDataStream( - com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { - if (webDataStreamBuilder_ == null) { - webDataStream_ = builderForValue.build(); - onChanged(); - } else { - webDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { - if (webDataStreamBuilder_ == null) { - if (webDataStream_ != null) { - webDataStream_ = - com.google.analytics.admin.v1alpha.WebDataStream.newBuilder(webDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - webDataStream_ = value; - } - onChanged(); - } else { - webDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearWebDataStream() { - if (webDataStreamBuilder_ == null) { - webDataStream_ = null; - onChanged(); - } else { - webDataStream_ = null; - webDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { - - onChanged(); - return getWebDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { - if (webDataStreamBuilder_ != null) { - return webDataStreamBuilder_.getMessageOrBuilder(); - } else { - return webDataStream_ == null - ? com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance() - : webDataStream_; - } - } - /** - * - * - *
-     * Required. The web stream to update.
-     * The `name` field is used to identify the web stream to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> - getWebDataStreamFieldBuilder() { - if (webDataStreamBuilder_ == null) { - webDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.WebDataStream, - com.google.analytics.admin.v1alpha.WebDataStream.Builder, - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( - getWebDataStream(), getParentForChildren(), isClean()); - webDataStream_ = null; - } - return webDataStreamBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * Required. The list of fields to be updated. Field names must be in snake case
-     * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-     * the entire entity, use one path with the string "*" to match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWebDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateWebDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java deleted file mode 100644 index e0f3c21c..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateWebDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateWebDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The web stream to update.
-   * The `name` field is used to identify the web stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the webDataStream field is set. - */ - boolean hasWebDataStream(); - /** - * - * - *
-   * Required. The web stream to update.
-   * The `name` field is used to identify the web stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The webDataStream. - */ - com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); - /** - * - * - *
-   * Required. The web stream to update.
-   * The `name` field is used to identify the web stream to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * Required. The list of fields to be updated. Field names must be in snake case
-   * (e.g., "field_to_update"). Omitted fields will not be updated. To replace
-   * the entire entity, use one path with the string "*" to match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java deleted file mode 100644 index d8c53695..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java +++ /dev/null @@ -1,1979 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * A resource message representing a Google Analytics web stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.WebDataStream} - */ -public final class WebDataStream extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.WebDataStream) - WebDataStreamOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebDataStream.newBuilder() to construct. - private WebDataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WebDataStream() { - name_ = ""; - measurementId_ = ""; - firebaseAppId_ = ""; - defaultUri_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WebDataStream(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WebDataStream( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - measurementId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - firebaseAppId_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - defaultUri_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.WebDataStream.class, - com.google.analytics.admin.v1alpha.WebDataStream.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/1000/webDataStreams/2000"
-   * 
- * - * 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 Data Stream.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/1000/webDataStreams/2000"
-   * 
- * - * 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 MEASUREMENT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object measurementId_; - /** - * - * - *
-   * Output only. Analytics "Measurement ID", without the "G-" prefix.
-   * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-   * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - @java.lang.Override - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - 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(); - measurementId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Analytics "Measurement ID", without the "G-" prefix.
-   * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-   * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object firebaseAppId_; - /** - * - * - *
-   * Output only. ID of the corresponding web app in Firebase, if any.
-   * This ID can change if the web app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - 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(); - firebaseAppId_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. ID of the corresponding web app in Firebase, if any.
-   * This ID can change if the web app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int DEFAULT_URI_FIELD_NUMBER = 6; - private volatile java.lang.Object defaultUri_; - /** - * - * - *
-   * Immutable. Domain name of the web app being measured, or empty.
-   * Example: "http://www.google.com", "https://www.google.com"
-   * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - @java.lang.Override - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - 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(); - defaultUri_ = s; - return s; - } - } - /** - * - * - *
-   * Immutable. Domain name of the web app being measured, or empty.
-   * Example: "http://www.google.com", "https://www.google.com"
-   * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firebaseAppId_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, defaultUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firebaseAppId_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, defaultUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.WebDataStream)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.WebDataStream other = - (com.google.analytics.admin.v1alpha.WebDataStream) obj; - - if (!getName().equals(other.getName())) return false; - if (!getMeasurementId().equals(other.getMeasurementId())) return false; - if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getDefaultUri().equals(other.getDefaultUri())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + MEASUREMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementId().hashCode(); - hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + DEFAULT_URI_FIELD_NUMBER; - hash = (53 * hash) + getDefaultUri().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.WebDataStream parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.WebDataStream 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.WebDataStream parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.WebDataStream 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.WebDataStream parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.WebDataStream 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.WebDataStream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.WebDataStream 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.WebDataStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.WebDataStream 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.WebDataStream 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.WebDataStream 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.WebDataStream prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource message representing a Google Analytics web stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.WebDataStream} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.WebDataStream) - com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_WebDataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_WebDataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.WebDataStream.class, - com.google.analytics.admin.v1alpha.WebDataStream.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.WebDataStream.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - measurementId_ = ""; - - firebaseAppId_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - defaultUri_ = ""; - - displayName_ = ""; - - 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_WebDataStream_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream build() { - com.google.analytics.admin.v1alpha.WebDataStream result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream buildPartial() { - com.google.analytics.admin.v1alpha.WebDataStream result = - new com.google.analytics.admin.v1alpha.WebDataStream(this); - result.name_ = name_; - result.measurementId_ = measurementId_; - result.firebaseAppId_ = firebaseAppId_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.defaultUri_ = defaultUri_; - result.displayName_ = displayName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.WebDataStream) { - return mergeFrom((com.google.analytics.admin.v1alpha.WebDataStream) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.WebDataStream other) { - if (other == com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getMeasurementId().isEmpty()) { - measurementId_ = other.measurementId_; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getDefaultUri().isEmpty()) { - defaultUri_ = other.defaultUri_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.WebDataStream parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.admin.v1alpha.WebDataStream) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/1000/webDataStreams/2000"
-     * 
- * - * 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 Data Stream.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/1000/webDataStreams/2000"
-     * 
- * - * 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 Data Stream.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/1000/webDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/1000/webDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/webDataStreams/{stream_id}
-     * Example: "properties/1000/webDataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object measurementId_ = ""; - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - public com.google.protobuf.ByteString getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - measurementId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearMeasurementId() { - - measurementId_ = getDefaultInstance().getMeasurementId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Analytics "Measurement ID", without the "G-" prefix.
-     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-     * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - measurementId_ = value; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - firebaseAppId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - firebaseAppId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object defaultUri_ = ""; - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - public com.google.protobuf.ByteString getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultUri() { - - defaultUri_ = getDefaultInstance().getDefaultUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - @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.WebDataStream) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.WebDataStream) - private static final com.google.analytics.admin.v1alpha.WebDataStream DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.WebDataStream(); - } - - public static com.google.analytics.admin.v1alpha.WebDataStream getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebDataStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WebDataStream(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.WebDataStream getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java deleted file mode 100644 index 6835bd79..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.admin.v1alpha; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class WebDataStreamName implements ResourceName { - private static final PathTemplate PROPERTY_WEB_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/webDataStreams/{web_data_stream}"); - private volatile Map fieldValuesMap; - private final String property; - private final String webDataStream; - - @Deprecated - protected WebDataStreamName() { - property = null; - webDataStream = null; - } - - private WebDataStreamName(Builder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); - } - - public String getProperty() { - return property; - } - - public String getWebDataStream() { - return webDataStream; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static WebDataStreamName of(String property, String webDataStream) { - return newBuilder().setProperty(property).setWebDataStream(webDataStream).build(); - } - - public static String format(String property, String webDataStream) { - return newBuilder().setProperty(property).setWebDataStream(webDataStream).build().toString(); - } - - public static WebDataStreamName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROPERTY_WEB_DATA_STREAM.validatedMatch( - formattedString, "WebDataStreamName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("web_data_stream")); - } - - 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 (WebDataStreamName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROPERTY_WEB_DATA_STREAM.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (property != null) { - fieldMapBuilder.put("property", property); - } - if (webDataStream != null) { - fieldMapBuilder.put("web_data_stream", webDataStream); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROPERTY_WEB_DATA_STREAM.instantiate( - "property", property, "web_data_stream", webDataStream); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - WebDataStreamName that = ((WebDataStreamName) o); - return Objects.equals(this.property, that.property) - && Objects.equals(this.webDataStream, that.webDataStream); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(property); - h *= 1000003; - h ^= Objects.hashCode(webDataStream); - return h; - } - - /** Builder for properties/{property}/webDataStreams/{web_data_stream}. */ - public static class Builder { - private String property; - private String webDataStream; - - protected Builder() {} - - public String getProperty() { - return property; - } - - public String getWebDataStream() { - return webDataStream; - } - - public Builder setProperty(String property) { - this.property = property; - return this; - } - - public Builder setWebDataStream(String webDataStream) { - this.webDataStream = webDataStream; - return this; - } - - private Builder(WebDataStreamName webDataStreamName) { - this.property = webDataStreamName.property; - this.webDataStream = webDataStreamName.webDataStream; - } - - public WebDataStreamName build() { - return new WebDataStreamName(this); - } - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java deleted file mode 100644 index 921c4fc2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamOrBuilder.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface WebDataStreamOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.WebDataStream) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/1000/webDataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/webDataStreams/{stream_id}
-   * Example: "properties/1000/webDataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Output only. Analytics "Measurement ID", without the "G-" prefix.
-   * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-   * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The measurementId. - */ - java.lang.String getMeasurementId(); - /** - * - * - *
-   * Output only. Analytics "Measurement ID", without the "G-" prefix.
-   * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
-   * 
- * - * string measurement_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for measurementId. - */ - com.google.protobuf.ByteString getMeasurementIdBytes(); - - /** - * - * - *
-   * Output only. ID of the corresponding web app in Firebase, if any.
-   * This ID can change if the web app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - * - * - *
-   * Output only. ID of the corresponding web app in Firebase, if any.
-   * This ID can change if the web app is deleted and recreated.
-   * 
- * - * string firebase_app_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString getFirebaseAppIdBytes(); - - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Immutable. Domain name of the web app being measured, or empty.
-   * Example: "http://www.google.com", "https://www.google.com"
-   * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The defaultUri. - */ - java.lang.String getDefaultUri(); - /** - * - * - *
-   * Immutable. Domain name of the web app being measured, or empty.
-   * Example: "http://www.google.com", "https://www.google.com"
-   * 
- * - * string default_uri = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for defaultUri. - */ - com.google.protobuf.ByteString getDefaultUriBytes(); - - /** - * - * - *
-   * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index ff367e3f..00fe8546 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. @@ -288,123 +288,6 @@ service AnalyticsAdminService { }; } - // Lookup for a single WebDataStream - rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a web stream on a property. - rpc DeleteWebDataStream(DeleteWebDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/webDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a web stream on a property. - rpc UpdateWebDataStream(UpdateWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}" - body: "web_data_stream" - }; - option (google.api.method_signature) = "web_data_stream,update_mask"; - } - - // Creates a web stream with the specified location and attributes. - rpc CreateWebDataStream(CreateWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/webDataStreams" - body: "web_data_stream" - }; - option (google.api.method_signature) = "parent,web_data_stream"; - } - - // Returns child web data streams under the specified parent property. - // - // Web data streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant web data streams are found. - rpc ListWebDataStreams(ListWebDataStreamsRequest) returns (ListWebDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/webDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single IosAppDataStream - rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes an iOS app stream on a property. - rpc DeleteIosAppDataStream(DeleteIosAppDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an iOS app stream on a property. - rpc UpdateIosAppDataStream(UpdateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "ios_app_data_stream,update_mask"; - } - - // Returns child iOS app data streams under the specified parent property. - // - // iOS app data streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant iOS app data streams are found. - rpc ListIosAppDataStreams(ListIosAppDataStreamsRequest) returns (ListIosAppDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single AndroidAppDataStream - rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes an android app stream on a property. - rpc DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an android app stream on a property. - rpc UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "android_app_data_stream,update_mask"; - } - - // Returns child android app streams under the specified parent property. - // - // Android app streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant android app streams are found. - rpc ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest) returns (ListAndroidAppDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - // Creates a FirebaseLink. // // Properties can have at most one FirebaseLink. @@ -437,7 +320,7 @@ service AnalyticsAdminService { // Site Tags are immutable singletons. rpc GetGlobalSiteTag(GetGlobalSiteTagRequest) returns (GlobalSiteTag) { option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}" + get: "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}" }; option (google.api.method_signature) = "name"; } @@ -488,13 +371,7 @@ service AnalyticsAdminService { // Lookup for a single "GA4" MeasurementProtocolSecret. rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" - additional_bindings { - get: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - } - additional_bindings { - get: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - } + get: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" }; option (google.api.method_signature) = "name"; } @@ -503,13 +380,7 @@ service AnalyticsAdminService { // Property. rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { option (google.api.http) = { - get: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" - additional_bindings { - get: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" - } - additional_bindings { - get: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" - } + get: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" }; option (google.api.method_signature) = "parent"; } @@ -517,16 +388,8 @@ service AnalyticsAdminService { // Creates a measurement protocol secret. rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { option (google.api.http) = { - post: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + post: "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets" body: "measurement_protocol_secret" - additional_bindings { - post: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" - body: "measurement_protocol_secret" - } - additional_bindings { - post: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" - body: "measurement_protocol_secret" - } }; option (google.api.method_signature) = "parent,measurement_protocol_secret"; } @@ -534,13 +397,7 @@ service AnalyticsAdminService { // Deletes target MeasurementProtocolSecret. rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" - additional_bindings { - delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - } - additional_bindings { - delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - } + delete: "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" }; option (google.api.method_signature) = "name"; } @@ -548,16 +405,8 @@ service AnalyticsAdminService { // Updates a measurement protocol secret. rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { option (google.api.http) = { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}" body: "measurement_protocol_secret" - additional_bindings { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" - body: "measurement_protocol_secret" - } - additional_bindings { - patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" - body: "measurement_protocol_secret" - } }; option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; } @@ -983,14 +832,17 @@ message GetPropertyRequest { message ListPropertiesRequest { // Required. An expression for filtering the results of the request. // Fields eligible for filtering are: - // `parent:`(The resource name of the parent account) or + // `parent:`(The resource name of the parent account/property) or + // `ancestor:`(The resource name of the parent account) or // `firebase_project:`(The id or number of the linked firebase project). // Some examples of filters: // // ``` // | Filter | Description | // |-----------------------------|-------------------------------------------| - // | parent:accounts/123 | The account with account id: 123. | + // | parent:accounts/123 | The account with account id: 123. | + // | parent:properties/123 | The property with property id: 123. | + // | ancestor:accounts/123 | The account with account id: 123. | // | firebase_project:project-id | The firebase project with id: project-id. | // | firebase_project:123 | The firebase project with number: 123. | // ``` @@ -1278,239 +1130,6 @@ message BatchDeleteUserLinksRequest { repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for GetWebDataStream RPC. -message GetWebDataStreamRequest { - // Required. The name of the web data stream to lookup. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/123/webDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for DeleteWebDataStream RPC. -message DeleteWebDataStreamRequest { - // Required. The name of the web data stream to delete. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/123/webDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for UpdateWebDataStream RPC. -message UpdateWebDataStreamRequest { - // Required. The web stream to update. - // The `name` field is used to identify the web stream to be updated. - WebDataStream web_data_stream = 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 CreateWebDataStream RPC. -message CreateWebDataStreamRequest { - // Required. The web stream to create. - WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this web data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for ListWebDataStreams RPC. -message ListWebDataStreamsRequest { - // Required. The name of the parent property. - // For example, to list results of web streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/WebDataStream" - } - ]; - - // 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 `ListWebDataStreams` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListWebDataStreams` must - // match the call that provided the page token. - string page_token = 3; -} - -// Request message for ListWebDataStreams RPC. -message ListWebDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated WebDataStream web_data_streams = 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 GetIosAppDataStream RPC. -message GetIosAppDataStreamRequest { - // Required. The name of the iOS app data stream to lookup. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/123/iosAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for DeleteIosAppDataStream RPC. -message DeleteIosAppDataStreamRequest { - // Required. The name of the iOS app data stream to delete. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/123/iosAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for UpdateIosAppDataStream RPC. -message UpdateIosAppDataStreamRequest { - // Required. The iOS app stream to update. - // The `name` field is used to identify the iOS app stream to be updated. - IosAppDataStream ios_app_data_stream = 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 ListIosAppDataStreams RPC. -message ListIosAppDataStreamsRequest { - // Required. The name of the parent property. - // For example, to list results of app streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; - - // 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 `ListIosAppDataStreams` - // call. Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListIosAppDataStreams` - // must match the call that provided the page token. - string page_token = 3; -} - -// Request message for ListIosAppDataStreams RPC. -message ListIosAppDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated IosAppDataStream ios_app_data_streams = 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 GetAndroidAppDataStream RPC. -message GetAndroidAppDataStreamRequest { - // Required. The name of the android app data stream to lookup. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/123/androidAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for DeleteAndroidAppDataStream RPC. -message DeleteAndroidAppDataStreamRequest { - // Required. The name of the android app data stream to delete. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/123/androidAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for UpdateAndroidAppDataStream RPC. -message UpdateAndroidAppDataStreamRequest { - // Required. The android app stream to update. - // The `name` field is used to identify the android app stream to be updated. - AndroidAppDataStream android_app_data_stream = 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 ListAndroidAppDataStreams RPC. -message ListAndroidAppDataStreamsRequest { - // Required. The name of the parent property. - // For example, to limit results to app streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; - - // 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 call. Provide this to - // retrieve the subsequent page. - // When paginating, all other parameters provided to - // `ListAndroidAppDataStreams` must match the call that provided the page - // token. - string page_token = 3; -} - -// Request message for ListAndroidDataStreams RPC. -message ListAndroidAppDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated AndroidAppDataStream android_app_data_streams = 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 CreateFirebaseLink RPC message CreateFirebaseLinkRequest { // Required. Format: properties/{property_id} @@ -1578,8 +1197,8 @@ message ListFirebaseLinksResponse { message GetGlobalSiteTagRequest { // Required. The name of the site tag to lookup. // Note that site tags are singletons and do not have unique IDs. - // Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag - // Example: "properties/123/webDataStreams/456/globalSiteTag" + // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + // Example: "properties/123/dataStreams/456/globalSiteTag" string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1784,9 +1403,7 @@ message SearchChangeHistoryEventsResponse { message GetMeasurementProtocolSecretRequest { // Required. The name of the measurement protocol secret to lookup. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - // Note: Any type of stream (WebDataStream, IosAppDataStream, - // AndroidAppDataStream) may be a parent. + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1798,9 +1415,7 @@ message GetMeasurementProtocolSecretRequest { // Request message for CreateMeasurementProtocolSecret RPC message CreateMeasurementProtocolSecretRequest { // Required. The parent resource where this secret will be created. - // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - // may be a parent. - // Format: properties/{property}/webDataStreams/{webDataStream} + // Format: properties/{property}/dataStreams/{dataStream} string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1816,9 +1431,7 @@ message CreateMeasurementProtocolSecretRequest { message DeleteMeasurementProtocolSecretRequest { // Required. The name of the MeasurementProtocolSecret to delete. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - // Note: Any type of stream (WebDataStream, IosAppDataStream, - // AndroidAppDataStream) may be a parent. + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1839,10 +1452,8 @@ message UpdateMeasurementProtocolSecretRequest { // Request message for ListMeasurementProtocolSecret RPC message ListMeasurementProtocolSecretsRequest { // Required. The resource name of the parent stream. - // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) - // may be a parent. // Format: - // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index 4820ec8c..cbb624f1 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// 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. @@ -164,15 +164,6 @@ enum ChangeHistoryResourceType { // Property resource PROPERTY = 2; - // WebDataStream resource - WEB_DATA_STREAM = 3; - - // AndroidAppDataStream resource - ANDROID_APP_DATA_STREAM = 4; - - // IosAppDataStream resource - IOS_APP_DATA_STREAM = 5; - // FirebaseLink resource FIREBASE_LINK = 6; @@ -202,6 +193,9 @@ enum ChangeHistoryResourceType { // DisplayVideo360AdvertiserLinkProposal resource DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + + // DataStream resource + DATA_STREAM = 18; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -382,109 +376,6 @@ message Property { ]; } -// A resource message representing a Google Analytics Android app stream. -message AndroidAppDataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - pattern: "properties/{property}/androidAppDataStreams/{android_app_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/1000/androidAppDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding Android app in Firebase, if any. - // This ID can change if the Android app is deleted and recreated. - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The package name for the app being measured. - // Example: "com.example.myandroidapp" - string package_name = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Human-readable display name for the Data Stream. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 6; -} - -// A resource message representing a Google Analytics IOS app stream. -message IosAppDataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/IosAppDataStream" - pattern: "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/1000/iosAppDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding iOS app in Firebase, if any. - // This ID can change if the iOS app is deleted and recreated. - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. Immutable. The Apple App Store Bundle ID for the app - // Example: "com.example.myiosapp" - string bundle_id = 5 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.field_behavior) = REQUIRED - ]; - - // Human-readable display name for the Data Stream. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 6; -} - -// A resource message representing a Google Analytics web stream. -message WebDataStream { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/WebDataStream" - pattern: "properties/{property}/webDataStreams/{web_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/1000/webDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding web app in Firebase, if any. - // This ID can change if the web app is deleted and recreated. - string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Domain name of the web app being measured, or empty. - // Example: "http://www.google.com", "https://www.google.com" - string default_uri = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Required. Human-readable display name for the Data Stream. - // - // The max allowed display name length is 255 UTF-16 code units. - string display_name = 7 [(google.api.field_behavior) = REQUIRED]; -} - // A resource message representing a data stream. message DataStream { option (google.api.resource) = { @@ -668,15 +559,16 @@ message FirebaseLink { } // Read-only resource with the tag for sending data from a website to a -// WebDataStream. +// DataStream. Only present for web DataStream resources. message GlobalSiteTag { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GlobalSiteTag" - pattern: "properties/{property}/globalSiteTag" + pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag" }; // Output only. Resource name for this GlobalSiteTag resource. - // Format: properties/{propertyId}/globalSiteTag + // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag + // Example: "properties/123/dataStreams/456/globalSiteTag" string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of @@ -796,7 +688,7 @@ message PropertySummary { message MeasurementProtocolSecret { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" - pattern: "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" }; // Output only. Resource name of this secret. This secret may be a child of any type of @@ -854,15 +746,6 @@ message ChangeHistoryChange { // A snapshot of a Property resource in change history. Property property = 2; - // A snapshot of a WebDataStream resource in change history. - WebDataStream web_data_stream = 3; - - // A snapshot of an AndroidAppDataStream resource in change history. - AndroidAppDataStream android_app_data_stream = 4; - - // A snapshot of an IosAppDataStream resource in change history. - IosAppDataStream ios_app_data_stream = 5; - // A snapshot of a FirebaseLink resource in change history. FirebaseLink firebase_link = 6; @@ -894,6 +777,9 @@ message ChangeHistoryChange { // A snapshot of a data retention settings resource in change history. DataRetentionSettings data_retention_settings = 15; + + // A snapshot of a DataStream resource in change history. + DataStream data_stream = 18; } } @@ -1176,6 +1062,19 @@ message CustomMetric { EVENT = 1; } + // Labels that mark the data in this custom metric as data that should be + // restricted to specific users. + enum RestrictedMetricType { + // Type unknown or unspecified. + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + + // Metric reports cost data. + COST_DATA = 1; + + // Metric reports revenue data. + REVENUE_DATA = 2; + } + // Output only. Resource name for this CustomMetric resource. // Format: properties/{property}/customMetrics/{customMetric} string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1211,6 +1110,11 @@ message CustomMetric { (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE ]; + + // Optional. Types of restricted data that this metric may contain. Required for metrics + // with CURRENCY measurement unit. Must be empty for metrics with a + // non-CURRENCY measurement unit. + repeated RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; } // Settings values for data retention. This is a singleton resource. diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 09c809c7..b25e607d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-admin - 0.8.2 + 0.8.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fca6f9ef..fec87b1e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-admin - 0.8.4 + 0.9.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3bb46b1b..8691cb8c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.analytics google-analytics-admin - 0.8.4 + 0.9.0 diff --git a/versions.txt b/versions.txt index 55f4eb6b..fa4aa1ca 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-admin:0.8.4:0.8.4 -grpc-google-analytics-admin-v1alpha:0.8.4:0.8.4 -proto-google-analytics-admin-v1alpha:0.8.4:0.8.4 +google-analytics-admin:0.9.0:0.9.0 +grpc-google-analytics-admin-v1alpha:0.9.0:0.9.0 +proto-google-analytics-admin-v1alpha:0.9.0:0.9.0