From e9fd55aef92171c6f6a0a16eb29be085d5a64bd6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 14 Jan 2022 17:38:14 +0000 Subject: [PATCH] feat: add the `AcknowledgeUserDataCollection` operation which acknowledges the terms of user data collection for the specified property (#323) feat: add the new resource type `DataStream`, which is planned to eventually replace `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources fix!: remove `GetEnhancedMeasurementSettings`, `UpdateEnhancedMeasurementSettingsRequest`, `UpdateEnhancedMeasurementSettingsRequest` operations from the API feat: add `CreateDataStream`, `DeleteDataStream`, `UpdateDataStream`, `ListDataStreams` operations to support the new `DataStream` resource feat: add `DISPLAY_VIDEO_360_ADVERTISER_LINK`, `DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL` fields to `ChangeHistoryResourceType` enum feat: add the `account` field to the `Property` type docs: update the documentation with a new list of valid values for `UserLink.direct_roles` field - [ ] Regenerate this pull request now. PiperOrigin-RevId: 416888961 Source-Link: https://github.com/googleapis/googleapis/commit/54861b49348afd2ae7dada7b857bacdcb6f22fe3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0f16b9ae48611d9836acdb37e9f167419a8ef096 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGYxNmI5YWU0ODYxMWQ5ODM2YWNkYjM3ZTlmMTY3NDE5YThlZjA5NiJ9 --- .../clirr-ignored-differences.xml | 10 + .../v1alpha/AnalyticsAdminServiceClient.java | 897 ++- .../AnalyticsAdminServiceSettings.java | 100 +- .../admin/v1alpha/gapic_metadata.json | 24 +- .../stub/AnalyticsAdminServiceStub.java | 56 +- .../AnalyticsAdminServiceStubSettings.java | 290 +- .../stub/GrpcAnalyticsAdminServiceStub.java | 300 +- .../AnalyticsAdminServiceClientTest.java | 586 +- .../MockAnalyticsAdminServiceImpl.java | 171 +- .../clirr-ignored-differences.xml | 6 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 1122 +++- .../clirr-ignored-differences.xml | 4 + .../AcknowledgeUserDataCollectionRequest.java | 889 +++ ...dgeUserDataCollectionRequestOrBuilder.java | 91 + ...AcknowledgeUserDataCollectionResponse.java | 475 ++ ...geUserDataCollectionResponseOrBuilder.java | 24 + .../admin/v1alpha/AnalyticsAdminProto.java | 1589 ++--- .../admin/v1alpha/AuditUserLink.java | 52 +- .../admin/v1alpha/AuditUserLinkOrBuilder.java | 16 +- .../v1alpha/ChangeHistoryResourceType.java | 44 + .../v1alpha/CreateDataStreamRequest.java | 953 +++ .../CreateDataStreamRequestOrBuilder.java | 95 + .../analytics/admin/v1alpha/DataStream.java | 5770 +++++++++++++++++ ...tSettingsName.java => DataStreamName.java} | 85 +- .../admin/v1alpha/DataStreamOrBuilder.java | 315 + ...uest.java => DeleteDataStreamRequest.java} | 200 +- ... => DeleteDataStreamRequestOrBuilder.java} | 16 +- .../DisplayVideo360AdvertiserLink.java | 24 +- ...isplayVideo360AdvertiserLinkOrBuilder.java | 6 +- ...DisplayVideo360AdvertiserLinkProposal.java | 28 +- ...deo360AdvertiserLinkProposalOrBuilder.java | 6 +- .../v1alpha/EnhancedMeasurementSettings.java | 1888 ------ .../EnhancedMeasurementSettingsOrBuilder.java | 237 - .../analytics/admin/v1alpha/FirebaseLink.java | 4 +- .../admin/v1alpha/GetDataStreamRequest.java | 658 ++ .../GetDataStreamRequestOrBuilder.java | 56 + .../admin/v1alpha/GoogleAdsLink.java | 4 +- .../admin/v1alpha/ListDataStreamsRequest.java | 949 +++ .../ListDataStreamsRequestOrBuilder.java | 100 + .../v1alpha/ListDataStreamsResponse.java | 1140 ++++ .../ListDataStreamsResponseOrBuilder.java | 104 + .../analytics/admin/v1alpha/Property.java | 207 + .../admin/v1alpha/PropertyOrBuilder.java | 33 + .../admin/v1alpha/PropertySummary.java | 18 +- .../v1alpha/PropertySummaryOrBuilder.java | 4 +- .../admin/v1alpha/ResourcesProto.java | 658 +- .../v1alpha/UpdateDataStreamRequest.java | 1043 +++ .../UpdateDataStreamRequestOrBuilder.java | 104 + ...ateEnhancedMeasurementSettingsRequest.java | 1120 ---- ...edMeasurementSettingsRequestOrBuilder.java | 114 - .../analytics/admin/v1alpha/UserLink.java | 130 +- .../admin/v1alpha/UserLinkOrBuilder.java | 40 +- .../admin/v1alpha/WebDataStream.java | 14 +- .../admin/v1alpha/WebDataStreamOrBuilder.java | 4 +- .../admin/v1alpha/analytics_admin.proto | 208 +- .../analytics/admin/v1alpha/resources.proto | 210 +- 56 files changed, 17473 insertions(+), 5818 deletions(-) create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java rename proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/{EnhancedMeasurementSettingsName.java => DataStreamName.java} (54%) create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java rename proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/{GetEnhancedMeasurementSettingsRequest.java => DeleteDataStreamRequest.java} (65%) rename proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/{GetEnhancedMeasurementSettingsRequestOrBuilder.java => DeleteDataStreamRequestOrBuilder.java} (70%) delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java diff --git a/google-analytics-admin/clirr-ignored-differences.xml b/google-analytics-admin/clirr-ignored-differences.xml index 983d63da..19cce62d 100644 --- a/google-analytics-admin/clirr-ignored-differences.xml +++ b/google-analytics-admin/clirr-ignored-differences.xml @@ -16,4 +16,14 @@ com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub* * *FirebaseLink*(*) + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminService* + * *EnhancedMeasurementSettings*(*) + + + 7002 + com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub* + * *EnhancedMeasurementSettings*(*) + \ No newline at end of file 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 58a4752c..d30d62ec 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 @@ -3552,213 +3552,6 @@ public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams( return stub.listAndroidAppDataStreamsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   EnhancedMeasurementSettingsName name =
-   *       EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
-   *   EnhancedMeasurementSettings response =
-   *       analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: - * "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( - EnhancedMeasurementSettingsName name) { - GetEnhancedMeasurementSettingsRequest request = - GetEnhancedMeasurementSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getEnhancedMeasurementSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name =
-   *       EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
-   *   EnhancedMeasurementSettings response =
-   *       analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
-   * }
-   * }
- * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: - * "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(String name) { - GetEnhancedMeasurementSettingsRequest request = - GetEnhancedMeasurementSettingsRequest.newBuilder().setName(name).build(); - return getEnhancedMeasurementSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetEnhancedMeasurementSettingsRequest request =
-   *       GetEnhancedMeasurementSettingsRequest.newBuilder()
-   *           .setName(
-   *               EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
-   *           .build();
-   *   EnhancedMeasurementSettings response =
-   *       analyticsAdminServiceClient.getEnhancedMeasurementSettings(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 EnhancedMeasurementSettings getEnhancedMeasurementSettings( - GetEnhancedMeasurementSettingsRequest request) { - return getEnhancedMeasurementSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   GetEnhancedMeasurementSettingsRequest request =
-   *       GetEnhancedMeasurementSettingsRequest.newBuilder()
-   *           .setName(
-   *               EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   EnhancedMeasurementSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getEnhancedMeasurementSettingsCallable() { - return stub.getEnhancedMeasurementSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   EnhancedMeasurementSettings enhancedMeasurementSettings =
-   *       EnhancedMeasurementSettings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   EnhancedMeasurementSettings response =
-   *       analyticsAdminServiceClient.updateEnhancedMeasurementSettings(
-   *           enhancedMeasurementSettings, updateMask);
-   * }
-   * }
- * - * @param enhancedMeasurementSettings Required. The settings to update. The `name` field is used - * to identify the settings to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( - EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask) { - UpdateEnhancedMeasurementSettingsRequest request = - UpdateEnhancedMeasurementSettingsRequest.newBuilder() - .setEnhancedMeasurementSettings(enhancedMeasurementSettings) - .setUpdateMask(updateMask) - .build(); - return updateEnhancedMeasurementSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateEnhancedMeasurementSettingsRequest request =
-   *       UpdateEnhancedMeasurementSettingsRequest.newBuilder()
-   *           .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   EnhancedMeasurementSettings response =
-   *       analyticsAdminServiceClient.updateEnhancedMeasurementSettings(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 EnhancedMeasurementSettings updateEnhancedMeasurementSettings( - UpdateEnhancedMeasurementSettingsRequest request) { - return updateEnhancedMeasurementSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the singleton enhanced measurement settings for this web stream. Note that the stream - * must enable enhanced measurement for these settings to take effect. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateEnhancedMeasurementSettingsRequest request =
-   *       UpdateEnhancedMeasurementSettingsRequest.newBuilder()
-   *           .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .updateEnhancedMeasurementSettingsCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   EnhancedMeasurementSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateEnhancedMeasurementSettingsCallable() { - return stub.updateEnhancedMeasurementSettingsCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a FirebaseLink. @@ -5353,6 +5146,66 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret( return stub.updateMeasurementProtocolSecretCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Acknowledges the terms of user data collection for the specified property. + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AcknowledgeUserDataCollectionRequest request =
+   *       AcknowledgeUserDataCollectionRequest.newBuilder()
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .setAcknowledgement("acknowledgement1769490938")
+   *           .build();
+   *   AcknowledgeUserDataCollectionResponse response =
+   *       analyticsAdminServiceClient.acknowledgeUserDataCollection(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 AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( + AcknowledgeUserDataCollectionRequest request) { + return acknowledgeUserDataCollectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Acknowledges the terms of user data collection for the specified property. + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   AcknowledgeUserDataCollectionRequest request =
+   *       AcknowledgeUserDataCollectionRequest.newBuilder()
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .setAcknowledgement("acknowledgement1769490938")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request);
+   *   // Do something.
+   *   AcknowledgeUserDataCollectionResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionCallable() { + return stub.acknowledgeUserDataCollectionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches through all changes to an account or its children given the specified set of filters. @@ -8647,34 +8500,551 @@ public final DataRetentionSettings updateDataRetentionSettings( return stub.updateDataRetentionSettingsCallable(); } - @Override - public final void close() { - stub.close(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   DataStream dataStream = DataStream.newBuilder().build();
+   *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param dataStream Required. The DataStream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { + CreateDataStreamRequest request = + CreateDataStreamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataStream(dataStream) + .build(); + return createDataStream(request); } - @Override - public void shutdown() { - stub.shutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   DataStream dataStream = DataStream.newBuilder().build();
+   *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param dataStream Required. The DataStream to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataStream createDataStream(String parent, DataStream dataStream) { + CreateDataStreamRequest request = + CreateDataStreamRequest.newBuilder().setParent(parent).setDataStream(dataStream).build(); + return createDataStream(request); } - @Override - public boolean isShutdown() { - return stub.isShutdown(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateDataStreamRequest request =
+   *       CreateDataStreamRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setDataStream(DataStream.newBuilder().build())
+   *           .build();
+   *   DataStream response = analyticsAdminServiceClient.createDataStream(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 DataStream createDataStream(CreateDataStreamRequest request) { + return createDataStreamCallable().call(request); } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateDataStreamRequest request =
+   *       CreateDataStreamRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setDataStream(DataStream.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.createDataStreamCallable().futureCall(request);
+   *   // Do something.
+   *   DataStream response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createDataStreamCallable() { + return stub.createDataStreamCallable(); } - @Override - public void shutdownNow() { - stub.shutdownNow(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
+   *   analyticsAdminServiceClient.deleteDataStream(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DataStream to delete. Example format: + * properties/1234/dataStreams/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataStream(DataStreamName name) { + DeleteDataStreamRequest request = + DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDataStream(request); } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
+   *   analyticsAdminServiceClient.deleteDataStream(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DataStream to delete. Example format: + * properties/1234/dataStreams/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDataStream(String name) { + DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name).build(); + deleteDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteDataStreamRequest request =
+   *       DeleteDataStreamRequest.newBuilder()
+   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+   *           .build();
+   *   analyticsAdminServiceClient.deleteDataStream(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 deleteDataStream(DeleteDataStreamRequest request) { + deleteDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteDataStreamRequest request =
+   *       DeleteDataStreamRequest.newBuilder()
+   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteDataStreamCallable() { + return stub.deleteDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DataStream dataStream = DataStream.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask);
+   * }
+   * }
+ * + * @param dataStream The DataStream to update + * @param updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to match all + * fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataStream updateDataStream(DataStream dataStream, FieldMask updateMask) { + UpdateDataStreamRequest request = + UpdateDataStreamRequest.newBuilder() + .setDataStream(dataStream) + .setUpdateMask(updateMask) + .build(); + return updateDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateDataStreamRequest request =
+   *       UpdateDataStreamRequest.newBuilder()
+   *           .setDataStream(DataStream.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DataStream response = analyticsAdminServiceClient.updateDataStream(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 DataStream updateDataStream(UpdateDataStreamRequest request) { + return updateDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a DataStream on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateDataStreamRequest request =
+   *       UpdateDataStreamRequest.newBuilder()
+   *           .setDataStream(DataStream.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request);
+   *   // Do something.
+   *   DataStream response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateDataStreamCallable() { + return stub.updateDataStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataStreams on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { + ListDataStreamsRequest request = + ListDataStreamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataStreams on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDataStreamsPagedResponse listDataStreams(String parent) { + ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder().setParent(parent).build(); + return listDataStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataStreams on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListDataStreamsRequest request =
+   *       ListDataStreamsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(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 ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request) { + return listDataStreamsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataStreams on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListDataStreamsRequest request =
+   *       ListDataStreamsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DataStream element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDataStreamsPagedCallable() { + return stub.listDataStreamsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DataStreams on a property. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
+   *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DataStream to get. Example format: + * properties/1234/dataStreams/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataStream getDataStream(DataStreamName name) { + GetDataStreamRequest request = + GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
+   *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DataStream to get. Example format: + * properties/1234/dataStreams/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataStream getDataStream(String name) { + GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name).build(); + return getDataStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDataStreamRequest request =
+   *       GetDataStreamRequest.newBuilder()
+   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+   *           .build();
+   *   DataStream response = analyticsAdminServiceClient.getDataStream(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 DataStream getDataStream(GetDataStreamRequest request) { + return getDataStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DataStream. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDataStreamRequest request =
+   *       GetDataStreamRequest.newBuilder()
+   *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getDataStreamCallable().futureCall(request);
+   *   // Do something.
+   *   DataStream response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDataStreamCallable() { + return stub.getDataStreamCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); } public static class ListAccountsPagedResponse @@ -10124,4 +10494,81 @@ protected ListCustomMetricsFixedSizeCollection createCollection( return new ListCustomMetricsFixedSizeCollection(pages, collectionSize); } } + + public static class ListDataStreamsPagedResponse + extends AbstractPagedListResponse< + ListDataStreamsRequest, + ListDataStreamsResponse, + DataStream, + ListDataStreamsPage, + ListDataStreamsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDataStreamsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDataStreamsPagedResponse(ListDataStreamsPage page) { + super(page, ListDataStreamsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDataStreamsPage + extends AbstractPage< + ListDataStreamsRequest, ListDataStreamsResponse, DataStream, ListDataStreamsPage> { + + private ListDataStreamsPage( + PageContext context, + ListDataStreamsResponse response) { + super(context, response); + } + + private static ListDataStreamsPage createEmptyPage() { + return new ListDataStreamsPage(null, null); + } + + @Override + protected ListDataStreamsPage createPage( + PageContext context, + ListDataStreamsResponse response) { + return new ListDataStreamsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDataStreamsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDataStreamsRequest, + ListDataStreamsResponse, + DataStream, + ListDataStreamsPage, + ListDataStreamsFixedSizeCollection> { + + private ListDataStreamsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDataStreamsFixedSizeCollection createEmptyCollection() { + return new ListDataStreamsFixedSizeCollection(null, 0); + } + + @Override + protected ListDataStreamsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDataStreamsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index 64ef040b..953bfdf4 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 @@ -23,6 +23,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; @@ -294,20 +295,6 @@ public UnaryCallSettings deleteIosAppDataS .listAndroidAppDataStreamsSettings(); } - /** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */ - public UnaryCallSettings - getEnhancedMeasurementSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getEnhancedMeasurementSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */ - public UnaryCallSettings - updateEnhancedMeasurementSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateEnhancedMeasurementSettingsSettings(); - } - /** Returns the object with the settings used for calls to createFirebaseLink. */ public UnaryCallSettings createFirebaseLinkSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); @@ -398,6 +385,14 @@ public UnaryCallSettings deleteGoogleAdsLinkS .updateMeasurementProtocolSecretSettings(); } + /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .acknowledgeUserDataCollectionSettings(); + } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings< SearchChangeHistoryEventsRequest, @@ -629,6 +624,33 @@ public UnaryCallSettings getCustomMetricSe .updateDataRetentionSettingsSettings(); } + /** Returns the object with the settings used for calls to createDataStream. */ + public UnaryCallSettings createDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataStream. */ + public UnaryCallSettings deleteDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateDataStream. */ + public UnaryCallSettings updateDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to listDataStreams. */ + public PagedCallSettings< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getDataStream. */ + public UnaryCallSettings getDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -934,20 +956,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().listAndroidAppDataStreamsSettings(); } - /** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */ - public UnaryCallSettings.Builder< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsSettings() { - return getStubSettingsBuilder().getEnhancedMeasurementSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */ - public UnaryCallSettings.Builder< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsSettings() { - return getStubSettingsBuilder().updateEnhancedMeasurementSettingsSettings(); - } - /** Returns the builder for the settings used for calls to createFirebaseLink. */ public UnaryCallSettings.Builder createFirebaseLinkSettings() { @@ -1039,6 +1047,13 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings(); } + /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings.Builder< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings(); + } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings.Builder< SearchChangeHistoryEventsRequest, @@ -1271,6 +1286,35 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().updateDataRetentionSettingsSettings(); } + /** Returns the builder for the settings used for calls to createDataStream. */ + public UnaryCallSettings.Builder + createDataStreamSettings() { + return getStubSettingsBuilder().createDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataStream. */ + public UnaryCallSettings.Builder deleteDataStreamSettings() { + return getStubSettingsBuilder().deleteDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataStream. */ + public UnaryCallSettings.Builder + updateDataStreamSettings() { + return getStubSettingsBuilder().updateDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to listDataStreams. */ + public PagedCallSettings.Builder< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return getStubSettingsBuilder().listDataStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataStream. */ + public UnaryCallSettings.Builder getDataStreamSettings() { + return getStubSettingsBuilder().getDataStreamSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index a9ba9efd..aa5e992f 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "AnalyticsAdminServiceClient", "rpcs": { + "AcknowledgeUserDataCollection": { + "methods": ["acknowledgeUserDataCollection", "acknowledgeUserDataCollectionCallable"] + }, "ApproveDisplayVideo360AdvertiserLinkProposal": { "methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"] }, @@ -46,6 +49,9 @@ "CreateCustomMetric": { "methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"] }, + "CreateDataStream": { + "methods": ["createDataStream", "createDataStream", "createDataStream", "createDataStreamCallable"] + }, "CreateDisplayVideo360AdvertiserLink": { "methods": ["createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLinkCallable"] }, @@ -79,6 +85,9 @@ "DeleteConversionEvent": { "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"] }, + "DeleteDataStream": { + "methods": ["deleteDataStream", "deleteDataStream", "deleteDataStream", "deleteDataStreamCallable"] + }, "DeleteDisplayVideo360AdvertiserLink": { "methods": ["deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLinkCallable"] }, @@ -127,15 +136,15 @@ "GetDataSharingSettings": { "methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"] }, + "GetDataStream": { + "methods": ["getDataStream", "getDataStream", "getDataStream", "getDataStreamCallable"] + }, "GetDisplayVideo360AdvertiserLink": { "methods": ["getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLinkCallable"] }, "GetDisplayVideo360AdvertiserLinkProposal": { "methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"] }, - "GetEnhancedMeasurementSettings": { - "methods": ["getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettingsCallable"] - }, "GetGlobalSiteTag": { "methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"] }, @@ -175,6 +184,9 @@ "ListCustomMetrics": { "methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"] }, + "ListDataStreams": { + "methods": ["listDataStreams", "listDataStreams", "listDataStreams", "listDataStreamsPagedCallable", "listDataStreamsCallable"] + }, "ListDisplayVideo360AdvertiserLinkProposals": { "methods": ["listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposalsPagedCallable", "listDisplayVideo360AdvertiserLinkProposalsCallable"] }, @@ -223,12 +235,12 @@ "UpdateDataRetentionSettings": { "methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"] }, + "UpdateDataStream": { + "methods": ["updateDataStream", "updateDataStream", "updateDataStreamCallable"] + }, "UpdateDisplayVideo360AdvertiserLink": { "methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"] }, - "UpdateEnhancedMeasurementSettings": { - "methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"] - }, "UpdateGoogleAdsLink": { "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] }, 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 461983a3..f82a1ad5 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 @@ -23,6 +23,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; @@ -35,6 +36,8 @@ 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; @@ -54,6 +57,7 @@ import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; @@ -66,9 +70,11 @@ 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; @@ -80,7 +86,6 @@ 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.EnhancedMeasurementSettings; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; @@ -89,9 +94,9 @@ import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; @@ -115,6 +120,8 @@ import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; @@ -144,8 +151,8 @@ import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; @@ -362,18 +369,6 @@ public UnaryCallable deleteIosAppDataStrea throw new UnsupportedOperationException("Not implemented: listAndroidAppDataStreamsCallable()"); } - public UnaryCallable - getEnhancedMeasurementSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: getEnhancedMeasurementSettingsCallable()"); - } - - public UnaryCallable - updateEnhancedMeasurementSettingsCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateEnhancedMeasurementSettingsCallable()"); - } - public UnaryCallable createFirebaseLinkCallable() { throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); } @@ -461,6 +456,12 @@ public UnaryCallable deleteGoogleAdsLinkCalla "Not implemented: updateMeasurementProtocolSecretCallable()"); } + public UnaryCallable + acknowledgeUserDataCollectionCallable() { + throw new UnsupportedOperationException( + "Not implemented: acknowledgeUserDataCollectionCallable()"); + } + public UnaryCallable searchChangeHistoryEventsPagedCallable() { throw new UnsupportedOperationException( @@ -661,6 +662,31 @@ public UnaryCallable getCustomMetricCallab "Not implemented: updateDataRetentionSettingsCallable()"); } + public UnaryCallable createDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: createDataStreamCallable()"); + } + + public UnaryCallable deleteDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDataStreamCallable()"); + } + + public UnaryCallable updateDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: updateDataStreamCallable()"); + } + + public UnaryCallable + listDataStreamsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDataStreamsPagedCallable()"); + } + + public UnaryCallable listDataStreamsCallable() { + throw new UnsupportedOperationException("Not implemented: listDataStreamsCallable()"); + } + + public UnaryCallable getDataStreamCallable() { + throw new UnsupportedOperationException("Not implemented: getDataStreamCallable()"); + } + @Override public abstract void close(); } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 15104002..de795c44 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 @@ -23,6 +23,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; @@ -36,6 +37,8 @@ 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; @@ -57,6 +60,7 @@ import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; @@ -69,9 +73,11 @@ 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; @@ -83,7 +89,6 @@ 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.EnhancedMeasurementSettings; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; @@ -92,9 +97,9 @@ import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; @@ -118,6 +123,8 @@ import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; @@ -147,8 +154,8 @@ import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; @@ -305,12 +312,6 @@ public class AnalyticsAdminServiceStubSettings ListAndroidAppDataStreamsResponse, ListAndroidAppDataStreamsPagedResponse> listAndroidAppDataStreamsSettings; - private final UnaryCallSettings< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsSettings; - private final UnaryCallSettings< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsSettings; private final UnaryCallSettings createFirebaseLinkSettings; private final UnaryCallSettings deleteFirebaseLinkSettings; @@ -341,6 +342,9 @@ public class AnalyticsAdminServiceStubSettings deleteMeasurementProtocolSecretSettings; private final UnaryCallSettings updateMeasurementProtocolSecretSettings; + private final UnaryCallSettings< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings; private final PagedCallSettings< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, @@ -423,6 +427,13 @@ public class AnalyticsAdminServiceStubSettings getDataRetentionSettingsSettings; private final UnaryCallSettings updateDataRetentionSettingsSettings; + private final UnaryCallSettings createDataStreamSettings; + private final UnaryCallSettings deleteDataStreamSettings; + private final UnaryCallSettings updateDataStreamSettings; + private final PagedCallSettings< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings; + private final UnaryCallSettings getDataStreamSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -1137,6 +1148,45 @@ public Iterable extractResources(ListCustomMetricsResponse payload } }; + private static final PagedListDescriptor< + ListDataStreamsRequest, ListDataStreamsResponse, DataStream> + LIST_DATA_STREAMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDataStreamsRequest injectToken( + ListDataStreamsRequest payload, String token) { + return ListDataStreamsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDataStreamsRequest injectPageSize( + ListDataStreamsRequest payload, int pageSize) { + return ListDataStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDataStreamsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDataStreamsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDataStreamsResponse payload) { + return payload.getDataStreamsList() == null + ? ImmutableList.of() + : payload.getDataStreamsList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -1543,6 +1593,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + LIST_DATA_STREAMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDataStreamsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_DATA_STREAMS_PAGE_STR_DESC, request, context); + return ListDataStreamsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -1744,18 +1811,6 @@ public UnaryCallSettings deleteIosAppDataS return listAndroidAppDataStreamsSettings; } - /** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */ - public UnaryCallSettings - getEnhancedMeasurementSettingsSettings() { - return getEnhancedMeasurementSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */ - public UnaryCallSettings - updateEnhancedMeasurementSettingsSettings() { - return updateEnhancedMeasurementSettingsSettings; - } - /** Returns the object with the settings used for calls to createFirebaseLink. */ public UnaryCallSettings createFirebaseLinkSettings() { return createFirebaseLinkSettings; @@ -1841,6 +1896,13 @@ public UnaryCallSettings deleteGoogleAdsLinkS return updateMeasurementProtocolSecretSettings; } + /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return acknowledgeUserDataCollectionSettings; + } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings< SearchChangeHistoryEventsRequest, @@ -2056,6 +2118,33 @@ public UnaryCallSettings getCustomMetricSe return updateDataRetentionSettingsSettings; } + /** Returns the object with the settings used for calls to createDataStream. */ + public UnaryCallSettings createDataStreamSettings() { + return createDataStreamSettings; + } + + /** Returns the object with the settings used for calls to deleteDataStream. */ + public UnaryCallSettings deleteDataStreamSettings() { + return deleteDataStreamSettings; + } + + /** Returns the object with the settings used for calls to updateDataStream. */ + public UnaryCallSettings updateDataStreamSettings() { + return updateDataStreamSettings; + } + + /** Returns the object with the settings used for calls to listDataStreams. */ + public PagedCallSettings< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return listDataStreamsSettings; + } + + /** Returns the object with the settings used for calls to getDataStream. */ + public UnaryCallSettings getDataStreamSettings() { + return getDataStreamSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -2168,10 +2257,6 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx updateAndroidAppDataStreamSettings = settingsBuilder.updateAndroidAppDataStreamSettings().build(); listAndroidAppDataStreamsSettings = settingsBuilder.listAndroidAppDataStreamsSettings().build(); - getEnhancedMeasurementSettingsSettings = - settingsBuilder.getEnhancedMeasurementSettingsSettings().build(); - updateEnhancedMeasurementSettingsSettings = - settingsBuilder.updateEnhancedMeasurementSettingsSettings().build(); createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build(); listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build(); @@ -2191,6 +2276,8 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx settingsBuilder.deleteMeasurementProtocolSecretSettings().build(); updateMeasurementProtocolSecretSettings = settingsBuilder.updateMeasurementProtocolSecretSettings().build(); + acknowledgeUserDataCollectionSettings = + settingsBuilder.acknowledgeUserDataCollectionSettings().build(); searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build(); getGoogleSignalsSettingsSettings = settingsBuilder.getGoogleSignalsSettingsSettings().build(); updateGoogleSignalsSettingsSettings = @@ -2234,6 +2321,11 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getDataRetentionSettingsSettings = settingsBuilder.getDataRetentionSettingsSettings().build(); updateDataRetentionSettingsSettings = settingsBuilder.updateDataRetentionSettingsSettings().build(); + createDataStreamSettings = settingsBuilder.createDataStreamSettings().build(); + deleteDataStreamSettings = settingsBuilder.deleteDataStreamSettings().build(); + updateDataStreamSettings = settingsBuilder.updateDataStreamSettings().build(); + listDataStreamsSettings = settingsBuilder.listDataStreamsSettings().build(); + getDataStreamSettings = settingsBuilder.getDataStreamSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -2314,12 +2406,6 @@ public static class Builder ListAndroidAppDataStreamsResponse, ListAndroidAppDataStreamsPagedResponse> listAndroidAppDataStreamsSettings; - private final UnaryCallSettings.Builder< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsSettings; - private final UnaryCallSettings.Builder< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsSettings; private final UnaryCallSettings.Builder createFirebaseLinkSettings; private final UnaryCallSettings.Builder @@ -2356,6 +2442,9 @@ public static class Builder private final UnaryCallSettings.Builder< UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> updateMeasurementProtocolSecretSettings; + private final UnaryCallSettings.Builder< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings; private final PagedCallSettings.Builder< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, @@ -2445,6 +2534,16 @@ public static class Builder private final UnaryCallSettings.Builder< UpdateDataRetentionSettingsRequest, DataRetentionSettings> updateDataRetentionSettingsSettings; + private final UnaryCallSettings.Builder + createDataStreamSettings; + private final UnaryCallSettings.Builder + deleteDataStreamSettings; + private final UnaryCallSettings.Builder + updateDataStreamSettings; + private final PagedCallSettings.Builder< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings; + private final UnaryCallSettings.Builder getDataStreamSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -2533,8 +2632,6 @@ protected Builder(ClientContext clientContext) { updateAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAndroidAppDataStreamsSettings = PagedCallSettings.newBuilder(LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT); - getEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT); @@ -2551,6 +2648,7 @@ protected Builder(ClientContext clientContext) { createMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + acknowledgeUserDataCollectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); searchChangeHistoryEventsSettings = PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT); getGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2592,6 +2690,11 @@ protected Builder(ClientContext clientContext) { getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDataStreamsSettings = PagedCallSettings.newBuilder(LIST_DATA_STREAMS_PAGE_STR_FACT); + getDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2629,8 +2732,6 @@ protected Builder(ClientContext clientContext) { deleteAndroidAppDataStreamSettings, updateAndroidAppDataStreamSettings, listAndroidAppDataStreamsSettings, - getEnhancedMeasurementSettingsSettings, - updateEnhancedMeasurementSettingsSettings, createFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, @@ -2645,6 +2746,7 @@ protected Builder(ClientContext clientContext) { createMeasurementProtocolSecretSettings, deleteMeasurementProtocolSecretSettings, updateMeasurementProtocolSecretSettings, + acknowledgeUserDataCollectionSettings, searchChangeHistoryEventsSettings, getGoogleSignalsSettingsSettings, updateGoogleSignalsSettingsSettings, @@ -2674,7 +2776,12 @@ protected Builder(ClientContext clientContext) { archiveCustomMetricSettings, getCustomMetricSettings, getDataRetentionSettingsSettings, - updateDataRetentionSettingsSettings); + updateDataRetentionSettingsSettings, + createDataStreamSettings, + deleteDataStreamSettings, + updateDataStreamSettings, + listDataStreamsSettings, + getDataStreamSettings); initDefaults(this); } @@ -2715,10 +2822,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteAndroidAppDataStreamSettings = settings.deleteAndroidAppDataStreamSettings.toBuilder(); updateAndroidAppDataStreamSettings = settings.updateAndroidAppDataStreamSettings.toBuilder(); listAndroidAppDataStreamsSettings = settings.listAndroidAppDataStreamsSettings.toBuilder(); - getEnhancedMeasurementSettingsSettings = - settings.getEnhancedMeasurementSettingsSettings.toBuilder(); - updateEnhancedMeasurementSettingsSettings = - settings.updateEnhancedMeasurementSettingsSettings.toBuilder(); createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder(); listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder(); @@ -2738,6 +2841,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { settings.deleteMeasurementProtocolSecretSettings.toBuilder(); updateMeasurementProtocolSecretSettings = settings.updateMeasurementProtocolSecretSettings.toBuilder(); + acknowledgeUserDataCollectionSettings = + settings.acknowledgeUserDataCollectionSettings.toBuilder(); searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder(); getGoogleSignalsSettingsSettings = settings.getGoogleSignalsSettingsSettings.toBuilder(); updateGoogleSignalsSettingsSettings = @@ -2781,6 +2886,11 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getDataRetentionSettingsSettings = settings.getDataRetentionSettingsSettings.toBuilder(); updateDataRetentionSettingsSettings = settings.updateDataRetentionSettingsSettings.toBuilder(); + createDataStreamSettings = settings.createDataStreamSettings.toBuilder(); + deleteDataStreamSettings = settings.deleteDataStreamSettings.toBuilder(); + updateDataStreamSettings = settings.updateDataStreamSettings.toBuilder(); + listDataStreamsSettings = settings.listDataStreamsSettings.toBuilder(); + getDataStreamSettings = settings.getDataStreamSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2818,8 +2928,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteAndroidAppDataStreamSettings, updateAndroidAppDataStreamSettings, listAndroidAppDataStreamsSettings, - getEnhancedMeasurementSettingsSettings, - updateEnhancedMeasurementSettingsSettings, createFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, @@ -2834,6 +2942,7 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { createMeasurementProtocolSecretSettings, deleteMeasurementProtocolSecretSettings, updateMeasurementProtocolSecretSettings, + acknowledgeUserDataCollectionSettings, searchChangeHistoryEventsSettings, getGoogleSignalsSettingsSettings, updateGoogleSignalsSettingsSettings, @@ -2863,7 +2972,12 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { archiveCustomMetricSettings, getCustomMetricSettings, getDataRetentionSettingsSettings, - updateDataRetentionSettingsSettings); + updateDataRetentionSettingsSettings, + createDataStreamSettings, + deleteDataStreamSettings, + updateDataStreamSettings, + listDataStreamsSettings, + getDataStreamSettings); } private static Builder createDefault() { @@ -3050,16 +3164,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder - .getEnhancedMeasurementSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateEnhancedMeasurementSettingsSettings() - .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")) @@ -3130,6 +3234,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .acknowledgeUserDataCollectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .searchChangeHistoryEventsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -3280,6 +3389,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .createDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDataStreamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDataStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -3505,20 +3639,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return listAndroidAppDataStreamsSettings; } - /** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */ - public UnaryCallSettings.Builder< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsSettings() { - return getEnhancedMeasurementSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */ - public UnaryCallSettings.Builder< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsSettings() { - return updateEnhancedMeasurementSettingsSettings; - } - /** Returns the builder for the settings used for calls to createFirebaseLink. */ public UnaryCallSettings.Builder createFirebaseLinkSettings() { @@ -3610,6 +3730,13 @@ public UnaryCallSettings.Builder deleteUserLinkSet return updateMeasurementProtocolSecretSettings; } + /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings.Builder< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return acknowledgeUserDataCollectionSettings; + } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings.Builder< SearchChangeHistoryEventsRequest, @@ -3842,6 +3969,35 @@ public UnaryCallSettings.Builder deleteUserLinkSet return updateDataRetentionSettingsSettings; } + /** Returns the builder for the settings used for calls to createDataStream. */ + public UnaryCallSettings.Builder + createDataStreamSettings() { + return createDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to deleteDataStream. */ + public UnaryCallSettings.Builder deleteDataStreamSettings() { + return deleteDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to updateDataStream. */ + public UnaryCallSettings.Builder + updateDataStreamSettings() { + return updateDataStreamSettings; + } + + /** Returns the builder for the settings used for calls to listDataStreams. */ + public PagedCallSettings.Builder< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return listDataStreamsSettings; + } + + /** Returns the builder for the settings used for calls to getDataStream. */ + public UnaryCallSettings.Builder getDataStreamSettings() { + return getDataStreamSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 3735db15..87e60817 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 @@ -23,6 +23,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; @@ -35,6 +36,8 @@ 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; @@ -54,6 +57,7 @@ import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; @@ -66,9 +70,11 @@ 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; @@ -80,7 +86,6 @@ 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.EnhancedMeasurementSettings; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; @@ -89,9 +94,9 @@ import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDataStreamRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; @@ -115,6 +120,8 @@ import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListDataStreamsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; @@ -144,8 +151,8 @@ import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; @@ -559,35 +566,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(ListAndroidAppDataStreamsResponse.getDefaultInstance())) .build(); - private static final MethodDescriptor< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) - .build(); - private static final MethodDescriptor createFirebaseLinkMethodDescriptor = MethodDescriptor.newBuilder() @@ -762,6 +740,21 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) .build(); + private static final MethodDescriptor< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection") + .setRequestMarshaller( + ProtoUtils.marshaller(AcknowledgeUserDataCollectionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AcknowledgeUserDataCollectionResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> searchChangeHistoryEventsMethodDescriptor = @@ -1159,6 +1152,62 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor + createDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDataStreamsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataStreamsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -1225,10 +1274,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsPagedResponse> listAndroidAppDataStreamsPagedCallable; - private final UnaryCallable - getEnhancedMeasurementSettingsCallable; - private final UnaryCallable - updateEnhancedMeasurementSettingsCallable; private final UnaryCallable createFirebaseLinkCallable; private final UnaryCallable deleteFirebaseLinkCallable; private final UnaryCallable @@ -1261,6 +1306,9 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { deleteMeasurementProtocolSecretCallable; private final UnaryCallable updateMeasurementProtocolSecretCallable; + private final UnaryCallable< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionCallable; private final UnaryCallable searchChangeHistoryEventsCallable; private final UnaryCallable< @@ -1343,6 +1391,14 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { getDataRetentionSettingsCallable; private final UnaryCallable updateDataRetentionSettingsCallable; + private final UnaryCallable createDataStreamCallable; + private final UnaryCallable deleteDataStreamCallable; + private final UnaryCallable updateDataStreamCallable; + private final UnaryCallable + listDataStreamsCallable; + private final UnaryCallable + listDataStreamsPagedCallable; + private final UnaryCallable getDataStreamCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1724,32 +1780,6 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); - GrpcCallSettings - getEnhancedMeasurementSettingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getEnhancedMeasurementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateEnhancedMeasurementSettingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateEnhancedMeasurementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "enhanced_measurement_settings.name", - String.valueOf(request.getEnhancedMeasurementSettings().getName())); - return params.build(); - }) - .build(); GrpcCallSettings createFirebaseLinkTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createFirebaseLinkMethodDescriptor) @@ -1909,6 +1939,19 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings + acknowledgeUserDataCollectionTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("property", String.valueOf(request.getProperty())); + return params.build(); + }) + .build(); GrpcCallSettings searchChangeHistoryEventsTransportSettings = GrpcCallSettings @@ -2277,6 +2320,57 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings createDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("data_stream.name", String.valueOf(request.getDataStream().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listDataStreamsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataStreamsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -2448,16 +2542,6 @@ protected GrpcAnalyticsAdminServiceStub( listAndroidAppDataStreamsTransportSettings, settings.listAndroidAppDataStreamsSettings(), clientContext); - this.getEnhancedMeasurementSettingsCallable = - callableFactory.createUnaryCallable( - getEnhancedMeasurementSettingsTransportSettings, - settings.getEnhancedMeasurementSettingsSettings(), - clientContext); - this.updateEnhancedMeasurementSettingsCallable = - callableFactory.createUnaryCallable( - updateEnhancedMeasurementSettingsTransportSettings, - settings.updateEnhancedMeasurementSettingsSettings(), - clientContext); this.createFirebaseLinkCallable = callableFactory.createUnaryCallable( createFirebaseLinkTransportSettings, @@ -2541,6 +2625,11 @@ protected GrpcAnalyticsAdminServiceStub( updateMeasurementProtocolSecretTransportSettings, settings.updateMeasurementProtocolSecretSettings(), clientContext); + this.acknowledgeUserDataCollectionCallable = + callableFactory.createUnaryCallable( + acknowledgeUserDataCollectionTransportSettings, + settings.acknowledgeUserDataCollectionSettings(), + clientContext); this.searchChangeHistoryEventsCallable = callableFactory.createUnaryCallable( searchChangeHistoryEventsTransportSettings, @@ -2719,6 +2808,24 @@ protected GrpcAnalyticsAdminServiceStub( updateDataRetentionSettingsTransportSettings, settings.updateDataRetentionSettingsSettings(), clientContext); + this.createDataStreamCallable = + callableFactory.createUnaryCallable( + createDataStreamTransportSettings, settings.createDataStreamSettings(), clientContext); + this.deleteDataStreamCallable = + callableFactory.createUnaryCallable( + deleteDataStreamTransportSettings, settings.deleteDataStreamSettings(), clientContext); + this.updateDataStreamCallable = + callableFactory.createUnaryCallable( + updateDataStreamTransportSettings, settings.updateDataStreamSettings(), clientContext); + this.listDataStreamsCallable = + callableFactory.createUnaryCallable( + listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); + this.listDataStreamsPagedCallable = + callableFactory.createPagedCallable( + listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); + this.getDataStreamCallable = + callableFactory.createUnaryCallable( + getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -2957,18 +3064,6 @@ public UnaryCallable deleteIosAppDataStrea return listAndroidAppDataStreamsPagedCallable; } - @Override - public UnaryCallable - getEnhancedMeasurementSettingsCallable() { - return getEnhancedMeasurementSettingsCallable; - } - - @Override - public UnaryCallable - updateEnhancedMeasurementSettingsCallable() { - return updateEnhancedMeasurementSettingsCallable; - } - @Override public UnaryCallable createFirebaseLinkCallable() { return createFirebaseLinkCallable; @@ -3067,6 +3162,12 @@ public UnaryCallable deleteGoogleAdsLinkCalla return updateMeasurementProtocolSecretCallable; } + @Override + public UnaryCallable + acknowledgeUserDataCollectionCallable() { + return acknowledgeUserDataCollectionCallable; + } + @Override public UnaryCallable searchChangeHistoryEventsCallable() { @@ -3287,6 +3388,37 @@ public UnaryCallable getCustomMetricCallab return updateDataRetentionSettingsCallable; } + @Override + public UnaryCallable createDataStreamCallable() { + return createDataStreamCallable; + } + + @Override + public UnaryCallable deleteDataStreamCallable() { + return deleteDataStreamCallable; + } + + @Override + public UnaryCallable updateDataStreamCallable() { + return updateDataStreamCallable; + } + + @Override + public UnaryCallable listDataStreamsCallable() { + return listDataStreamsCallable; + } + + @Override + public UnaryCallable + listDataStreamsPagedCallable() { + return listDataStreamsPagedCallable; + } + + @Override + public UnaryCallable getDataStreamCallable() { + return getDataStreamCallable; + } + @Override public final void close() { try { 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 8557eb65..de3834cb 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 @@ -23,6 +23,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; @@ -473,6 +474,7 @@ public void getPropertyTest() throws Exception { .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) + .setAccount(AccountName.of("[ACCOUNT]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -521,6 +523,7 @@ public void getPropertyTest2() throws Exception { .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) + .setAccount(AccountName.of("[ACCOUNT]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -628,6 +631,7 @@ public void createPropertyTest() throws Exception { .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) + .setAccount(AccountName.of("[ACCOUNT]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -676,6 +680,7 @@ public void deletePropertyTest() throws Exception { .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) + .setAccount(AccountName.of("[ACCOUNT]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -724,6 +729,7 @@ public void deletePropertyTest2() throws Exception { .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) + .setAccount(AccountName.of("[ACCOUNT]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -772,6 +778,7 @@ public void updatePropertyTest() throws Exception { .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) + .setAccount(AccountName.of("[ACCOUNT]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2484,168 +2491,6 @@ public void listAndroidAppDataStreamsExceptionTest2() throws Exception { } } - @Test - public void getEnhancedMeasurementSettingsTest() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName( - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setPageViewsEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageLoadsEnabled(true) - .setPageChangesEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - EnhancedMeasurementSettingsName name = - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); - - EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEnhancedMeasurementSettingsRequest actualRequest = - ((GetEnhancedMeasurementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - EnhancedMeasurementSettingsName name = - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); - client.getEnhancedMeasurementSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEnhancedMeasurementSettingsTest2() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName( - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setPageViewsEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageLoadsEnabled(true) - .setPageChangesEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; - - EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEnhancedMeasurementSettingsRequest actualRequest = - ((GetEnhancedMeasurementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.getEnhancedMeasurementSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEnhancedMeasurementSettingsTest() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName( - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setPageViewsEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageLoadsEnabled(true) - .setPageChangesEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - EnhancedMeasurementSettings enhancedMeasurementSettings = - EnhancedMeasurementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - EnhancedMeasurementSettings actualResponse = - client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEnhancedMeasurementSettingsRequest actualRequest = - ((UpdateEnhancedMeasurementSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals( - enhancedMeasurementSettings, actualRequest.getEnhancedMeasurementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - EnhancedMeasurementSettings enhancedMeasurementSettings = - EnhancedMeasurementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void createFirebaseLinkTest() throws Exception { FirebaseLink expectedResponse = @@ -3761,6 +3606,53 @@ public void updateMeasurementProtocolSecretExceptionTest() throws Exception { } } + @Test + public void acknowledgeUserDataCollectionTest() throws Exception { + AcknowledgeUserDataCollectionResponse expectedResponse = + AcknowledgeUserDataCollectionResponse.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + AcknowledgeUserDataCollectionRequest request = + AcknowledgeUserDataCollectionRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .setAcknowledgement("acknowledgement1769490938") + .build(); + + AcknowledgeUserDataCollectionResponse actualResponse = + client.acknowledgeUserDataCollection(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AcknowledgeUserDataCollectionRequest actualRequest = + ((AcknowledgeUserDataCollectionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getAcknowledgement(), actualRequest.getAcknowledgement()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void acknowledgeUserDataCollectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + AcknowledgeUserDataCollectionRequest request = + AcknowledgeUserDataCollectionRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .setAcknowledgement("acknowledgement1769490938") + .build(); + client.acknowledgeUserDataCollection(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void searchChangeHistoryEventsTest() throws Exception { ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); @@ -6111,4 +6003,374 @@ public void updateDataRetentionSettingsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void createDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + DataStream dataStream = DataStream.newBuilder().build(); + + DataStream actualResponse = client.createDataStream(parent, dataStream); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dataStream, actualRequest.getDataStream()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + DataStream dataStream = DataStream.newBuilder().build(); + client.createDataStream(parent, dataStream); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDataStreamTest2() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DataStream dataStream = DataStream.newBuilder().build(); + + DataStream actualResponse = client.createDataStream(parent, dataStream); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dataStream, actualRequest.getDataStream()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDataStreamExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + DataStream dataStream = DataStream.newBuilder().build(); + client.createDataStream(parent, dataStream); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataStreamTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + + client.deleteDataStream(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.deleteDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDataStreamTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDataStream(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDataStreamExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + DataStream dataStream = DataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataStream actualResponse = client.updateDataStream(dataStream, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataStreamRequest actualRequest = ((UpdateDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(dataStream, actualRequest.getDataStream()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + DataStream dataStream = DataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataStream(dataStream, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataStreamsTest() throws Exception { + DataStream responsesElement = DataStream.newBuilder().build(); + ListDataStreamsResponse expectedResponse = + ListDataStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllDataStreams(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataStreamsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDataStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataStreamsTest2() throws Exception { + DataStream responsesElement = DataStream.newBuilder().build(); + ListDataStreamsResponse expectedResponse = + ListDataStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllDataStreams(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDataStreamsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDataStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + + DataStream actualResponse = client.getDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataStreamTest2() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataStream actualResponse = client.getDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataStreamExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getDataStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 2f7bf6eb..dd896783 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 @@ -779,50 +779,6 @@ public void listAndroidAppDataStreams( } } - @Override - public void getEnhancedMeasurementSettings( - GetEnhancedMeasurementSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EnhancedMeasurementSettings) { - requests.add(request); - responseObserver.onNext(((EnhancedMeasurementSettings) 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 GetEnhancedMeasurementSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EnhancedMeasurementSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateEnhancedMeasurementSettings( - UpdateEnhancedMeasurementSettingsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EnhancedMeasurementSettings) { - requests.add(request); - responseObserver.onNext(((EnhancedMeasurementSettings) 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 UpdateEnhancedMeasurementSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EnhancedMeasurementSettings.class.getName(), - Exception.class.getName()))); - } - } - @Override public void createFirebaseLink( CreateFirebaseLinkRequest request, StreamObserver responseObserver) { @@ -1123,6 +1079,28 @@ public void updateMeasurementProtocolSecret( } } + @Override + public void acknowledgeUserDataCollection( + AcknowledgeUserDataCollectionRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AcknowledgeUserDataCollectionResponse) { + requests.add(request); + responseObserver.onNext(((AcknowledgeUserDataCollectionResponse) 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 AcknowledgeUserDataCollection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AcknowledgeUserDataCollectionResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void searchChangeHistoryEvents( SearchChangeHistoryEventsRequest request, @@ -1770,4 +1748,109 @@ public void updateDataRetentionSettings( Exception.class.getName()))); } } + + @Override + public void createDataStream( + CreateDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataStream) { + requests.add(request); + responseObserver.onNext(((DataStream) 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 CreateDataStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataStream.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDataStream( + DeleteDataStreamRequest 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 DeleteDataStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataStream( + UpdateDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataStream) { + requests.add(request); + responseObserver.onNext(((DataStream) 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 UpdateDataStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataStream.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDataStreams( + ListDataStreamsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDataStreamsResponse) { + requests.add(request); + responseObserver.onNext(((ListDataStreamsResponse) 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 ListDataStreams, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDataStreamsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataStream( + GetDataStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataStream) { + requests.add(request); + responseObserver.onNext(((DataStream) 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 GetDataStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataStream.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index 0bd27bc4..fdd15373 100644 --- a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -11,4 +11,10 @@ com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc * getUpdateFirebaseLinkMethod(*) + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * *EnhancedMeasurementSettings*(*) + + \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 896877a6..5c0e867d 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 @@ -1688,113 +1688,6 @@ private AnalyticsAdminServiceGrpc() {} return getListAndroidAppDataStreamsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getGetEnhancedMeasurementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnhancedMeasurementSettings", - requestType = com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getGetEnhancedMeasurementSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getGetEnhancedMeasurementSettingsMethod; - if ((getGetEnhancedMeasurementSettingsMethod = - AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetEnhancedMeasurementSettingsMethod = - AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) - == null) { - AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod = - getGetEnhancedMeasurementSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetEnhancedMeasurementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha - .GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "GetEnhancedMeasurementSettings")) - .build(); - } - } - } - return getGetEnhancedMeasurementSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getUpdateEnhancedMeasurementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEnhancedMeasurementSettings", - requestType = - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getUpdateEnhancedMeasurementSettingsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getUpdateEnhancedMeasurementSettingsMethod; - if ((getUpdateEnhancedMeasurementSettingsMethod = - AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateEnhancedMeasurementSettingsMethod = - AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) - == null) { - AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod = - getUpdateEnhancedMeasurementSettingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateEnhancedMeasurementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha - .UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "UpdateEnhancedMeasurementSettings")) - .build(); - } - } - } - return getUpdateEnhancedMeasurementSettingsMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, com.google.analytics.admin.v1alpha.FirebaseLink> @@ -2499,6 +2392,59 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateMeasurementProtocolSecretMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AcknowledgeUserDataCollection", + requestType = com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, + responseType = com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod; + if ((getAcknowledgeUserDataCollectionMethod = + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getAcknowledgeUserDataCollectionMethod = + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) + == null) { + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod = + getAcknowledgeUserDataCollectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AcknowledgeUserDataCollection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .AcknowledgeUserDataCollectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .AcknowledgeUserDataCollectionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "AcknowledgeUserDataCollection")) + .build(); + } + } + } + return getAcknowledgeUserDataCollectionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> @@ -4095,6 +4041,238 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateDataRetentionSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getCreateDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataStream", + requestType = com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getCreateDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getCreateDataStreamMethod; + if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateDataStreamMethod = + getCreateDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDataStream")) + .build(); + } + } + } + return getCreateDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataStream", + requestType = com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod; + if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod = + getDeleteDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDataStream")) + .build(); + } + } + } + return getDeleteDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getUpdateDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataStream", + requestType = com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getUpdateDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getUpdateDataStreamMethod; + if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod = + getUpdateDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataStream")) + .build(); + } + } + } + return getUpdateDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + getListDataStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataStreams", + requestType = com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + getListDataStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + getListDataStreamsMethod; + if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListDataStreamsMethod = + getListDataStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListDataStreams")) + .build(); + } + } + } + return getListDataStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getGetDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataStream", + requestType = com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getGetDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getGetDataStreamMethod; + if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { + AnalyticsAdminServiceGrpc.getGetDataStreamMethod = + getGetDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataStream")) + .build(); + } + } + } + return getGetDataStreamMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -4681,40 +4859,6 @@ public void listAndroidAppDataStreams( getListAndroidAppDataStreamsMethod(), responseObserver); } - /** - * - * - *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public void getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnhancedMeasurementSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public void updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); - } - /** * * @@ -4928,6 +5072,24 @@ public void updateMeasurementProtocolSecret( getUpdateMeasurementProtocolSecretMethod(), responseObserver); } + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * 
+ */ + public void acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeUserDataCollectionMethod(), responseObserver); + } + /** * * @@ -5403,6 +5565,80 @@ public void updateDataRetentionSettings( getUpdateDataRetentionSettingsMethod(), responseObserver); } + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public void createDataStream( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public void deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public void updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public void listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public void getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataStreamMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -5631,20 +5867,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>( this, METHODID_LIST_ANDROID_APP_DATA_STREAMS))) - .addMethod( - getGetEnhancedMeasurementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( - this, METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS))) - .addMethod( - getUpdateEnhancedMeasurementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( - this, METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS))) .addMethod( getCreateFirebaseLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -5741,6 +5963,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( this, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getAcknowledgeUserDataCollectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse>( + this, METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION))) .addMethod( getSearchChangeHistoryEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -5957,6 +6186,40 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, com.google.analytics.admin.v1alpha.DataRetentionSettings>( this, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) + .addMethod( + getCreateDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream>( + this, METHODID_CREATE_DATA_STREAM))) + .addMethod( + getDeleteDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DATA_STREAM))) + .addMethod( + getUpdateDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream>( + this, METHODID_UPDATE_DATA_STREAM))) + .addMethod( + getListDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse>( + this, METHODID_LIST_DATA_STREAMS))) + .addMethod( + getGetDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream>( + this, METHODID_GET_DATA_STREAM))) .build(); } } @@ -6567,56 +6830,18 @@ 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.
-     * 
- */ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public void getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
      * 
*/ - public void updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request, responseObserver); } @@ -6862,6 +7087,26 @@ public void updateMeasurementProtocolSecret( responseObserver); } + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * 
+ */ + public void acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -7402,6 +7647,90 @@ public void updateDataRetentionSettings( request, responseObserver); } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public void createDataStream( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public void deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public void updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public void listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public void getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -7906,38 +8235,6 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppD getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); - } - /** * * @@ -8129,6 +8426,22 @@ public com.google.protobuf.Empty deleteMeasurementProtocolSecret( getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); + } + /** * * @@ -8565,6 +8878,71 @@ public com.google.analytics.admin.v1alpha.DataRetentionSettings updateDataRetent return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream createDataStream( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataStreamMethod(), getCallOptions(), request); + } } /** @@ -9108,42 +9486,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), - request); - } - /** * * @@ -9352,6 +9694,24 @@ protected AnalyticsAdminServiceFutureStub build( request); } + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or via this API) before MeasurementProtocolSecret resources may be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), + request); + } + /** * * @@ -9825,6 +10185,75 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataStream> + createDataStream(com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataStream(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataStream> + updateDataStream(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + listDataStreams(com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataStream> + getDataStream(com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -9861,52 +10290,56 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 31; private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 32; private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 33; - private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 34; - private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 35; - private static final int METHODID_CREATE_FIREBASE_LINK = 36; - private static final int METHODID_DELETE_FIREBASE_LINK = 37; - private static final int METHODID_LIST_FIREBASE_LINKS = 38; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 39; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 40; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 41; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 42; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 43; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 44; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 45; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 46; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 47; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 48; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 49; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 50; - private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 51; - private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 52; - private static final int METHODID_CREATE_CONVERSION_EVENT = 53; - private static final int METHODID_GET_CONVERSION_EVENT = 54; - private static final int METHODID_DELETE_CONVERSION_EVENT = 55; - private static final int METHODID_LIST_CONVERSION_EVENTS = 56; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 57; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 58; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 59; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 60; - private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 61; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 62; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 63; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 64; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 65; - private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 66; - private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 67; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 68; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 69; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 70; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 71; - private static final int METHODID_GET_CUSTOM_DIMENSION = 72; - private static final int METHODID_CREATE_CUSTOM_METRIC = 73; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 74; - private static final int METHODID_LIST_CUSTOM_METRICS = 75; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 76; - private static final int METHODID_GET_CUSTOM_METRIC = 77; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 78; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 79; + 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 class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10134,20 +10567,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>) responseObserver); break; - case METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS: - serviceImpl.getEnhancedMeasurementSettings( - (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>) - responseObserver); - break; - case METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS: - serviceImpl.updateEnhancedMeasurementSettings( - (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>) - responseObserver); - break; case METHODID_CREATE_FIREBASE_LINK: serviceImpl.createFirebaseLink( (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) request, @@ -10235,6 +10654,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) responseObserver); break; + case METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION: + serviceImpl.acknowledgeUserDataCollection( + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse>) + responseObserver); + break; case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: serviceImpl.searchChangeHistoryEvents( (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, @@ -10444,6 +10870,36 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.DataRetentionSettings>) responseObserver); break; + case METHODID_CREATE_DATA_STREAM: + serviceImpl.createDataStream( + (com.google.analytics.admin.v1alpha.CreateDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DATA_STREAM: + serviceImpl.deleteDataStream( + (com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATA_STREAM: + serviceImpl.updateDataStream( + (com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_STREAMS: + serviceImpl.listDataStreams( + (com.google.analytics.admin.v1alpha.ListDataStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListDataStreamsResponse>) + responseObserver); + break; + case METHODID_GET_DATA_STREAM: + serviceImpl.getDataStream( + (com.google.analytics.admin.v1alpha.GetDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -10542,8 +10998,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteAndroidAppDataStreamMethod()) .addMethod(getUpdateAndroidAppDataStreamMethod()) .addMethod(getListAndroidAppDataStreamsMethod()) - .addMethod(getGetEnhancedMeasurementSettingsMethod()) - .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) .addMethod(getCreateFirebaseLinkMethod()) .addMethod(getDeleteFirebaseLinkMethod()) .addMethod(getListFirebaseLinksMethod()) @@ -10558,6 +11012,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateMeasurementProtocolSecretMethod()) .addMethod(getDeleteMeasurementProtocolSecretMethod()) .addMethod(getUpdateMeasurementProtocolSecretMethod()) + .addMethod(getAcknowledgeUserDataCollectionMethod()) .addMethod(getSearchChangeHistoryEventsMethod()) .addMethod(getGetGoogleSignalsSettingsMethod()) .addMethod(getUpdateGoogleSignalsSettingsMethod()) @@ -10588,6 +11043,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetCustomMetricMethod()) .addMethod(getGetDataRetentionSettingsMethod()) .addMethod(getUpdateDataRetentionSettingsMethod()) + .addMethod(getCreateDataStreamMethod()) + .addMethod(getDeleteDataStreamMethod()) + .addMethod(getUpdateDataStreamMethod()) + .addMethod(getListDataStreamsMethod()) + .addMethod(getGetDataStreamMethod()) .build(); } } diff --git a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index 0b8d2309..6c9ba72b 100644 --- a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -54,4 +54,8 @@ 8001 com/google/analytics/admin/v1alpha/MaximumUserAccess* + + 8001 + com/google/analytics/admin/v1alpha/*EnhancedMeasurementSettings* + diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java new file mode 100644 index 00000000..0e523497 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java @@ -0,0 +1,889 @@ +/* + * 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 AcknowledgeUserDataCollection RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} + */ +public final class AcknowledgeUserDataCollectionRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + AcknowledgeUserDataCollectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcknowledgeUserDataCollectionRequest.newBuilder() to construct. + private AcknowledgeUserDataCollectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcknowledgeUserDataCollectionRequest() { + property_ = ""; + acknowledgement_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeUserDataCollectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AcknowledgeUserDataCollectionRequest( + 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(); + + property_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + acknowledgement_ = 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_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + private volatile java.lang.Object property_; + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; + private volatile java.lang.Object acknowledgement_; + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the terms
+   * of user data collection.
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + @java.lang.Override + public java.lang.String getAcknowledgement() { + java.lang.Object ref = acknowledgement_; + 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(); + acknowledgement_ = s; + return s; + } + } + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the terms
+   * of user data collection.
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcknowledgementBytes() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acknowledgement_ = 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(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acknowledgement_); + } + 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.AcknowledgeUserDataCollectionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other = + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getAcknowledgement().equals(other.getAcknowledgement())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getAcknowledgement().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest 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.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest 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.AcknowledgeUserDataCollectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest 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.AcknowledgeUserDataCollectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest 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.AcknowledgeUserDataCollectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + 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.AcknowledgeUserDataCollectionRequest 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.AcknowledgeUserDataCollectionRequest 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.AcknowledgeUserDataCollectionRequest 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 AcknowledgeUserDataCollection RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.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(); + property_ = ""; + + acknowledgement_ = ""; + + 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_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest build() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest buildPartial() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(this); + result.property_ = property_; + result.acknowledgement_ = acknowledgement_; + 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.AcknowledgeUserDataCollectionRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + onChanged(); + } + if (!other.getAcknowledgement().isEmpty()) { + acknowledgement_ = other.acknowledgement_; + 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.AcknowledgeUserDataCollectionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + property_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + + property_ = getDefaultInstance().getProperty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + property_ = value; + onChanged(); + return this; + } + + private java.lang.Object acknowledgement_ = ""; + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the terms
+     * of user data collection.
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + public java.lang.String getAcknowledgement() { + java.lang.Object ref = acknowledgement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acknowledgement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the terms
+     * of user data collection.
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + public com.google.protobuf.ByteString getAcknowledgementBytes() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acknowledgement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the terms
+     * of user data collection.
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The acknowledgement to set. + * @return This builder for chaining. + */ + public Builder setAcknowledgement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + acknowledgement_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the terms
+     * of user data collection.
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAcknowledgement() { + + acknowledgement_ = getDefaultInstance().getAcknowledgement(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the terms
+     * of user data collection.
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for acknowledgement to set. + * @return This builder for chaining. + */ + public Builder setAcknowledgementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + acknowledgement_ = 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.AcknowledgeUserDataCollectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeUserDataCollectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcknowledgeUserDataCollectionRequest(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.AcknowledgeUserDataCollectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java new file mode 100644 index 00000000..35c9aa57 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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 AcknowledgeUserDataCollectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the terms
+   * of user data collection.
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + java.lang.String getAcknowledgement(); + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the terms
+   * of user data collection.
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + com.google.protobuf.ByteString getAcknowledgementBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java new file mode 100644 index 00000000..172b0386 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java @@ -0,0 +1,475 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for AcknowledgeUserDataCollection RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} + */ +public final class AcknowledgeUserDataCollectionResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + AcknowledgeUserDataCollectionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcknowledgeUserDataCollectionResponse.newBuilder() to construct. + private AcknowledgeUserDataCollectionResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcknowledgeUserDataCollectionResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeUserDataCollectionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AcknowledgeUserDataCollectionResponse( + 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; + 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_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.AcknowledgeUserDataCollectionResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse other = + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse 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.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse 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.AcknowledgeUserDataCollectionResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse 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.AcknowledgeUserDataCollectionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse 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.AcknowledgeUserDataCollectionResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + 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.AcknowledgeUserDataCollectionResponse 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.AcknowledgeUserDataCollectionResponse 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.AcknowledgeUserDataCollectionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for AcknowledgeUserDataCollection RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.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(); + 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_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse build() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse buildPartial() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse result = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(this); + 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.AcknowledgeUserDataCollectionResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse other) { + if (other + == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + .getDefaultInstance()) return this; + 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.AcknowledgeUserDataCollectionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.AcknowledgeUserDataCollectionResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeUserDataCollectionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcknowledgeUserDataCollectionResponse(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.AcknowledgeUserDataCollectionResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java new file mode 100644 index 00000000..d67a9c55 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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 AcknowledgeUserDataCollectionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + com.google.protobuf.MessageOrBuilder {} 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 9ac59334..a787a63a 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 @@ -203,14 +203,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_GetEnhancedMeasurementSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -263,6 +255,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -435,6 +435,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -587,727 +611,756 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "treamsResponse\022V\n\030android_app_data_strea" + "ms\030\001 \003(\01324.google.analytics.admin.v1alph" + "a.AndroidAppDataStream\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"x\n%GetEnhancedMeasurementSetting" - + "sRequest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9analytic" - + "sadmin.googleapis.com/EnhancedMeasuremen" - + "tSettings\"\311\001\n(UpdateEnhancedMeasurementS" - + "ettingsRequest\022g\n\035enhanced_measurement_s" - + "ettings\030\001 \001(\0132;.google.analytics.admin.v" - + "1alpha.EnhancedMeasurementSettingsB\003\340A\002\022" - + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequ" - + "est\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsad" - + "min.googleapis.com/FirebaseLink\022H\n\rfireb" - + "ase_link\030\002 \001(\0132,.google.analytics.admin." - + "v1alpha.FirebaseLinkB\003\340A\002\"]\n\031DeleteFireb" - + "aseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*an" - + "alyticsadmin.googleapis.com/FirebaseLink" - + "\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006parent\030" - + "\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis" - + ".com/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n\031ListFirebaseLinksRes" - + "ponse\022D\n\016firebase_links\030\001 \003(\0132,.google.a" - + "nalytics.admin.v1alpha.FirebaseLink\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTag" - + "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analytics" - + "admin.googleapis.com/GlobalSiteTag\"\256\001\n\032C" - + "reateGoogleAdsLinkRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com" - + "/GoogleAdsLink\022K\n\017google_ads_link\030\002 \001(\0132" - + "-.google.analytics.admin.v1alpha.GoogleA" - + "dsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkReque" - + "st\022F\n\017google_ads_link\030\001 \001(\0132-.google.ana" - + "lytics.admin.v1alpha.GoogleAdsLink\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A" - + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.goo" - + "gleapis.com/GoogleAdsLink\"\207\001\n\031ListGoogle" - + "AdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022" - + "+analyticsadmin.googleapis.com/GoogleAds" - + "Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020goo" - + "gle_ads_links\030\001 \003(\0132-.google.analytics.a" - + "dmin.v1alpha.GoogleAdsLink\022\027\n\017next_page_" - + "token\030\002 \001(\t\"h\n\035GetDataSharingSettingsReq" - + "uest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadm" - + "in.googleapis.com/DataSharingSettings\"D\n" - + "\033ListAccountSummariesRequest\022\021\n\tpage_siz" - + "e\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAcco" - + "untSummariesResponse\022I\n\021account_summarie" - + "s\030\001 \003(\0132..google.analytics.admin.v1alpha" - + ".AccountSummary\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\203\004\n SearchChangeHistoryEventsRequest\022>\n" - + "\007account\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.g" - + "oogleapis.com/Account\022@\n\010property\030\002 \001(\tB" - + ".\340A\001\372A(\n&analyticsadmin.googleapis.com/P" - + "roperty\022U\n\rresource_type\030\003 \003(\01629.google." - + "analytics.admin.v1alpha.ChangeHistoryRes" - + "ourceTypeB\003\340A\001\022?\n\006action\030\004 \003(\0162*.google." - + "analytics.admin.v1alpha.ActionTypeB\003\340A\001\022" - + "\030\n\013actor_email\030\005 \003(\tB\003\340A\001\022=\n\024earliest_ch" - + "ange_time\030\006 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\001\022;\n\022latest_change_time\030\007 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\001\022\026\n\tpage_si" - + "ze\030\010 \001(\005B\003\340A\001\022\027\n\npage_token\030\t \001(\tB\003\340A\001\"\217" - + "\001\n!SearchChangeHistoryEventsResponse\022Q\n\025" - + "change_history_events\030\001 \003(\01322.google.ana" - + "lytics.admin.v1alpha.ChangeHistoryEvent\022" - + "\027\n\017next_page_token\030\002 \001(\t\"t\n#GetMeasureme" - + "ntProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340" - + "A\002\372A9\n7analyticsadmin.googleapis.com/Mea" - + "surementProtocolSecret\"\336\001\n&CreateMeasure" - + "mentProtocolSecretRequest\022O\n\006parent\030\001 \001(" - + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com" - + "/MeasurementProtocolSecret\022c\n\033measuremen" - + "t_protocol_secret\030\002 \001(\01329.google.analyti" - + "cs.admin.v1alpha.MeasurementProtocolSecr" - + "etB\003\340A\002\"w\n&DeleteMeasurementProtocolSecr" - + "etRequest\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyti" - + "csadmin.googleapis.com/MeasurementProtoc" - + "olSecret\"\276\001\n&UpdateMeasurementProtocolSe" - + "cretRequest\022c\n\033measurement_protocol_secr" - + "et\030\001 \001(\01329.google.analytics.admin.v1alph" - + "a.MeasurementProtocolSecretB\003\340A\002\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "k\"\237\001\n%ListMeasurementProtocolSecretsRequ" - + "est\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsad" - + "min.googleapis.com/MeasurementProtocolSe" - + "cret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"\242\001\n&ListMeasurementProtocolSecretsRe" - + "sponse\022_\n\034measurement_protocol_secrets\030\001" - + " \003(\01329.google.analytics.admin.v1alpha.Me" - + "asurementProtocolSecret\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"l\n\037GetGoogleSignalsSettingsRequ" - + "est\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmi" - + "n.googleapis.com/GoogleSignalsSettings\"\267" - + "\001\n\"UpdateGoogleSignalsSettingsRequest\022[\n" - + "\027google_signals_settings\030\001 \001(\01325.google." - + "analytics.admin.v1alpha.GoogleSignalsSet" - + "tingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"\265\001\n\034CreateConve" - + "rsionEventRequest\022N\n\020conversion_event\030\001 " - + "\001(\0132/.google.analytics.admin.v1alpha.Con" - + "versionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A" - + "/\022-analyticsadmin.googleapis.com/Convers" - + "ionEvent\"`\n\031GetConversionEventRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.goog" - + "leapis.com/ConversionEvent\"c\n\034DeleteConv" - + "ersionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/" - + "\n-analyticsadmin.googleapis.com/Conversi" - + "onEvent\"\213\001\n\033ListConversionEventsRequest\022" - + "E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin." - + "googleapis.com/ConversionEvent\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListCo" - + "nversionEventsResponse\022J\n\021conversion_eve" - + "nts\030\001 \003(\0132/.google.analytics.admin.v1alp" - + "ha.ConversionEvent\022\027\n\017next_page_token\030\002 " - + "\001(\t\"|\n\'GetDisplayVideo360AdvertiserLinkR" - + "equest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;analyticsa" - + "dmin.googleapis.com/DisplayVideo360Adver" - + "tiserLink\"\247\001\n)ListDisplayVideo360Adverti" - + "serLinksRequest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022" - + ";analyticsadmin.googleapis.com/DisplayVi" - + "deo360AdvertiserLink\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"\260\001\n*ListDisplayVideo" - + "360AdvertiserLinksResponse\022i\n\"display_vi" - + "deo_360_advertiser_links\030\001 \003(\0132=.google." - + "analytics.admin.v1alpha.DisplayVideo360A" - + "dvertiserLink\022\027\n\017next_page_token\030\002 \001(\t\"\360" - + "\001\n*CreateDisplayVideo360AdvertiserLinkRe" - + "quest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022;analytics" - + "admin.googleapis.com/DisplayVideo360Adve" - + "rtiserLink\022m\n!display_video_360_advertis" - + "er_link\030\002 \001(\0132=.google.analytics.admin.v" - + "1alpha.DisplayVideo360AdvertiserLinkB\003\340A" - + "\002\"\177\n*DeleteDisplayVideo360AdvertiserLink" - + "Request\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;analytics" - + "admin.googleapis.com/DisplayVideo360Adve" - + "rtiserLink\"\314\001\n*UpdateDisplayVideo360Adve" - + "rtiserLinkRequest\022h\n!display_video_360_a" - + "dvertiser_link\030\001 \001(\0132=.google.analytics." - + "admin.v1alpha.DisplayVideo360AdvertiserL" - + "ink\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\"\214\001\n/GetDisplayVideo360" - + "AdvertiserLinkProposalRequest\022Y\n\004name\030\001 " - + "\001(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.c" - + "om/DisplayVideo360AdvertiserLinkProposal" - + "\"\267\001\n1ListDisplayVideo360AdvertiserLinkPr" - + "oposalsRequest\022[\n\006parent\030\001 \001(\tBK\340A\002\372AE\022C" - + "analyticsadmin.googleapis.com/DisplayVid" - + "eo360AdvertiserLinkProposal\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\311\001\n2ListDispl" - + "ayVideo360AdvertiserLinkProposalsRespons" - + "e\022z\n+display_video_360_advertiser_link_p" - + "roposals\030\001 \003(\0132E.google.analytics.admin." - + "v1alpha.DisplayVideo360AdvertiserLinkPro" - + "posal\022\027\n\017next_page_token\030\002 \001(\t\"\221\002\n2Creat" - + "eDisplayVideo360AdvertiserLinkProposalRe" - + "quest\022[\n\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalytics" - + "admin.googleapis.com/DisplayVideo360Adve" - + "rtiserLinkProposal\022~\n*display_video_360_" - + "advertiser_link_proposal\030\002 \001(\0132E.google." - + "analytics.admin.v1alpha.DisplayVideo360A" - + "dvertiserLinkProposalB\003\340A\002\"\217\001\n2DeleteDis" + + "n\030\002 \001(\t\"\251\001\n\031CreateFirebaseLinkRequest\022B\n" + + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.go" + + "ogleapis.com/FirebaseLink\022H\n\rfirebase_li" + + "nk\030\002 \001(\0132,.google.analytics.admin.v1alph" + + "a.FirebaseLinkB\003\340A\002\"]\n\031DeleteFirebaseLin" + + "kRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analytic" + + "sadmin.googleapis.com/FirebaseLink\"\205\001\n\030L" + + "istFirebaseLinksRequest\022B\n\006parent\030\001 \001(\tB" + + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/F" + + "irebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"z\n\031ListFirebaseLinksResponse\022" + + "D\n\016firebase_links\030\001 \003(\0132,.google.analyti" + + "cs.admin.v1alpha.FirebaseLink\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTagReques" + + "t\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin." + + "googleapis.com/GlobalSiteTag\"\256\001\n\032CreateG" + + "oogleAdsLinkRequest\022C\n\006parent\030\001 \001(\tB3\340A\002" + + "\372A-\022+analyticsadmin.googleapis.com/Googl" + + "eAdsLink\022K\n\017google_ads_link\030\002 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink" + + "B\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequest\022F\n\017" + + "google_ads_link\030\001 \001(\0132-.google.analytics" + + ".admin.v1alpha.GoogleAdsLink\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A\n\004name" + + "\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.googleapi" + + "s.com/GoogleAdsLink\"\207\001\n\031ListGoogleAdsLin" + + "ksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analy" + + "ticsadmin.googleapis.com/GoogleAdsLink\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n" + + "\032ListGoogleAdsLinksResponse\022G\n\020google_ad" + + "s_links\030\001 \003(\0132-.google.analytics.admin.v" + + "1alpha.GoogleAdsLink\022\027\n\017next_page_token\030" + + "\002 \001(\t\"h\n\035GetDataSharingSettingsRequest\022G" + + "\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmin.goo" + + "gleapis.com/DataSharingSettings\"D\n\033ListA" + + "ccountSummariesRequest\022\021\n\tpage_size\030\001 \001(" + + "\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccountSum" + + "mariesResponse\022I\n\021account_summaries\030\001 \003(" + + "\0132..google.analytics.admin.v1alpha.Accou" + + "ntSummary\022\027\n\017next_page_token\030\002 \001(\t\"\206\001\n$A" + + "cknowledgeUserDataCollectionRequest\022@\n\010p" + + "roperty\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.go" + + "ogleapis.com/Property\022\034\n\017acknowledgement" + + "\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUserDataCollec" + + "tionResponse\"\203\004\n SearchChangeHistoryEven" + + "tsRequest\022>\n\007account\030\001 \001(\tB-\340A\002\372A\'\n%anal" + + "yticsadmin.googleapis.com/Account\022@\n\010pro" + + "perty\030\002 \001(\tB.\340A\001\372A(\n&analyticsadmin.goog" + + "leapis.com/Property\022U\n\rresource_type\030\003 \003" + + "(\01629.google.analytics.admin.v1alpha.Chan" + + "geHistoryResourceTypeB\003\340A\001\022?\n\006action\030\004 \003" + + "(\0162*.google.analytics.admin.v1alpha.Acti" + + "onTypeB\003\340A\001\022\030\n\013actor_email\030\005 \003(\tB\003\340A\001\022=\n" + + "\024earliest_change_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\001\022;\n\022latest_change_ti" + + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\npage_token\030" + + "\t \001(\tB\003\340A\001\"\217\001\n!SearchChangeHistoryEvents" + + "Response\022Q\n\025change_history_events\030\001 \003(\0132" + + "2.google.analytics.admin.v1alpha.ChangeH" + + "istoryEvent\022\027\n\017next_page_token\030\002 \001(\t\"t\n#" + + "GetMeasurementProtocolSecretRequest\022M\n\004n" + + "ame\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin.google" + + "apis.com/MeasurementProtocolSecret\"\336\001\n&C" + + "reateMeasurementProtocolSecretRequest\022O\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmin.go" + + "ogleapis.com/MeasurementProtocolSecret\022c" + + "\n\033measurement_protocol_secret\030\002 \001(\01329.go" + + "ogle.analytics.admin.v1alpha.Measurement" + + "ProtocolSecretB\003\340A\002\"w\n&DeleteMeasurement" + + "ProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340A\002" + + "\372A9\n7analyticsadmin.googleapis.com/Measu" + + "rementProtocolSecret\"\276\001\n&UpdateMeasureme" + + "ntProtocolSecretRequest\022c\n\033measurement_p" + + "rotocol_secret\030\001 \001(\01329.google.analytics." + + "admin.v1alpha.MeasurementProtocolSecretB" + + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"\237\001\n%ListMeasurementProtoco" + + "lSecretsRequest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\022" + + "7analyticsadmin.googleapis.com/Measureme" + + "ntProtocolSecret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"\242\001\n&ListMeasurementProto" + + "colSecretsResponse\022_\n\034measurement_protoc" + + "ol_secrets\030\001 \003(\01329.google.analytics.admi" + + "n.v1alpha.MeasurementProtocolSecret\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"l\n\037GetGoogleSignals" + + "SettingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3a" + + "nalyticsadmin.googleapis.com/GoogleSigna" + + "lsSettings\"\267\001\n\"UpdateGoogleSignalsSettin" + + "gsRequest\022[\n\027google_signals_settings\030\001 \001" + + "(\01325.google.analytics.admin.v1alpha.Goog" + + "leSignalsSettingsB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\265\001\n" + + "\034CreateConversionEventRequest\022N\n\020convers" + + "ion_event\030\001 \001(\0132/.google.analytics.admin" + + ".v1alpha.ConversionEventB\003\340A\002\022E\n\006parent\030" + + "\002 \001(\tB5\340A\002\372A/\022-analyticsadmin.googleapis" + + ".com/ConversionEvent\"`\n\031GetConversionEve" + + "ntRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyti" + + "csadmin.googleapis.com/ConversionEvent\"c" + + "\n\034DeleteConversionEventRequest\022C\n\004name\030\001" + + " \001(\tB5\340A\002\372A/\n-analyticsadmin.googleapis." + + "com/ConversionEvent\"\213\001\n\033ListConversionEv" + + "entsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-ana" + + "lyticsadmin.googleapis.com/ConversionEve" + + "nt\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\203\001\n\034ListConversionEventsResponse\022J\n\021co" + + "nversion_events\030\001 \003(\0132/.google.analytics" + + ".admin.v1alpha.ConversionEvent\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"|\n\'GetDisplayVideo360Adv" + + "ertiserLinkRequest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=" + + "\n;analyticsadmin.googleapis.com/DisplayV" + + "ideo360AdvertiserLink\"\247\001\n)ListDisplayVid" + + "eo360AdvertiserLinksRequest\022S\n\006parent\030\001 " + + "\001(\tBC\340A\002\372A=\022;analyticsadmin.googleapis.c" + + "om/DisplayVideo360AdvertiserLink\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260\001\n*List" + + "DisplayVideo360AdvertiserLinksResponse\022i" + + "\n\"display_video_360_advertiser_links\030\001 \003" + + "(\0132=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\360\001\n*CreateDisplayVideo360Adve" + + "rtiserLinkRequest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A" + + "=\022;analyticsadmin.googleapis.com/Display" + + "Video360AdvertiserLink\022m\n!display_video_" + + "360_advertiser_link\030\002 \001(\0132=.google.analy" + + "tics.admin.v1alpha.DisplayVideo360Advert" + + "iserLinkB\003\340A\002\"\177\n*DeleteDisplayVideo360Ad" + + "vertiserLinkRequest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A" + + "=\n;analyticsadmin.googleapis.com/Display" + + "Video360AdvertiserLink\"\314\001\n*UpdateDisplay" + + "Video360AdvertiserLinkRequest\022h\n!display" + + "_video_360_advertiser_link\030\001 \001(\0132=.googl" + + "e.analytics.admin.v1alpha.DisplayVideo36" + + "0AdvertiserLink\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"\214\001\n/GetDis" + "playVideo360AdvertiserLinkProposalReques" + "t\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin." + "googleapis.com/DisplayVideo360Advertiser" - + "LinkProposal\"\220\001\n3ApproveDisplayVideo360A" - + "dvertiserLinkProposalRequest\022Y\n\004name\030\001 \001" - + "(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.co" - + "m/DisplayVideo360AdvertiserLinkProposal\"" - + "\240\001\n4ApproveDisplayVideo360AdvertiserLink" - + "ProposalResponse\022h\n!display_video_360_ad" - + "vertiser_link\030\001 \001(\0132=.google.analytics.a" - + "dmin.v1alpha.DisplayVideo360AdvertiserLi" - + "nk\"\217\001\n2CancelDisplayVideo360AdvertiserLi" - + "nkProposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\n" - + "Canalyticsadmin.googleapis.com/DisplayVi" - + "deo360AdvertiserLinkProposal\"\265\001\n\034CreateC" - + "ustomDimensionRequest\022E\n\006parent\030\001 \001(\tB5\340" - + "A\002\372A/\022-analyticsadmin.googleapis.com/Cus" - + "tomDimension\022N\n\020custom_dimension\030\002 \001(\0132/" - + ".google.analytics.admin.v1alpha.CustomDi" - + "mensionB\003\340A\002\"\237\001\n\034UpdateCustomDimensionRe" - + "quest\022I\n\020custom_dimension\030\001 \001(\0132/.google" - + ".analytics.admin.v1alpha.CustomDimension" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"\213\001\n\033ListCustomDimensionsR" - + "equest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analytic" - + "sadmin.googleapis.com/CustomDimension\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n" - + "\034ListCustomDimensionsResponse\022J\n\021custom_" - + "dimensions\030\001 \003(\0132/.google.analytics.admi" - + "n.v1alpha.CustomDimension\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"d\n\035ArchiveCustomDimensionRequ" - + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmi" - + "n.googleapis.com/CustomDimension\"`\n\031GetC" - + "ustomDimensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002" - + "\372A/\n-analyticsadmin.googleapis.com/Custo" - + "mDimension\"\251\001\n\031CreateCustomMetricRequest" - + "\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin" - + ".googleapis.com/CustomMetric\022H\n\rcustom_m" - + "etric\030\002 \001(\0132,.google.analytics.admin.v1a" - + "lpha.CustomMetricB\003\340A\002\"\226\001\n\031UpdateCustomM" - + "etricRequest\022C\n\rcustom_metric\030\001 \001(\0132,.go" - + "ogle.analytics.admin.v1alpha.CustomMetri" - + "c\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\002\"\205\001\n\030ListCustomMetricsReq" - + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsa" - + "dmin.googleapis.com/CustomMetric\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListC" - + "ustomMetricsResponse\022D\n\016custom_metrics\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.Cu" - + "stomMetric\022\027\n\017next_page_token\030\002 \001(\t\"^\n\032A" - + "rchiveCustomMetricRequest\022@\n\004name\030\001 \001(\tB" - + "2\340A\002\372A,\n*analyticsadmin.googleapis.com/C" - + "ustomMetric\"Z\n\026GetCustomMetricRequest\022@\n" + + "LinkProposal\"\267\001\n1ListDisplayVideo360Adve" + + "rtiserLinkProposalsRequest\022[\n\006parent\030\001 \001" + + "(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis.co" + + "m/DisplayVideo360AdvertiserLinkProposal\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\311" + + "\001\n2ListDisplayVideo360AdvertiserLinkProp" + + "osalsResponse\022z\n+display_video_360_adver" + + "tiser_link_proposals\030\001 \003(\0132E.google.anal" + + "ytics.admin.v1alpha.DisplayVideo360Adver" + + "tiserLinkProposal\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\221\002\n2CreateDisplayVideo360AdvertiserLi" + + "nkProposalRequest\022[\n\006parent\030\001 \001(\tBK\340A\002\372A" + + "E\022Canalyticsadmin.googleapis.com/Display" + + "Video360AdvertiserLinkProposal\022~\n*displa" + + "y_video_360_advertiser_link_proposal\030\002 \001" + + "(\0132E.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLinkProposalB\003\340A\002\"\217" + + "\001\n2DeleteDisplayVideo360AdvertiserLinkPr" + + "oposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCana" + + "lyticsadmin.googleapis.com/DisplayVideo3" + + "60AdvertiserLinkProposal\"\220\001\n3ApproveDisp" + + "layVideo360AdvertiserLinkProposalRequest" + + "\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin.g" + + "oogleapis.com/DisplayVideo360AdvertiserL" + + "inkProposal\"\240\001\n4ApproveDisplayVideo360Ad" + + "vertiserLinkProposalResponse\022h\n!display_" + + "video_360_advertiser_link\030\001 \001(\0132=.google" + + ".analytics.admin.v1alpha.DisplayVideo360" + + "AdvertiserLink\"\217\001\n2CancelDisplayVideo360" + + "AdvertiserLinkProposalRequest\022Y\n\004name\030\001 " + + "\001(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.c" + + "om/DisplayVideo360AdvertiserLinkProposal" + + "\"\265\001\n\034CreateCustomDimensionRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.google" + + "apis.com/CustomDimension\022N\n\020custom_dimen" + + "sion\030\002 \001(\0132/.google.analytics.admin.v1al" + + "pha.CustomDimensionB\003\340A\002\"\237\001\n\034UpdateCusto" + + "mDimensionRequest\022I\n\020custom_dimension\030\001 " + + "\001(\0132/.google.analytics.admin.v1alpha.Cus" + + "tomDimension\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033ListCusto" + + "mDimensionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372" + + "A/\022-analyticsadmin.googleapis.com/Custom" + + "Dimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"\203\001\n\034ListCustomDimensionsRespons" + + "e\022J\n\021custom_dimensions\030\001 \003(\0132/.google.an" + + "alytics.admin.v1alpha.CustomDimension\022\027\n" + + "\017next_page_token\030\002 \001(\t\"d\n\035ArchiveCustomD" + + "imensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-a" + + "nalyticsadmin.googleapis.com/CustomDimen" + + "sion\"`\n\031GetCustomDimensionRequest\022C\n\004nam" + + "e\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googleap" + + "is.com/CustomDimension\"\251\001\n\031CreateCustomM" + + "etricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*an" + + "alyticsadmin.googleapis.com/CustomMetric" + + "\022H\n\rcustom_metric\030\002 \001(\0132,.google.analyti" + + "cs.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n\031U" + + "pdateCustomMetricRequest\022C\n\rcustom_metri" + + "c\030\001 \001(\0132,.google.analytics.admin.v1alpha" + + ".CustomMetric\0224\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030ListCust" + + "omMetricsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A," + + "\022*analyticsadmin.googleapis.com/CustomMe" + + "tric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"z\n\031ListCustomMetricsResponse\022D\n\016cust" + + "om_metrics\030\001 \003(\0132,.google.analytics.admi" + + "n.v1alpha.CustomMetric\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"^\n\032ArchiveCustomMetricRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goog" - + "leapis.com/CustomMetric\"l\n\037GetDataRetent" - + "ionSettingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5" - + "\n3analyticsadmin.googleapis.com/DataRete" - + "ntionSettings\"\267\001\n\"UpdateDataRetentionSet" - + "tingsRequest\022[\n\027data_retention_settings\030" - + "\001 \001(\01325.google.analytics.admin.v1alpha.D" - + "ataRetentionSettingsB\003\340A\002\0224\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0022" - + "\242\232\001\n\025AnalyticsAdminService\022\223\001\n\nGetAccoun" - + "t\0221.google.analytics.admin.v1alpha.GetAc" - + "countRequest\032\'.google.analytics.admin.v1" - + "alpha.Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=ac" - + "counts/*}\332A\004name\022\224\001\n\014ListAccounts\0223.goog" - + "le.analytics.admin.v1alpha.ListAccountsR" - + "equest\0324.google.analytics.admin.v1alpha." - + "ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/a" - + "ccounts\022\210\001\n\rDeleteAccount\0224.google.analy" - + "tics.admin.v1alpha.DeleteAccountRequest\032" - + "\026.google.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alph" - + "a/{name=accounts/*}\332A\004name\022\271\001\n\rUpdateAcc" - + "ount\0224.google.analytics.admin.v1alpha.Up" - + "dateAccountRequest\032\'.google.analytics.ad" - + "min.v1alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{a" - + "ccount.name=accounts/*}:\007account\332A\023accou" - + "nt,update_mask\022\314\001\n\026ProvisionAccountTicke" - + "t\022=.google.analytics.admin.v1alpha.Provi" - + "sionAccountTicketRequest\032>.google.analyt" - + "ics.admin.v1alpha.ProvisionAccountTicket" - + "Response\"3\202\323\344\223\002-\"(/v1alpha/accounts:prov" - + "isionAccountTicket:\001*\022\264\001\n\024ListAccountSum" - + "maries\022;.google.analytics.admin.v1alpha." - + "ListAccountSummariesRequest\032<.google.ana" - + "lytics.admin.v1alpha.ListAccountSummarie" - + "sResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSumma" - + "ries\022\230\001\n\013GetProperty\0222.google.analytics." - + "admin.v1alpha.GetPropertyRequest\032(.googl" - + "e.analytics.admin.v1alpha.Property\"+\202\323\344\223" - + "\002\036\022\034/v1alpha/{name=properties/*}\332A\004name\022" - + "\234\001\n\016ListProperties\0225.google.analytics.ad" - + "min.v1alpha.ListPropertiesRequest\0326.goog" - + "le.analytics.admin.v1alpha.ListPropertie" - + "sResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243", - "\001\n\016CreateProperty\0225.google.analytics.adm" - + "in.v1alpha.CreatePropertyRequest\032(.googl" - + "e.analytics.admin.v1alpha.Property\"0\202\323\344\223" - + "\002\037\"\023/v1alpha/properties:\010property\332A\010prop" - + "erty\022\236\001\n\016DeleteProperty\0225.google.analyti" - + "cs.admin.v1alpha.DeletePropertyRequest\032(" - + ".google.analytics.admin.v1alpha.Property" - + "\"+\202\323\344\223\002\036*\034/v1alpha/{name=properties/*}\332A" - + "\004name\022\301\001\n\016UpdateProperty\0225.google.analyt" - + "ics.admin.v1alpha.UpdatePropertyRequest\032" - + "(.google.analytics.admin.v1alpha.Propert" - + "y\"N\202\323\344\223\00212%/v1alpha/{property.name=prope" - + "rties/*}:\010property\332A\024property,update_mas" - + "k\022\316\001\n\013GetUserLink\0222.google.analytics.adm" - + "in.v1alpha.GetUserLinkRequest\032(.google.a" - + "nalytics.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022" - + "&/v1alpha/{name=accounts/*/userLinks/*}Z" - + "*\022(/v1alpha/{name=properties/*/userLinks" - + "/*}\332A\004name\022\366\001\n\021BatchGetUserLinks\0228.googl" - + "e.analytics.admin.v1alpha.BatchGetUserLi" - + "nksRequest\0329.google.analytics.admin.v1al" - + "pha.BatchGetUserLinksResponse\"l\202\323\344\223\002f\022//" - + "v1alpha/{parent=accounts/*}/userLinks:ba" - + "tchGetZ3\0221/v1alpha/{parent=properties/*}" - + "/userLinks:batchGet\022\341\001\n\rListUserLinks\0224." - + "google.analytics.admin.v1alpha.ListUserL" - + "inksRequest\0325.google.analytics.admin.v1a" - + "lpha.ListUserLinksResponse\"c\202\323\344\223\002T\022&/v1a" - + "lpha/{parent=accounts/*}/userLinksZ*\022(/v" - + "1alpha/{parent=properties/*}/userLinks\332A" - + "\006parent\022\355\001\n\016AuditUserLinks\0225.google.anal" - + "ytics.admin.v1alpha.AuditUserLinksReques" - + "t\0326.google.analytics.admin.v1alpha.Audit" - + "UserLinksResponse\"l\202\323\344\223\002f\",/v1alpha/{par" - + "ent=accounts/*}/userLinks:audit:\001*Z3\"./v" - + "1alpha/{parent=properties/*}/userLinks:a" - + "udit:\001*\022\367\001\n\016CreateUserLink\0225.google.anal" - + "ytics.admin.v1alpha.CreateUserLinkReques" - + "t\032(.google.analytics.admin.v1alpha.UserL" - + "ink\"\203\001\202\323\344\223\002j\"&/v1alpha/{parent=accounts/" - + "*}/userLinks:\tuser_linkZ5\"(/v1alpha/{par" - + "ent=properties/*}/userLinks:\tuser_link\332A" - + "\020parent,user_link\022\213\002\n\024BatchCreateUserLin" - + "ks\022;.google.analytics.admin.v1alpha.Batc" - + "hCreateUserLinksRequest\032<.google.analyti" - + "cs.admin.v1alpha.BatchCreateUserLinksRes" - + "ponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts" - + "/*}/userLinks:batchCreate:\001*Z9\"4/v1alpha" - + "/{parent=properties/*}/userLinks:batchCr" - + "eate:\001*\022\204\002\n\016UpdateUserLink\0225.google.anal" - + "ytics.admin.v1alpha.UpdateUserLinkReques" - + "t\032(.google.analytics.admin.v1alpha.UserL" - + "ink\"\220\001\202\323\344\223\002~20/v1alpha/{user_link.name=a" - + "ccounts/*/userLinks/*}:\tuser_linkZ?22/v1" - + "alpha/{user_link.name=properties/*/userL" - + "inks/*}:\tuser_link\332A\tuser_link\022\213\002\n\024Batch" - + "UpdateUserLinks\022;.google.analytics.admin" - + ".v1alpha.BatchUpdateUserLinksRequest\032<.g" - + "oogle.analytics.admin.v1alpha.BatchUpdat" - + "eUserLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/{pa" - + "rent=accounts/*}/userLinks:batchUpdate:\001" - + "*Z9\"4/v1alpha/{parent=properties/*}/user" - + "Links:batchUpdate:\001*\022\302\001\n\016DeleteUserLink\022" - + "5.google.analytics.admin.v1alpha.DeleteU" - + "serLinkRequest\032\026.google.protobuf.Empty\"a" - + "\202\323\344\223\002T*&/v1alpha/{name=accounts/*/userLi" - + "nks/*}Z**(/v1alpha/{name=properties/*/us" - + "erLinks/*}\332A\004name\022\345\001\n\024BatchDeleteUserLin" - + "ks\022;.google.analytics.admin.v1alpha.Batc" - + "hDeleteUserLinksRequest\032\026.google.protobu" - + "f.Empty\"x\202\323\344\223\002r\"2/v1alpha/{parent=accoun" - + "ts/*}/userLinks:batchDelete:\001*Z9\"4/v1alp" - + "ha/{parent=properties/*}/userLinks:batch" - + "Delete:\001*\022\270\001\n\020GetWebDataStream\0227.google." - + "analytics.admin.v1alpha.GetWebDataStream" + + "leapis.com/CustomMetric\"Z\n\026GetCustomMetr" + + "icRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyti" + + "csadmin.googleapis.com/CustomMetric\"l\n\037G" + + "etDataRetentionSettingsRequest\022I\n\004name\030\001" + + " \001(\tB;\340A\002\372A5\n3analyticsadmin.googleapis." + + "com/DataRetentionSettings\"\267\001\n\"UpdateData" + + "RetentionSettingsRequest\022[\n\027data_retenti" + + "on_settings\030\001 \001(\01325.google.analytics.adm" + + "in.v1alpha.DataRetentionSettingsB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\"\241\001\n\027CreateDataStreamRequest\022" + + "@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin." + + "googleapis.com/DataStream\022D\n\013data_stream" + + "\030\002 \001(\0132*.google.analytics.admin.v1alpha." + + "DataStreamB\003\340A\002\"Y\n\027DeleteDataStreamReque" + + "st\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyticsadmin" + + ".googleapis.com/DataStream\"\220\001\n\027UpdateDat" + + "aStreamRequest\022?\n\013data_stream\030\001 \001(\0132*.go" + + "ogle.analytics.admin.v1alpha.DataStream\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\201\001\n\026ListDataStreamsRequest" + + "\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyticsadmin" + + ".googleapis.com/DataStream\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListDataStr" + + "eamsResponse\022@\n\014data_streams\030\001 \003(\0132*.goo" + + "gle.analytics.admin.v1alpha.DataStream\022\027" + + "\n\017next_page_token\030\002 \001(\t\"V\n\024GetDataStream" + + "Request\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analytics" + + "admin.googleapis.com/DataStream2\363\236\001\n\025Ana" + + "lyticsAdminService\022\223\001\n\nGetAccount\0221.goog" + + "le.analytics.admin.v1alpha.GetAccountReq" + + "uest\032\'.google.analytics.admin.v1alpha.Ac" + + "count\")\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*" + + "}\332A\004name\022\224\001\n\014ListAccounts\0223.google.analy" + + "tics.admin.v1alpha.ListAccountsRequest\0324" + + ".google.analytics.admin.v1alpha.ListAcco" + + "untsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022" + + "\210\001\n\rDeleteAccount\0224.google.analytics.adm" + + "in.v1alpha.DeleteAccountRequest\032\026.google" + + ".protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=" + + "accounts/*}\332A\004name\022\271\001\n\rUpdateAccount\0224.g" + + "oogle.analytics.admin.v1alpha.UpdateAcco" + + "untRequest\032\'.google.analytics.admin.v1al" + + "pha.Account\"I\202\323\344\223\002-2\"/v1alpha/{account.n" + + "ame=accounts/*}:\007account\332A\023account,updat" + + "e_mask\022\314\001\n\026ProvisionAccountTicket\022=.goog" + + "le.analytics.admin.v1alpha.ProvisionAcco" + + "untTicketRequest\032>.google.analytics.admi", + "n.v1alpha.ProvisionAccountTicketResponse" + + "\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisionAcc" + + "ountTicket:\001*\022\264\001\n\024ListAccountSummaries\022;" + + ".google.analytics.admin.v1alpha.ListAcco" + + "untSummariesRequest\032<.google.analytics.a" + + "dmin.v1alpha.ListAccountSummariesRespons" + + "e\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230\001\n" + + "\013GetProperty\0222.google.analytics.admin.v1" + + "alpha.GetPropertyRequest\032(.google.analyt" + + "ics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034/v1a" + + "lpha/{name=properties/*}\332A\004name\022\234\001\n\016List" + + "Properties\0225.google.analytics.admin.v1al" + + "pha.ListPropertiesRequest\0326.google.analy" + + "tics.admin.v1alpha.ListPropertiesRespons" + + "e\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016Creat" + + "eProperty\0225.google.analytics.admin.v1alp" + + "ha.CreatePropertyRequest\032(.google.analyt" + + "ics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1a" + + "lpha/properties:\010property\332A\010property\022\236\001\n" + + "\016DeleteProperty\0225.google.analytics.admin" + + ".v1alpha.DeletePropertyRequest\032(.google." + + "analytics.admin.v1alpha.Property\"+\202\323\344\223\002\036" + + "*\034/v1alpha/{name=properties/*}\332A\004name\022\301\001" + + "\n\016UpdateProperty\0225.google.analytics.admi" + + "n.v1alpha.UpdatePropertyRequest\032(.google" + + ".analytics.admin.v1alpha.Property\"N\202\323\344\223\002" + + "12%/v1alpha/{property.name=properties/*}" + + ":\010property\332A\024property,update_mask\022\316\001\n\013Ge" + + "tUserLink\0222.google.analytics.admin.v1alp" + + "ha.GetUserLinkRequest\032(.google.analytics" + + ".admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1alph" + + "a/{name=accounts/*/userLinks/*}Z*\022(/v1al" + + "pha/{name=properties/*/userLinks/*}\332A\004na" + + "me\022\366\001\n\021BatchGetUserLinks\0228.google.analyt" + + "ics.admin.v1alpha.BatchGetUserLinksReque" + + "st\0329.google.analytics.admin.v1alpha.Batc" + + "hGetUserLinksResponse\"l\202\323\344\223\002f\022//v1alpha/" + + "{parent=accounts/*}/userLinks:batchGetZ3" + + "\0221/v1alpha/{parent=properties/*}/userLin" + + "ks:batchGet\022\341\001\n\rListUserLinks\0224.google.a" + + "nalytics.admin.v1alpha.ListUserLinksRequ" + + "est\0325.google.analytics.admin.v1alpha.Lis" + + "tUserLinksResponse\"c\202\323\344\223\002T\022&/v1alpha/{pa" + + "rent=accounts/*}/userLinksZ*\022(/v1alpha/{" + + "parent=properties/*}/userLinks\332A\006parent\022" + + "\355\001\n\016AuditUserLinks\0225.google.analytics.ad" + + "min.v1alpha.AuditUserLinksRequest\0326.goog" + + "le.analytics.admin.v1alpha.AuditUserLink" + + "sResponse\"l\202\323\344\223\002f\",/v1alpha/{parent=acco" + + "unts/*}/userLinks:audit:\001*Z3\"./v1alpha/{" + + "parent=properties/*}/userLinks:audit:\001*\022" + + "\367\001\n\016CreateUserLink\0225.google.analytics.ad" + + "min.v1alpha.CreateUserLinkRequest\032(.goog" + + "le.analytics.admin.v1alpha.UserLink\"\203\001\202\323" + + "\344\223\002j\"&/v1alpha/{parent=accounts/*}/userL" + + "inks:\tuser_linkZ5\"(/v1alpha/{parent=prop" + + "erties/*}/userLinks:\tuser_link\332A\020parent," + + "user_link\022\213\002\n\024BatchCreateUserLinks\022;.goo" + + "gle.analytics.admin.v1alpha.BatchCreateU" + + "serLinksRequest\032<.google.analytics.admin" + + ".v1alpha.BatchCreateUserLinksResponse\"x\202" + + "\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/user" + + "Links:batchCreate:\001*Z9\"4/v1alpha/{parent" + + "=properties/*}/userLinks:batchCreate:\001*\022" + + "\204\002\n\016UpdateUserLink\0225.google.analytics.ad" + + "min.v1alpha.UpdateUserLinkRequest\032(.goog" + + "le.analytics.admin.v1alpha.UserLink\"\220\001\202\323" + + "\344\223\002~20/v1alpha/{user_link.name=accounts/" + + "*/userLinks/*}:\tuser_linkZ?22/v1alpha/{u" + + "ser_link.name=properties/*/userLinks/*}:" + + "\tuser_link\332A\tuser_link\022\213\002\n\024BatchUpdateUs" + + "erLinks\022;.google.analytics.admin.v1alpha" + + ".BatchUpdateUserLinksRequest\032<.google.an" + + "alytics.admin.v1alpha.BatchUpdateUserLin" + + "ksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=acc" + + "ounts/*}/userLinks:batchUpdate:\001*Z9\"4/v1" + + "alpha/{parent=properties/*}/userLinks:ba" + + "tchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225.google" + + ".analytics.admin.v1alpha.DeleteUserLinkR" + + "equest\032\026.google.protobuf.Empty\"a\202\323\344\223\002T*&" + + "/v1alpha/{name=accounts/*/userLinks/*}Z*" + + "*(/v1alpha/{name=properties/*/userLinks/" + + "*}\332A\004name\022\345\001\n\024BatchDeleteUserLinks\022;.goo" + + "gle.analytics.admin.v1alpha.BatchDeleteU" + + "serLinksRequest\032\026.google.protobuf.Empty\"" + + "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" - + ".WebDataStream\"<\202\323\344\223\002/\022-/v1alpha/{name=p" - + "roperties/*/webDataStreams/*}\332A\004name\022\247\001\n" - + "\023DeleteWebDataStream\022:.google.analytics." - + "admin.v1alpha.DeleteWebDataStreamRequest" - + "\032\026.google.protobuf.Empty\"<\202\323\344\223\002/*-/v1alp" - + "ha/{name=properties/*/webDataStreams/*}\332" - + "A\004name\022\366\001\n\023UpdateWebDataStream\022:.google." - + "analytics.admin.v1alpha.UpdateWebDataStr" - + "eamRequest\032-.google.analytics.admin.v1al" - + "pha.WebDataStream\"t\202\323\344\223\002P2=/v1alpha/{web" - + "_data_stream.name=properties/*/webDataSt" - + "reams/*}:\017web_data_stream\332A\033web_data_str" - + "eam,update_mask\022\341\001\n\023CreateWebDataStream\022" - + ":.google.analytics.admin.v1alpha.CreateW" - + "ebDataStreamRequest\032-.google.analytics.a" - + "dmin.v1alpha.WebDataStream\"_\202\323\344\223\002@\"-/v1a" - + "lpha/{parent=properties/*}/webDataStream" - + "s:\017web_data_stream\332A\026parent,web_data_str" - + "eam\022\313\001\n\022ListWebDataStreams\0229.google.anal" - + "ytics.admin.v1alpha.ListWebDataStreamsRe" - + "quest\032:.google.analytics.admin.v1alpha.L" - + "istWebDataStreamsResponse\">\202\323\344\223\002/\022-/v1al" - + "pha/{parent=properties/*}/webDataStreams" - + "\332A\006parent\022\304\001\n\023GetIosAppDataStream\022:.goog" - + "le.analytics.admin.v1alpha.GetIosAppData" - + "StreamRequest\0320.google.analytics.admin.v" - + "1alpha.IosAppDataStream\"?\202\323\344\223\0022\0220/v1alph" - + "a/{name=properties/*/iosAppDataStreams/*" - + "}\332A\004name\022\260\001\n\026DeleteIosAppDataStream\022=.go" - + "ogle.analytics.admin.v1alpha.DeleteIosAp" - + "pDataStreamRequest\032\026.google.protobuf.Emp" - + "ty\"?\202\323\344\223\0022*0/v1alpha/{name=properties/*/" - + "iosAppDataStreams/*}\332A\004name\022\217\002\n\026UpdateIo" - + "sAppDataStream\022=.google.analytics.admin." - + "v1alpha.UpdateIosAppDataStreamRequest\0320." - + "google.analytics.admin.v1alpha.IosAppDat" - + "aStream\"\203\001\202\323\344\223\002[2D/v1alpha/{ios_app_data" - + "_stream.name=properties/*/iosAppDataStre" - + "ams/*}:\023ios_app_data_stream\332A\037ios_app_da" - + "ta_stream,update_mask\022\327\001\n\025ListIosAppData" - + "Streams\022<.google.analytics.admin.v1alpha" - + ".ListIosAppDataStreamsRequest\032=.google.a" - + "nalytics.admin.v1alpha.ListIosAppDataStr" - + "eamsResponse\"A\202\323\344\223\0022\0220/v1alpha/{parent=p" - + "roperties/*}/iosAppDataStreams\332A\006parent\022" - + "\324\001\n\027GetAndroidAppDataStream\022>.google.ana" - + "lytics.admin.v1alpha.GetAndroidAppDataSt" - + "reamRequest\0324.google.analytics.admin.v1a" - + "lpha.AndroidAppDataStream\"C\202\323\344\223\0026\0224/v1al" - + "pha/{name=properties/*/androidAppDataStr" - + "eams/*}\332A\004name\022\274\001\n\032DeleteAndroidAppDataS" - + "tream\022A.google.analytics.admin.v1alpha.D" - + "eleteAndroidAppDataStreamRequest\032\026.googl" - + "e.protobuf.Empty\"C\202\323\344\223\0026*4/v1alpha/{name" - + "=properties/*/androidAppDataStreams/*}\332A" - + "\004name\022\253\002\n\032UpdateAndroidAppDataStream\022A.g" - + "oogle.analytics.admin.v1alpha.UpdateAndr" - + "oidAppDataStreamRequest\0324.google.analyti" - + "cs.admin.v1alpha.AndroidAppDataStream\"\223\001" - + "\202\323\344\223\002g2L/v1alpha/{android_app_data_strea" - + "m.name=properties/*/androidAppDataStream" - + "s/*}:\027android_app_data_stream\332A#android_" - + "app_data_stream,update_mask\022\347\001\n\031ListAndr" - + "oidAppDataStreams\022@.google.analytics.adm" - + "in.v1alpha.ListAndroidAppDataStreamsRequ" - + "est\032A.google.analytics.admin.v1alpha.Lis" - + "tAndroidAppDataStreamsResponse\"E\202\323\344\223\0026\0224" - + "/v1alpha/{parent=properties/*}/androidAp" - + "pDataStreams\332A\006parent\022\376\001\n\036GetEnhancedMea" - + "surementSettings\022E.google.analytics.admi" - + "n.v1alpha.GetEnhancedMeasurementSettings" - + "Request\032;.google.analytics.admin.v1alpha" - + ".EnhancedMeasurementSettings\"X\202\323\344\223\002K\022I/v" - + "1alpha/{name=properties/*/webDataStreams" - + "/*/enhancedMeasurementSettings}\332A\004name\022\350" - + "\002\n!UpdateEnhancedMeasurementSettings\022H.g" - + "oogle.analytics.admin.v1alpha.UpdateEnha" - + "ncedMeasurementSettingsRequest\032;.google." - + "analytics.admin.v1alpha.EnhancedMeasurem" - + "entSettings\"\273\001\202\323\344\223\002\210\0012g/v1alpha/{enhance" - + "d_measurement_settings.name=properties/*" - + "/webDataStreams/*/enhancedMeasurementSet" - + "tings}:\035enhanced_measurement_settings\332A)" - + "enhanced_measurement_settings,update_mas" - + "k\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\306\001\n\020GetGl" - + "obalSiteTag\0227.google.analytics.admin.v1a" - + "lpha.GetGlobalSiteTagRequest\032-.google.an" - + "alytics.admin.v1alpha.GlobalSiteTag\"J\202\323\344" - + "\223\002=\022;/v1alpha/{name=properties/*/webData" - + "Streams/*/globalSiteTag}\332A\004name\022\341\001\n\023Crea" + + ".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.CreateGoogleAdsLinkRequest\032-.go" + + ".v1alpha.UpdateGoogleAdsLinkRequest\032-.go" + "ogle.analytics.admin.v1alpha.GoogleAdsLi" - + "nk\"_\202\323\344\223\002@\"-/v1alpha/{parent=properties/" - + "*}/googleAdsLinks:\017google_ads_link\332A\026par" - + "ent,google_ads_link\022\366\001\n\023UpdateGoogleAdsL" - + "ink\022:.google.analytics.admin.v1alpha.Upd" - + "ateGoogleAdsLinkRequest\032-.google.analyti" - + "cs.admin.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=" - + "/v1alpha/{google_ads_link.name=propertie" - + "s/*/googleAdsLinks/*}:\017google_ads_link\332A" - + "\033google_ads_link,update_mask\022\247\001\n\023DeleteG" - + "oogleAdsLink\022:.google.analytics.admin.v1" - + "alpha.DeleteGoogleAdsLinkRequest\032\026.googl" - + "e.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name" - + "=properties/*/googleAdsLinks/*}\332A\004name\022\313" - + "\001\n\022ListGoogleAdsLinks\0229.google.analytics" - + ".admin.v1alpha.ListGoogleAdsLinksRequest" - + "\032:.google.analytics.admin.v1alpha.ListGo" - + "ogleAdsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{" - + "parent=properties/*}/googleAdsLinks\332A\006pa" - + "rent\022\313\001\n\026GetDataSharingSettings\022=.google" - + ".analytics.admin.v1alpha.GetDataSharingS" - + "ettingsRequest\0323.google.analytics.admin." - + "v1alpha.DataSharingSettings\"=\202\323\344\223\0020\022./v1" - + "alpha/{name=accounts/*/dataSharingSettin" - + "gs}\332A\004name\022\241\003\n\034GetMeasurementProtocolSec" - + "ret\022C.google.analytics.admin.v1alpha.Get" - + "MeasurementProtocolSecretRequest\0329.googl" - + "e.analytics.admin.v1alpha.MeasurementPro" - + "tocolSecret\"\200\002\202\323\344\223\002\362\001\022J/v1alpha/{name=pr" - + "operties/*/webDataStreams/*/measurementP" - + "rotocolSecrets/*}ZO\022M/v1alpha/{name=prop" - + "erties/*/iosAppDataStreams/*/measurement" - + "ProtocolSecrets/*}ZS\022Q/v1alpha/{name=pro" - + "perties/*/androidAppDataStreams/*/measur" - + "ementProtocolSecrets/*}\332A\004name\022\264\003\n\036ListM" - + "easurementProtocolSecrets\022E.google.analy" - + "tics.admin.v1alpha.ListMeasurementProtoc" - + "olSecretsRequest\032F.google.analytics.admi" - + "n.v1alpha.ListMeasurementProtocolSecrets" - + "Response\"\202\002\202\323\344\223\002\362\001\022J/v1alpha/{parent=pro" + + "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" + + "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" - + "rotocolSecretsZO\022M/v1alpha/{parent=prope" - + "rties/*/iosAppDataStreams/*}/measurement" - + "ProtocolSecretsZS\022Q/v1alpha/{parent=prop" - + "erties/*/androidAppDataStreams/*}/measur" - + "ementProtocolSecrets\332A\006parent\022\234\004\n\037Create" - + "MeasurementProtocolSecret\022F.google.analy" - + "tics.admin.v1alpha.CreateMeasurementProt" - + "ocolSecretRequest\0329.google.analytics.adm" - + "in.v1alpha.MeasurementProtocolSecret\"\365\002\202" - + "\323\344\223\002\311\002\"J/v1alpha/{parent=properties/*/we" - + "bDataStreams/*}/measurementProtocolSecre" - + "ts:\033measurement_protocol_secretZl\"M/v1al" - + "pha/{parent=properties/*/iosAppDataStrea" - + "ms/*}/measurementProtocolSecrets:\033measur" - + "ement_protocol_secretZp\"Q/v1alpha/{paren" - + "t=properties/*/androidAppDataStreams/*}/" - + "measurementProtocolSecrets:\033measurement_" - + "protocol_secret\332A\"parent,measurement_pro" - + "tocol_secret\022\204\003\n\037DeleteMeasurementProtoc" - + "olSecret\022F.google.analytics.admin.v1alph" - + "a.DeleteMeasurementProtocolSecretRequest" - + "\032\026.google.protobuf.Empty\"\200\002\202\323\344\223\002\362\001*J/v1a" - + "lpha/{name=properties/*/webDataStreams/*" - + "/measurementProtocolSecrets/*}ZO*M/v1alp" - + "ha/{name=properties/*/iosAppDataStreams/" - + "*/measurementProtocolSecrets/*}ZS*Q/v1al" - + "pha/{name=properties/*/androidAppDataStr" - + "eams/*/measurementProtocolSecrets/*}\332A\004n" - + "ame\022\367\004\n\037UpdateMeasurementProtocolSecret\022" - + "F.google.analytics.admin.v1alpha.UpdateM" - + "easurementProtocolSecretRequest\0329.google" - + ".analytics.admin.v1alpha.MeasurementProt" - + "ocolSecret\"\320\003\202\323\344\223\002\237\0032f/v1alpha/{measurem" - + "ent_protocol_secret.name=properties/*/we" - + "bDataStreams/*/measurementProtocolSecret" - + "s/*}:\033measurement_protocol_secretZ\210\0012i/v" - + "1alpha/{measurement_protocol_secret.name" - + "=properties/*/iosAppDataStreams/*/measur" - + "ementProtocolSecrets/*}:\033measurement_pro" - + "tocol_secretZ\214\0012m/v1alpha/{measurement_p" - + "rotocol_secret.name=properties/*/android" - + "AppDataStreams/*/measurementProtocolSecr" - + "ets/*}:\033measurement_protocol_secret\332A\'me" - + "asurement_protocol_secret,update_mask\022\344\001" - + "\n\031SearchChangeHistoryEvents\022@.google.ana" - + "lytics.admin.v1alpha.SearchChangeHistory" - + "EventsRequest\032A.google.analytics.admin.v" - + "1alpha.SearchChangeHistoryEventsResponse" - + "\"B\202\323\344\223\002<\"7/v1alpha/{account=accounts/*}:" - + "searchChangeHistoryEvents:\001*\022\325\001\n\030GetGoog" - + "leSignalsSettings\022?.google.analytics.adm" - + "in.v1alpha.GetGoogleSignalsSettingsReque" - + "st\0325.google.analytics.admin.v1alpha.Goog" - + "leSignalsSettings\"A\202\323\344\223\0024\0222/v1alpha/{nam" - + "e=properties/*/googleSignalsSettings}\332A\004" - + "name\022\254\002\n\033UpdateGoogleSignalsSettings\022B.g" - + "oogle.analytics.admin.v1alpha.UpdateGoog" + + "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\"" - + "\221\001\202\323\344\223\002e2J/v1alpha/{google_signals_setti" - + "ngs.name=properties/*/googleSignalsSetti" - + "ngs}:\027google_signals_settings\332A#google_s" - + "ignals_settings,update_mask\022\353\001\n\025CreateCo" - + "nversionEvent\022<.google.analytics.admin.v" - + "1alpha.CreateConversionEventRequest\032/.go" - + "ogle.analytics.admin.v1alpha.ConversionE" - + "vent\"c\202\323\344\223\002C\"//v1alpha/{parent=propertie" - + "s/*}/conversionEvents:\020conversion_event\332" - + "A\027parent,conversion_event\022\300\001\n\022GetConvers" - + "ionEvent\0229.google.analytics.admin.v1alph" - + "a.GetConversionEventRequest\032/.google.ana" - + "lytics.admin.v1alpha.ConversionEvent\">\202\323" - + "\344\223\0021\022//v1alpha/{name=properties/*/conver" - + "sionEvents/*}\332A\004name\022\255\001\n\025DeleteConversio" - + "nEvent\022<.google.analytics.admin.v1alpha." - + "DeleteConversionEventRequest\032\026.google.pr" - + "otobuf.Empty\">\202\323\344\223\0021*//v1alpha/{name=pro" - + "perties/*/conversionEvents/*}\332A\004name\022\323\001\n" - + "\024ListConversionEvents\022;.google.analytics" - + ".admin.v1alpha.ListConversionEventsReque" - + "st\032<.google.analytics.admin.v1alpha.List" - + "ConversionEventsResponse\"@\202\323\344\223\0021\022//v1alp" - + "ha/{parent=properties/*}/conversionEvent" - + "s\332A\006parent\022\370\001\n GetDisplayVideo360Adverti" - + "serLink\022G.google.analytics.admin.v1alpha" - + ".GetDisplayVideo360AdvertiserLinkRequest" - + "\032=.google.analytics.admin.v1alpha.Displa" - + "yVideo360AdvertiserLink\"L\202\323\344\223\002?\022=/v1alph" - + "a/{name=properties/*/displayVideo360Adve" - + "rtiserLinks/*}\332A\004name\022\213\002\n\"ListDisplayVid" - + "eo360AdvertiserLinks\022I.google.analytics." - + "admin.v1alpha.ListDisplayVideo360Adverti" - + "serLinksRequest\032J.google.analytics.admin" - + ".v1alpha.ListDisplayVideo360AdvertiserLi" - + "nksResponse\"N\202\323\344\223\002?\022=/v1alpha/{parent=pr" - + "operties/*}/displayVideo360AdvertiserLin" - + "ks\332A\006parent\022\306\002\n#CreateDisplayVideo360Adv" - + "ertiserLink\022J.google.analytics.admin.v1a" - + "lpha.CreateDisplayVideo360AdvertiserLink" - + "Request\032=.google.analytics.admin.v1alpha" - + ".DisplayVideo360AdvertiserLink\"\223\001\202\323\344\223\002b\"" - + "=/v1alpha/{parent=properties/*}/displayV" - + "ideo360AdvertiserLinks:!display_video_36" - + "0_advertiser_link\332A(parent,display_video" - + "_360_advertiser_link\022\327\001\n#DeleteDisplayVi" + + "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.DeleteDisplayVideo360Adver" - + "tiserLinkRequest\032\026.google.protobuf.Empty" - + "\"L\202\323\344\223\002?*=/v1alpha/{name=properties/*/di" - + "splayVideo360AdvertiserLinks/*}\332A\004name\022\356" - + "\002\n#UpdateDisplayVideo360AdvertiserLink\022J" - + ".google.analytics.admin.v1alpha.UpdateDi" - + "splayVideo360AdvertiserLinkRequest\032=.goo" - + "gle.analytics.admin.v1alpha.DisplayVideo" - + "360AdvertiserLink\"\273\001\202\323\344\223\002\204\0012_/v1alpha/{d" - + "isplay_video_360_advertiser_link.name=pr" - + "operties/*/displayVideo360AdvertiserLink" - + "s/*}:!display_video_360_advertiser_link\332" - + "A-display_video_360_advertiser_link,upda" - + "te_mask\022\230\002\n(GetDisplayVideo360Advertiser" - + "LinkProposal\022O.google.analytics.admin.v1" - + "alpha.GetDisplayVideo360AdvertiserLinkPr" - + "oposalRequest\032E.google.analytics.admin.v" - + "1alpha.DisplayVideo360AdvertiserLinkProp" - + "osal\"T\202\323\344\223\002G\022E/v1alpha/{name=properties/" - + "*/displayVideo360AdvertiserLinkProposals" - + "/*}\332A\004name\022\253\002\n*ListDisplayVideo360Advert" - + "iserLinkProposals\022Q.google.analytics.adm" - + "in.v1alpha.ListDisplayVideo360Advertiser" - + "LinkProposalsRequest\032R.google.analytics." - + "admin.v1alpha.ListDisplayVideo360Adverti" - + "serLinkProposalsResponse\"V\202\323\344\223\002G\022E/v1alp" - + "ha/{parent=properties/*}/displayVideo360" - + "AdvertiserLinkProposals\332A\006parent\022\370\002\n+Cre" - + "ateDisplayVideo360AdvertiserLinkProposal" - + "\022R.google.analytics.admin.v1alpha.Create" - + "DisplayVideo360AdvertiserLinkProposalReq" - + "uest\032E.google.analytics.admin.v1alpha.Di" - + "splayVideo360AdvertiserLinkProposal\"\255\001\202\323" - + "\344\223\002s\"E/v1alpha/{parent=properties/*}/dis" - + "playVideo360AdvertiserLinkProposals:*dis" - + "play_video_360_advertiser_link_proposal\332" - + "A1parent,display_video_360_advertiser_li" - + "nk_proposal\022\357\001\n+DeleteDisplayVideo360Adv" - + "ertiserLinkProposal\022R.google.analytics.a" - + "dmin.v1alpha.DeleteDisplayVideo360Advert" - + "iserLinkProposalRequest\032\026.google.protobu" - + "f.Empty\"T\202\323\344\223\002G*E/v1alpha/{name=properti" - + "es/*/displayVideo360AdvertiserLinkPropos" - + "als/*}\332A\004name\022\263\002\n,ApproveDisplayVideo360" - + "AdvertiserLinkProposal\022S.google.analytic" - + "s.admin.v1alpha.ApproveDisplayVideo360Ad" - + "vertiserLinkProposalRequest\032T.google.ana" - + "lytics.admin.v1alpha.ApproveDisplayVideo" - + "360AdvertiserLinkProposalResponse\"X\202\323\344\223\002" - + "R\"M/v1alpha/{name=properties/*/displayVi" - + "deo360AdvertiserLinkProposals/*}:approve" - + ":\001*\022\241\002\n+CancelDisplayVideo360AdvertiserL" - + "inkProposal\022R.google.analytics.admin.v1a" - + "lpha.CancelDisplayVideo360AdvertiserLink" - + "ProposalRequest\032E.google.analytics.admin" - + ".v1alpha.DisplayVideo360AdvertiserLinkPr" - + "oposal\"W\202\323\344\223\002Q\"L/v1alpha/{name=propertie" - + "s/*/displayVideo360AdvertiserLinkProposa" - + "ls/*}:cancel:\001*\022\353\001\n\025CreateCustomDimensio" - + "n\022<.google.analytics.admin.v1alpha.Creat" - + "eCustomDimensionRequest\032/.google.analyti" - + "cs.admin.v1alpha.CustomDimension\"c\202\323\344\223\002C" - + "\"//v1alpha/{parent=properties/*}/customD" - + "imensions:\020custom_dimension\332A\027parent,cus" - + "tom_dimension\022\201\002\n\025UpdateCustomDimension\022" - + "<.google.analytics.admin.v1alpha.UpdateC" - + "ustomDimensionRequest\032/.google.analytics" - + ".admin.v1alpha.CustomDimension\"y\202\323\344\223\002T2@" - + "/v1alpha/{custom_dimension.name=properti" - + "es/*/customDimensions/*}:\020custom_dimensi" - + "on\332A\034custom_dimension,update_mask\022\323\001\n\024Li", - "stCustomDimensions\022;.google.analytics.ad" - + "min.v1alpha.ListCustomDimensionsRequest\032" - + "<.google.analytics.admin.v1alpha.ListCus" - + "tomDimensionsResponse\"@\202\323\344\223\0021\022//v1alpha/" - + "{parent=properties/*}/customDimensions\332A" - + "\006parent\022\272\001\n\026ArchiveCustomDimension\022=.goo" - + "gle.analytics.admin.v1alpha.ArchiveCusto" - + "mDimensionRequest\032\026.google.protobuf.Empt" - + "y\"I\202\323\344\223\002<\"7/v1alpha/{name=properties/*/c" - + "ustomDimensions/*}:archive:\001*\332A\004name\022\300\001\n" - + "\022GetCustomDimension\0229.google.analytics.a" - + "dmin.v1alpha.GetCustomDimensionRequest\032/" - + ".google.analytics.admin.v1alpha.CustomDi" - + "mension\">\202\323\344\223\0021\022//v1alpha/{name=properti" - + "es/*/customDimensions/*}\332A\004name\022\331\001\n\022Crea" - + "teCustomMetric\0229.google.analytics.admin." - + "v1alpha.CreateCustomMetricRequest\032,.goog" - + "le.analytics.admin.v1alpha.CustomMetric\"" - + "Z\202\323\344\223\002=\",/v1alpha/{parent=properties/*}/" - + "customMetrics:\rcustom_metric\332A\024parent,cu" - + "stom_metric\022\354\001\n\022UpdateCustomMetric\0229.goo" - + "gle.analytics.admin.v1alpha.UpdateCustom" - + "MetricRequest\032,.google.analytics.admin.v" - + "1alpha.CustomMetric\"m\202\323\344\223\002K2:/v1alpha/{c" - + "ustom_metric.name=properties/*/customMet" - + "rics/*}:\rcustom_metric\332A\031custom_metric,u" - + "pdate_mask\022\307\001\n\021ListCustomMetrics\0228.googl" + + "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" + + "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" - + "icsRequest\0329.google.analytics.admin.v1al" - + "pha.ListCustomMetricsResponse\"=\202\323\344\223\002.\022,/" - + "v1alpha/{parent=properties/*}/customMetr" - + "ics\332A\006parent\022\261\001\n\023ArchiveCustomMetric\022:.g" - + "oogle.analytics.admin.v1alpha.ArchiveCus" - + "tomMetricRequest\032\026.google.protobuf.Empty" - + "\"F\202\323\344\223\0029\"4/v1alpha/{name=properties/*/cu" - + "stomMetrics/*}:archive:\001*\332A\004name\022\264\001\n\017Get" - + "CustomMetric\0226.google.analytics.admin.v1" - + "alpha.GetCustomMetricRequest\032,.google.an" - + "alytics.admin.v1alpha.CustomMetric\";\202\323\344\223" - + "\002.\022,/v1alpha/{name=properties/*/customMe" - + "trics/*}\332A\004name\022\325\001\n\030GetDataRetentionSett" - + "ings\022?.google.analytics.admin.v1alpha.Ge" - + "tDataRetentionSettingsRequest\0325.google.a" - + "nalytics.admin.v1alpha.DataRetentionSett" - + "ings\"A\202\323\344\223\0024\0222/v1alpha/{name=properties/" - + "*/dataRetentionSettings}\332A\004name\022\254\002\n\033Upda" - + "teDataRetentionSettings\022B.google.analyti" - + "cs.admin.v1alpha.UpdateDataRetentionSett" + + "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\"\221\001\202\323\344\223\002e2J/v1" - + "alpha/{data_retention_settings.name=prop" - + "erties/*/dataRetentionSettings}:\027data_re" - + "tention_settings\332A#data_retention_settin" - + "gs,update_mask\032\374\001\312A\035analyticsadmin.googl" - + "eapis.com\322A\330\001https://www.googleapis.com/" - + "auth/analytics.edit,https://www.googleap" - + "is.com/auth/analytics.manage.users,https" - + "://www.googleapis.com/auth/analytics.man" - + "age.users.readonly,https://www.googleapi" - + "s.com/auth/analytics.readonlyB\200\001\n\"com.go" - + "ogle.analytics.admin.v1alphaB\023AnalyticsA" - + "dminProtoP\001ZCgoogle.golang.org/genproto/" - + "googleapis/analytics/admin/v1alpha;admin" - + "b\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1674,24 +1727,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AndroidAppDataStreams", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, - new java.lang.String[] { - "EnhancedMeasurementSettings", "UpdateMask", - }); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, @@ -1699,7 +1736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirebaseLink", }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -1707,7 +1744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -1715,7 +1752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -1723,7 +1760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -1731,7 +1768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -1739,7 +1776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -1747,7 +1784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -1755,7 +1792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -1763,7 +1800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -1771,7 +1808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -1779,7 +1816,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -1787,13 +1824,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, new java.lang.String[] { "AccountSummaries", "NextPageToken", }); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, + new java.lang.String[] { + "Property", "Acknowledgement", + }); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = + getDescriptor().getMessageTypes().get(58); + 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); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = @@ -2146,6 +2197,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DataRetentionSettings", "UpdateMask", }); + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(102); + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, + new java.lang.String[] { + "Parent", "DataStream", + }); + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(103); + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(104); + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, + new java.lang.String[] { + "DataStream", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(105); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(106); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, + new java.lang.String[] { + "DataStreams", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(107); + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java index 0beb0db5..efa6d550 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java @@ -253,7 +253,7 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -270,7 +270,7 @@ public com.google.protobuf.ProtocolStringList getDirectRolesList() { * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -287,7 +287,7 @@ public int getDirectRolesCount() { * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -305,7 +305,7 @@ public java.lang.String getDirectRoles(int index) { * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -327,7 +327,7 @@ public com.google.protobuf.ByteString getDirectRolesBytes(int index) { *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -343,7 +343,7 @@ public com.google.protobuf.ProtocolStringList getEffectiveRolesList() { *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -359,7 +359,7 @@ public int getEffectiveRolesCount() { *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -376,7 +376,7 @@ public java.lang.String getEffectiveRoles(int index) { *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -1016,7 +1016,7 @@ private void ensureDirectRolesIsMutable() { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1033,7 +1033,7 @@ public com.google.protobuf.ProtocolStringList getDirectRolesList() { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1050,7 +1050,7 @@ public int getDirectRolesCount() { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1068,7 +1068,7 @@ public java.lang.String getDirectRoles(int index) { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1086,7 +1086,7 @@ public com.google.protobuf.ByteString getDirectRolesBytes(int index) { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1111,7 +1111,7 @@ public Builder setDirectRoles(int index, java.lang.String value) { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1135,7 +1135,7 @@ public Builder addDirectRoles(java.lang.String value) { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1156,7 +1156,7 @@ public Builder addAllDirectRoles(java.lang.Iterable values) { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1176,7 +1176,7 @@ public Builder clearDirectRoles() { * *
      * Roles directly assigned to this user for this entity.
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * Excludes roles that are inherited from an account (if this is for a
      * property), group, or organization admin role.
      * 
@@ -1212,7 +1212,7 @@ private void ensureEffectiveRolesIsMutable() { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1228,7 +1228,7 @@ public com.google.protobuf.ProtocolStringList getEffectiveRolesList() { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1244,7 +1244,7 @@ public int getEffectiveRolesCount() { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1261,7 +1261,7 @@ public java.lang.String getEffectiveRoles(int index) { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1278,7 +1278,7 @@ public com.google.protobuf.ByteString getEffectiveRolesBytes(int index) { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1302,7 +1302,7 @@ public Builder setEffectiveRoles(int index, java.lang.String value) { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1325,7 +1325,7 @@ public Builder addEffectiveRoles(java.lang.String value) { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1345,7 +1345,7 @@ public Builder addAllEffectiveRoles(java.lang.Iterable values) *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; @@ -1364,7 +1364,7 @@ public Builder clearEffectiveRoles() { *
      * Union of all permissions a user has at this account or property (includes
      * direct permissions, group-inherited permissions, etc.).
-     * Format: predefinedRoles/read
+     * Format: predefinedRoles/viewer
      * 
* * repeated string effective_roles = 4; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java index f2b9d26a..fa33e7f4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java @@ -78,7 +78,7 @@ public interface AuditUserLinkOrBuilder * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -93,7 +93,7 @@ public interface AuditUserLinkOrBuilder * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -108,7 +108,7 @@ public interface AuditUserLinkOrBuilder * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -124,7 +124,7 @@ public interface AuditUserLinkOrBuilder * *
    * Roles directly assigned to this user for this entity.
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * Excludes roles that are inherited from an account (if this is for a
    * property), group, or organization admin role.
    * 
@@ -142,7 +142,7 @@ public interface AuditUserLinkOrBuilder *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -156,7 +156,7 @@ public interface AuditUserLinkOrBuilder *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -170,7 +170,7 @@ public interface AuditUserLinkOrBuilder *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; @@ -185,7 +185,7 @@ public interface AuditUserLinkOrBuilder *
    * Union of all permissions a user has at this account or property (includes
    * direct permissions, group-inherited permissions, etc.).
-   * Format: predefinedRoles/read
+   * Format: predefinedRoles/viewer
    * 
* * repeated string effective_roles = 4; 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 ac15b7ca..6e192a50 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 @@ -168,6 +168,26 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DATA_RETENTION_SETTINGS = 13; */ DATA_RETENTION_SETTINGS(13), + /** + * + * + *
+   * DisplayVideo360AdvertiserLink resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + DISPLAY_VIDEO_360_ADVERTISER_LINK(14), + /** + * + * + *
+   * DisplayVideo360AdvertiserLinkProposal resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), UNRECOGNIZED(-1), ; @@ -311,6 +331,26 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * DATA_RETENTION_SETTINGS = 13; */ public static final int DATA_RETENTION_SETTINGS_VALUE = 13; + /** + * + * + *
+   * DisplayVideo360AdvertiserLink resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_VALUE = 14; + /** + * + * + *
+   * DisplayVideo360AdvertiserLinkProposal resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -364,6 +404,10 @@ public static ChangeHistoryResourceType forNumber(int value) { return CUSTOM_METRIC; case 13: return DATA_RETENTION_SETTINGS; + case 14: + return DISPLAY_VIDEO_360_ADVERTISER_LINK; + case 15: + return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; default: return null; } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java new file mode 100644 index 00000000..ad64d8a1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java @@ -0,0 +1,953 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} + */ +public final class CreateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) + CreateDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDataStreamRequest.newBuilder() to construct. + private CreateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDataStreamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateDataStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.DataStream.Builder subBuilder = null; + if (dataStream_ != null) { + subBuilder = dataStream_.toBuilder(); + } + dataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataStream_); + dataStream_ = 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_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STREAM_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return dataStream_ != null; + } + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + return getDataStream(); + } + + 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 (dataStream_ != null) { + output.writeMessage(2, getDataStream()); + } + 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 (dataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataStream()); + } + 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.CreateDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateDataStreamRequest other = + (com.google.analytics.admin.v1alpha.CreateDataStreamRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDataStream() != other.hasDataStream()) return false; + if (hasDataStream()) { + if (!getDataStream().equals(other.getDataStream())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDataStream()) { + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest 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.CreateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest 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.CreateDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest 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.CreateDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest 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.CreateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest 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.CreateDataStreamRequest 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.CreateDataStreamRequest 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.CreateDataStreamRequest 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 CreateDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) + com.google.analytics.admin.v1alpha.CreateDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateDataStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (dataStreamBuilder_ == null) { + dataStream_ = null; + } else { + dataStream_ = null; + dataStreamBuilder_ = 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_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest build() { + com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = + new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(this); + result.parent_ = parent_; + if (dataStreamBuilder_ == null) { + result.dataStream_ = dataStream_; + } else { + result.dataStream_ = dataStreamBuilder_.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.CreateDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasDataStream()) { + mergeDataStream(other.getDataStream()); + } + 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.CreateDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateDataStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + 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_; + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + public boolean hasDataStream() { + return dataStreamBuilder_ != null || dataStream_ != null; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } else { + return dataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStream_ = value; + onChanged(); + } else { + dataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataStream( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + dataStream_ = builderForValue.build(); + onChanged(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (dataStream_ != null) { + dataStream_ = + com.google.analytics.admin.v1alpha.DataStream.newBuilder(dataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + dataStream_ = value; + } + onChanged(); + } else { + dataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataStream() { + if (dataStreamBuilder_ == null) { + dataStream_ = null; + onChanged(); + } else { + dataStream_ = null; + dataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { + + onChanged(); + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if (dataStreamBuilder_ != null) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + 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) { + 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>( + getDataStream(), getParentForChildren(), isClean()); + dataStream_ = null; + } + return dataStreamBuilder_; + } + + @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.CreateDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.CreateDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDataStreamRequest(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.CreateDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..cce680f1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + com.google.analytics.admin.v1alpha.DataStream getDataStream(); + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java new file mode 100644 index 00000000..f364a401 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java @@ -0,0 +1,5770 @@ +/* + * 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 data stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} + */ +public final class DataStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream) + DataStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataStream.newBuilder() to construct. + private DataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataStream() { + name_ = ""; + type_ = 0; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataStream(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataStream( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = 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: + { + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder subBuilder = null; + if (streamDataCase_ == 6) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_) + .toBuilder(); + } + streamData_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); + streamData_ = subBuilder.buildPartial(); + } + streamDataCase_ = 6; + break; + } + case 58: + { + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder + subBuilder = null; + if (streamDataCase_ == 7) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + streamData_) + .toBuilder(); + } + streamData_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + streamData_); + streamData_ = subBuilder.buildPartial(); + } + streamDataCase_ = 7; + break; + } + case 66: + { + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder subBuilder = + null; + if (streamDataCase_ == 8) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_) + .toBuilder(); + } + streamData_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); + streamData_ = subBuilder.buildPartial(); + } + streamDataCase_ = 8; + 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_DataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.class, + com.google.analytics.admin.v1alpha.DataStream.Builder.class); + } + + /** + * + * + *
+   * The type of the data stream.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.DataStream.DataStreamType} + */ + public enum DataStreamType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type unknown or not specified.
+     * 
+ * + * DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + DATA_STREAM_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Web data stream.
+     * 
+ * + * WEB_DATA_STREAM = 1; + */ + WEB_DATA_STREAM(1), + /** + * + * + *
+     * Android app data stream.
+     * 
+ * + * ANDROID_APP_DATA_STREAM = 2; + */ + ANDROID_APP_DATA_STREAM(2), + /** + * + * + *
+     * iOS app data stream.
+     * 
+ * + * IOS_APP_DATA_STREAM = 3; + */ + IOS_APP_DATA_STREAM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Type unknown or not specified.
+     * 
+ * + * DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_STREAM_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Web data stream.
+     * 
+ * + * WEB_DATA_STREAM = 1; + */ + public static final int WEB_DATA_STREAM_VALUE = 1; + /** + * + * + *
+     * Android app data stream.
+     * 
+ * + * ANDROID_APP_DATA_STREAM = 2; + */ + public static final int ANDROID_APP_DATA_STREAM_VALUE = 2; + /** + * + * + *
+     * iOS app data stream.
+     * 
+ * + * IOS_APP_DATA_STREAM = 3; + */ + public static final int IOS_APP_DATA_STREAM_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataStreamType 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 DataStreamType forNumber(int value) { + switch (value) { + case 0: + return DATA_STREAM_TYPE_UNSPECIFIED; + case 1: + return WEB_DATA_STREAM; + case 2: + return ANDROID_APP_DATA_STREAM; + case 3: + return IOS_APP_DATA_STREAM; + 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 DataStreamType findValueByNumber(int number) { + return DataStreamType.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.DataStream.getDescriptor().getEnumTypes().get(0); + } + + private static final DataStreamType[] VALUES = values(); + + public static DataStreamType 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 DataStreamType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataStream.DataStreamType) + } + + public interface WebStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.WebStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Analytics "Measurement ID", without the "G-" prefix.
+     * Example: "G-1A2BCD345E" would just be "1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.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 = 1 [(.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 = 2 [(.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 = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Immutable. Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3 [(.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 = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for defaultUri. + */ + com.google.protobuf.ByteString getDefaultUriBytes(); + } + /** + * + * + *
+   * Data specific to web streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} + */ + public static final class WebStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) + WebStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WebStreamData.newBuilder() to construct. + private WebStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebStreamData() { + measurementId_ = ""; + firebaseAppId_ = ""; + defaultUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebStreamData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private WebStreamData( + 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(); + + measurementId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + firebaseAppId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + defaultUri_ = 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_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); + } + + public static final int MEASUREMENT_ID_FIELD_NUMBER = 1; + 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 = 1 [(.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 = 1 [(.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 = 2; + 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 = 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 web app in Firebase, if any.
+     * This ID can change if the web 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 DEFAULT_URI_FIELD_NUMBER = 3; + 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 = 3 [(.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 = 3 [(.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; + } + } + + 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(measurementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); + } + 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(measurementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, measurementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultUri_); + } + 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.DataStream.WebStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream.WebStreamData other = + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) obj; + + if (!getMeasurementId().equals(other.getMeasurementId())) return false; + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getDefaultUri().equals(other.getDefaultUri())) 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) + MEASUREMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementId().hashCode(); + hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + DEFAULT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDefaultUri().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData 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.DataStream.WebStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData 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.DataStream.WebStreamData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData 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.DataStream.WebStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData 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.DataStream.WebStreamData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData 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.DataStream.WebStreamData 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.DataStream.WebStreamData 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.DataStream.WebStreamData 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; + } + /** + * + * + *
+     * Data specific to web streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataStream.WebStreamData.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(); + measurementId_ = ""; + + firebaseAppId_ = ""; + + defaultUri_ = ""; + + 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_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData build() { + com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData buildPartial() { + com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = + new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(this); + result.measurementId_ = measurementId_; + result.firebaseAppId_ = firebaseAppId_; + result.defaultUri_ = defaultUri_; + 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.DataStream.WebStreamData) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.WebStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream.WebStreamData other) { + if (other + == com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance()) + return this; + if (!other.getMeasurementId().isEmpty()) { + measurementId_ = other.measurementId_; + onChanged(); + } + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + onChanged(); + } + if (!other.getDefaultUri().isEmpty()) { + defaultUri_ = other.defaultUri_; + 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.DataStream.WebStreamData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 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 web app in Firebase, if any.
+       * This ID can change if the web 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 web app in Firebase, if any.
+       * This ID can change if the web 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 web app in Firebase, if any.
+       * This ID can change if the web 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 web app in Firebase, if any.
+       * This ID can change if the web 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 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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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 = 3 [(.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; + } + + @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.DataStream.WebStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) + private static final com.google.analytics.admin.v1alpha.DataStream.WebStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WebStreamData(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.DataStream.WebStreamData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AndroidAppStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * 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 = 1 [(.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 = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.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 = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + com.google.protobuf.ByteString getPackageNameBytes(); + } + /** + * + * + *
+   * Data specific to Android app streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} + */ + public static final class AndroidAppStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + AndroidAppStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AndroidAppStreamData.newBuilder() to construct. + private AndroidAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AndroidAppStreamData() { + firebaseAppId_ = ""; + packageName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AndroidAppStreamData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AndroidAppStreamData( + 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(); + + firebaseAppId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + packageName_ = 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_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; + 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 = 1 [(.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 = 1 [(.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 PACKAGE_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object packageName_; + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.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 = 2 [(.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; + } + } + + 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(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); + } + 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(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageName_); + } + 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.DataStream.AndroidAppStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other = + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) obj; + + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getPackageName().equals(other.getPackageName())) 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) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPackageName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData 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.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData 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.DataStream.AndroidAppStreamData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData 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.DataStream.AndroidAppStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData 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.DataStream.AndroidAppStreamData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + 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.DataStream.AndroidAppStreamData 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.DataStream.AndroidAppStreamData 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.DataStream.AndroidAppStreamData 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; + } + /** + * + * + *
+     * Data specific to Android app streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.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(); + firebaseAppId_ = ""; + + packageName_ = ""; + + 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_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData build() { + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData buildPartial() { + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = + new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(this); + result.firebaseAppId_ = firebaseAppId_; + result.packageName_ = packageName_; + 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.DataStream.AndroidAppStreamData) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other) { + if (other + == com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance()) return this; + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + onChanged(); + } + if (!other.getPackageName().isEmpty()) { + packageName_ = other.packageName_; + 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.DataStream.AndroidAppStreamData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 java.lang.Object packageName_ = ""; + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.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 = 2 [(.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 = 2 [(.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 = 2 [(.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 = 2 [(.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; + } + + @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.DataStream.AndroidAppStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + private static final com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndroidAppStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AndroidAppStreamData(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.DataStream.AndroidAppStreamData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IosAppStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * 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 = 1 [(.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 = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.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 = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + com.google.protobuf.ByteString getBundleIdBytes(); + } + /** + * + * + *
+   * Data specific to iOS app streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} + */ + public static final class IosAppStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + IosAppStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IosAppStreamData.newBuilder() to construct. + private IosAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IosAppStreamData() { + firebaseAppId_ = ""; + bundleId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IosAppStreamData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private IosAppStreamData( + 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(); + + firebaseAppId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + bundleId_ = 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_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; + 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 = 1 [(.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 = 1 [(.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 BUNDLE_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object bundleId_; + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.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 = 2 [(.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; + } + } + + 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(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); + } + 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(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bundleId_); + } + 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.DataStream.IosAppStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other = + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) obj; + + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getBundleId().equals(other.getBundleId())) 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) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getBundleId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData 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.DataStream.IosAppStreamData 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; + } + /** + * + * + *
+     * Data specific to iOS app streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.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(); + firebaseAppId_ = ""; + + bundleId_ = ""; + + 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_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData build() { + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData buildPartial() { + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = + new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(this); + result.firebaseAppId_ = firebaseAppId_; + result.bundleId_ = bundleId_; + 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.DataStream.IosAppStreamData) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other) { + if (other + == com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance()) + return this; + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + onChanged(); + } + if (!other.getBundleId().isEmpty()) { + bundleId_ = other.bundleId_; + 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.DataStream.IosAppStreamData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 = 1 [(.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 java.lang.Object bundleId_ = ""; + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.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 = 2 [(.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 = 2 [(.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 = 2 [(.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 = 2 [(.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; + } + + @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.DataStream.IosAppStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + private static final com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IosAppStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IosAppStreamData(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.DataStream.IosAppStreamData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int streamDataCase_ = 0; + private java.lang.Object streamData_; + + public enum StreamDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEB_STREAM_DATA(6), + ANDROID_APP_STREAM_DATA(7), + IOS_APP_STREAM_DATA(8), + STREAMDATA_NOT_SET(0); + private final int value; + + private StreamDataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StreamDataCase valueOf(int value) { + return forNumber(value); + } + + public static StreamDataCase forNumber(int value) { + switch (value) { + case 6: + return WEB_STREAM_DATA; + case 7: + return ANDROID_APP_STREAM_DATA; + case 8: + return IOS_APP_STREAM_DATA; + case 0: + return STREAMDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamDataCase getStreamDataCase() { + return StreamDataCase.forNumber(streamDataCase_); + } + + public static final int WEB_STREAM_DATA_FIELD_NUMBER = 6; + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + @java.lang.Override + public boolean hasWebStreamData() { + return streamDataCase_ == 6; + } + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder + getWebStreamDataOrBuilder() { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + + public static final int ANDROID_APP_STREAM_DATA_FIELD_NUMBER = 7; + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + @java.lang.Override + public boolean hasAndroidAppStreamData() { + return streamDataCase_ == 7; + } + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getAndroidAppStreamData() { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder() { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); + } + + public static final int IOS_APP_STREAM_DATA_FIELD_NUMBER = 8; + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + @java.lang.Override + public boolean hasIosAppStreamData() { + return streamDataCase_ == 8; + } + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder() { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + + 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}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/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}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/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 TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = + com.google.analytics.admin.v1alpha.DataStream.DataStreamType.valueOf(type_); + return result == null + ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * Required for web data streams.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @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.
+   * Required for web data streams.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int 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(); + } + + 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 (type_ + != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (streamDataCase_ == 6) { + output.writeMessage( + 6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); + } + if (streamDataCase_ == 7) { + output.writeMessage( + 7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); + } + if (streamDataCase_ == 8) { + output.writeMessage( + 8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); + } + 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 (type_ + != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (streamDataCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); + } + if (streamDataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); + } + if (streamDataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); + } + 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.DataStream)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream other = + (com.google.analytics.admin.v1alpha.DataStream) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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 (!getStreamDataCase().equals(other.getStreamDataCase())) return false; + switch (streamDataCase_) { + case 6: + if (!getWebStreamData().equals(other.getWebStreamData())) return false; + break; + case 7: + if (!getAndroidAppStreamData().equals(other.getAndroidAppStreamData())) return false; + break; + case 8: + if (!getIosAppStreamData().equals(other.getIosAppStreamData())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().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(); + } + switch (streamDataCase_) { + case 6: + hash = (37 * hash) + WEB_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getWebStreamData().hashCode(); + break; + case 7: + hash = (37 * hash) + ANDROID_APP_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppStreamData().hashCode(); + break; + case 8: + hash = (37 * hash) + IOS_APP_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getIosAppStreamData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream 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.DataStream parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream 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.DataStream parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream 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.DataStream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream 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.DataStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream 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.DataStream 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.DataStream 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.DataStream 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 data stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream) + com.google.analytics.admin.v1alpha.DataStreamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.class, + com.google.analytics.admin.v1alpha.DataStream.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataStream.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_ = ""; + + type_ = 0; + + displayName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + streamDataCase_ = 0; + streamData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream build() { + com.google.analytics.admin.v1alpha.DataStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream buildPartial() { + com.google.analytics.admin.v1alpha.DataStream result = + new com.google.analytics.admin.v1alpha.DataStream(this); + if (streamDataCase_ == 6) { + if (webStreamDataBuilder_ == null) { + result.streamData_ = streamData_; + } else { + result.streamData_ = webStreamDataBuilder_.build(); + } + } + if (streamDataCase_ == 7) { + if (androidAppStreamDataBuilder_ == null) { + result.streamData_ = streamData_; + } else { + result.streamData_ = androidAppStreamDataBuilder_.build(); + } + } + if (streamDataCase_ == 8) { + if (iosAppStreamDataBuilder_ == null) { + result.streamData_ = streamData_; + } else { + result.streamData_ = iosAppStreamDataBuilder_.build(); + } + } + result.name_ = name_; + result.type_ = type_; + result.displayName_ = displayName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.streamDataCase_ = streamDataCase_; + 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.DataStream) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream other) { + if (other == com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getStreamDataCase()) { + case WEB_STREAM_DATA: + { + mergeWebStreamData(other.getWebStreamData()); + break; + } + case ANDROID_APP_STREAM_DATA: + { + mergeAndroidAppStreamData(other.getAndroidAppStreamData()); + break; + } + case IOS_APP_STREAM_DATA: + { + mergeIosAppStreamData(other.getIosAppStreamData()); + break; + } + case STREAMDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.DataStream parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.DataStream) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int streamDataCase_ = 0; + private java.lang.Object streamData_; + + public StreamDataCase getStreamDataCase() { + return StreamDataCase.forNumber(streamDataCase_); + } + + public Builder clearStreamData() { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.WebStreamData, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder> + webStreamDataBuilder_; + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + @java.lang.Override + public boolean hasWebStreamData() { + return streamDataCase_ == 6; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } else { + if (streamDataCase_ == 6) { + return webStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder setWebStreamData( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData value) { + if (webStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + webStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder setWebStreamData( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder builderForValue) { + if (webStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + webStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder mergeWebStreamData( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData value) { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6 + && streamData_ + != com.google.analytics.admin.v1alpha.DataStream.WebStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 6) { + webStreamDataBuilder_.mergeFrom(value); + } + webStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder clearWebStreamData() { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 6) { + streamDataCase_ = 0; + streamData_ = null; + } + webStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder + getWebStreamDataBuilder() { + return getWebStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder + getWebStreamDataOrBuilder() { + if ((streamDataCase_ == 6) && (webStreamDataBuilder_ != null)) { + return webStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.WebStreamData, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder> + getWebStreamDataFieldBuilder() { + if (webStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 6)) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + webStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.WebStreamData, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 6; + onChanged(); + ; + return webStreamDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder> + androidAppStreamDataBuilder_; + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + @java.lang.Override + public boolean hasAndroidAppStreamData() { + return streamDataCase_ == 7; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getAndroidAppStreamData() { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } else { + if (streamDataCase_ == 7) { + return androidAppStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder setAndroidAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData value) { + if (androidAppStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + androidAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder setAndroidAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder + builderForValue) { + if (androidAppStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + androidAppStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder mergeAndroidAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData value) { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7 + && streamData_ + != com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 7) { + androidAppStreamDataBuilder_.mergeFrom(value); + } + androidAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder clearAndroidAppStreamData() { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 7) { + streamDataCase_ = 0; + streamData_ = null; + } + androidAppStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder + getAndroidAppStreamDataBuilder() { + return getAndroidAppStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder() { + if ((streamDataCase_ == 7) && (androidAppStreamDataBuilder_ != null)) { + return androidAppStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder> + getAndroidAppStreamDataFieldBuilder() { + if (androidAppStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 7)) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + androidAppStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 7; + onChanged(); + ; + return androidAppStreamDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder> + iosAppStreamDataBuilder_; + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + @java.lang.Override + public boolean hasIosAppStreamData() { + return streamDataCase_ == 8; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } else { + if (streamDataCase_ == 8) { + return iosAppStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder setIosAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData value) { + if (iosAppStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + iosAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder setIosAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder builderForValue) { + if (iosAppStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + iosAppStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder mergeIosAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData value) { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8 + && streamData_ + != com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 8) { + iosAppStreamDataBuilder_.mergeFrom(value); + } + iosAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder clearIosAppStreamData() { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 8) { + streamDataCase_ = 0; + streamData_ = null; + } + iosAppStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder + getIosAppStreamDataBuilder() { + return getIosAppStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder() { + if ((streamDataCase_ == 8) && (iosAppStreamDataBuilder_ != null)) { + return iosAppStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder> + getIosAppStreamDataFieldBuilder() { + if (iosAppStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 8)) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + iosAppStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 8; + onChanged(); + ; + return iosAppStreamDataBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/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}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/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}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/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}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/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}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/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 int type_ = 0; + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = + com.google.analytics.admin.v1alpha.DataStream.DataStreamType.valueOf(type_); + return result == null + ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.analytics.admin.v1alpha.DataStream.DataStreamType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     * Required for web data streams.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @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.
+     * Required for web data streams.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @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.
+     * Required for web data streams.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @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.
+     * Required for web data streams.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     * Required for web data streams.
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private 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_; + } + + @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.DataStream) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream) + private static final com.google.analytics.admin.v1alpha.DataStream DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream(); + } + + public static com.google.analytics.admin.v1alpha.DataStream getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataStream(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.DataStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java similarity index 54% rename from proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java rename to proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java index 41d9b7a3..21dcee6c 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java @@ -28,31 +28,30 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. @Generated("by gapic-generator-java") -public class EnhancedMeasurementSettingsName implements ResourceName { - private static final PathTemplate PROPERTY_WEB_DATA_STREAM = - PathTemplate.createWithoutUrlEncoding( - "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings"); +public class DataStreamName implements ResourceName { + private static final PathTemplate PROPERTY_DATA_STREAM = + PathTemplate.createWithoutUrlEncoding("properties/{property}/dataStreams/{data_stream}"); private volatile Map fieldValuesMap; private final String property; - private final String webDataStream; + private final String dataStream; @Deprecated - protected EnhancedMeasurementSettingsName() { + protected DataStreamName() { property = null; - webDataStream = null; + dataStream = null; } - private EnhancedMeasurementSettingsName(Builder builder) { + private DataStreamName(Builder builder) { property = Preconditions.checkNotNull(builder.getProperty()); - webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); + dataStream = Preconditions.checkNotNull(builder.getDataStream()); } public String getProperty() { return property; } - public String getWebDataStream() { - return webDataStream; + public String getDataStream() { + return dataStream; } public static Builder newBuilder() { @@ -63,36 +62,35 @@ public Builder toBuilder() { return new Builder(this); } - public static EnhancedMeasurementSettingsName of(String property, String webDataStream) { - return newBuilder().setProperty(property).setWebDataStream(webDataStream).build(); + public static DataStreamName of(String property, String dataStream) { + return newBuilder().setProperty(property).setDataStream(dataStream).build(); } - public static String format(String property, String webDataStream) { - return newBuilder().setProperty(property).setWebDataStream(webDataStream).build().toString(); + public static String format(String property, String dataStream) { + return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); } - public static EnhancedMeasurementSettingsName parse(String formattedString) { + public static DataStreamName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } Map matchMap = - PROPERTY_WEB_DATA_STREAM.validatedMatch( - formattedString, - "EnhancedMeasurementSettingsName.parse: formattedString not in valid format"); - return of(matchMap.get("property"), matchMap.get("web_data_stream")); + PROPERTY_DATA_STREAM.validatedMatch( + formattedString, "DataStreamName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("data_stream")); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); + 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) { + public static List toStringList(List values) { List list = new ArrayList<>(values.size()); - for (EnhancedMeasurementSettingsName value : values) { + for (DataStreamName value : values) { if (value == null) { list.add(""); } else { @@ -103,7 +101,7 @@ public static List toStringList(List va } public static boolean isParsableFrom(String formattedString) { - return PROPERTY_WEB_DATA_STREAM.matches(formattedString); + return PROPERTY_DATA_STREAM.matches(formattedString); } @Override @@ -115,8 +113,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); } fieldValuesMap = fieldMapBuilder.build(); } @@ -131,8 +129,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PROPERTY_WEB_DATA_STREAM.instantiate( - "property", property, "web_data_stream", webDataStream); + return PROPERTY_DATA_STREAM.instantiate("property", property, "data_stream", dataStream); } @Override @@ -141,9 +138,9 @@ public boolean equals(Object o) { return true; } if (o != null || getClass() == o.getClass()) { - EnhancedMeasurementSettingsName that = ((EnhancedMeasurementSettingsName) o); + DataStreamName that = ((DataStreamName) o); return Objects.equals(this.property, that.property) - && Objects.equals(this.webDataStream, that.webDataStream); + && Objects.equals(this.dataStream, that.dataStream); } return false; } @@ -154,16 +151,14 @@ public int hashCode() { h *= 1000003; h ^= Objects.hashCode(property); h *= 1000003; - h ^= Objects.hashCode(webDataStream); + h ^= Objects.hashCode(dataStream); return h; } - /** - * Builder for properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings. - */ + /** Builder for properties/{property}/dataStreams/{data_stream}. */ public static class Builder { private String property; - private String webDataStream; + private String dataStream; protected Builder() {} @@ -171,8 +166,8 @@ public String getProperty() { return property; } - public String getWebDataStream() { - return webDataStream; + public String getDataStream() { + return dataStream; } public Builder setProperty(String property) { @@ -180,18 +175,18 @@ 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; } - private Builder(EnhancedMeasurementSettingsName enhancedMeasurementSettingsName) { - this.property = enhancedMeasurementSettingsName.property; - this.webDataStream = enhancedMeasurementSettingsName.webDataStream; + private Builder(DataStreamName dataStreamName) { + this.property = dataStreamName.property; + this.dataStream = dataStreamName.dataStream; } - public EnhancedMeasurementSettingsName build() { - return new EnhancedMeasurementSettingsName(this); + public DataStreamName build() { + return new DataStreamName(this); } } } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java new file mode 100644 index 00000000..fdcad603 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java @@ -0,0 +1,315 @@ +/* + * 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 DataStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + boolean hasWebStreamData(); + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData(); + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder(); + + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + boolean hasAndroidAppStreamData(); + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getAndroidAppStreamData(); + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder(); + + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + boolean hasIosAppStreamData(); + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData(); + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder(); + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/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}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType(); + + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * Required for web data streams.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   * Required for web data streams.
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * 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(); + + public com.google.analytics.admin.v1alpha.DataStream.StreamDataCase getStreamDataCase(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java similarity index 65% rename from proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java rename to proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java index a20dfe14..c524d8d3 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java @@ -22,31 +22,29 @@ * * *
- * Request message for GetEnhancedMeasurementSettings RPC.
+ * Request message for DeleteDataStream RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDataStreamRequest} */ -public final class GetEnhancedMeasurementSettingsRequest - extends com.google.protobuf.GeneratedMessageV3 +public final class DeleteDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - GetEnhancedMeasurementSettingsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + DeleteDataStreamRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetEnhancedMeasurementSettingsRequest.newBuilder() to construct. - private GetEnhancedMeasurementSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DeleteDataStreamRequest.newBuilder() to construct. + private DeleteDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEnhancedMeasurementSettingsRequest() { + private DeleteDataStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetEnhancedMeasurementSettingsRequest(); + return new DeleteDataStreamRequest(); } @java.lang.Override @@ -54,7 +52,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetEnhancedMeasurementSettingsRequest( + private DeleteDataStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -100,17 +98,17 @@ private GetEnhancedMeasurementSettingsRequest( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder.class); + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -119,10 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
    * 
* * @@ -147,10 +143,8 @@ public java.lang.String getName() { * * *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
    * 
* * @@ -211,12 +205,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteDataStreamRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other = - (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) obj; + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest other = + (com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) obj; if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -237,72 +230,71 @@ public int hashCode() { return hash; } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest 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.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest 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.GetEnhancedMeasurementSettingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest 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.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest 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.GetEnhancedMeasurementSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest 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.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest 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.GetEnhancedMeasurementSettingsRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -320,7 +312,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest prototype) { + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -338,33 +330,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for GetEnhancedMeasurementSettings RPC.
+   * Request message for DeleteDataStream RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDataStreamRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + com.google.analytics.admin.v1alpha.DeleteDataStreamRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder - .class); + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.Builder.class); } - // Construct using - // com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.newBuilder() + // Construct using com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -389,20 +379,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - .getDefaultInstance(); + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = - buildPartial(); + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest build() { + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -410,9 +397,9 @@ public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = - new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(this); + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result = + new com.google.analytics.admin.v1alpha.DeleteDataStreamRequest(this); result.name_ = name_; onBuilt(); return result; @@ -453,21 +440,17 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other) { - if (other - == com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,13 +470,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parsedMessage = null; + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - e.getUnfinishedMessage(); + (com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -508,10 +490,8 @@ public Builder mergeFrom( * * *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
      * 
* * @@ -535,10 +515,8 @@ public java.lang.String getName() { * * *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
      * 
* * @@ -562,10 +540,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
      * 
* * @@ -588,10 +564,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
      * 
* * @@ -610,10 +584,8 @@ public Builder clearName() { * * *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
      * 
* * @@ -645,46 +617,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteDataStreamRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.DeleteDataStreamRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetEnhancedMeasurementSettingsRequest parsePartialFrom( + public DeleteDataStreamRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEnhancedMeasurementSettingsRequest(input, extensionRegistry); + return new DeleteDataStreamRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest - getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java similarity index 70% rename from proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java rename to proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java index 6ebb6e69..36a590e4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java @@ -18,19 +18,17 @@ package com.google.analytics.admin.v1alpha; -public interface GetEnhancedMeasurementSettingsRequestOrBuilder +public interface DeleteDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDataStreamRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
    * 
* * @@ -44,10 +42,8 @@ public interface GetEnhancedMeasurementSettingsRequestOrBuilder * * *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
    * 
* * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java index d5319033..88f6f50d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java @@ -444,7 +444,7 @@ public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBui * *
    * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-   * property. This can only be enabled if campaign_data_import_enabled is
+   * property. This can only be enabled if campaign_data_sharing_enabled is
    * enabled. After link creation, this can only be updated from the Display &
    * Video 360 product.
    * If this field is not set on create, it will be defaulted to true.
@@ -465,7 +465,7 @@ public boolean hasCostDataSharingEnabled() {
    *
    * 
    * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-   * property. This can only be enabled if campaign_data_import_enabled is
+   * property. This can only be enabled if campaign_data_sharing_enabled is
    * enabled. After link creation, this can only be updated from the Display &
    * Video 360 product.
    * If this field is not set on create, it will be defaulted to true.
@@ -488,7 +488,7 @@ public com.google.protobuf.BoolValue getCostDataSharingEnabled() {
    *
    * 
    * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-   * property. This can only be enabled if campaign_data_import_enabled is
+   * property. This can only be enabled if campaign_data_sharing_enabled is
    * enabled. After link creation, this can only be updated from the Display &
    * Video 360 product.
    * If this field is not set on create, it will be defaulted to true.
@@ -1714,7 +1714,7 @@ public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBui
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1734,7 +1734,7 @@ public boolean hasCostDataSharingEnabled() {
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1760,7 +1760,7 @@ public com.google.protobuf.BoolValue getCostDataSharingEnabled() {
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1788,7 +1788,7 @@ public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) {
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1814,7 +1814,7 @@ public Builder setCostDataSharingEnabled(
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1846,7 +1846,7 @@ public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value)
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1872,7 +1872,7 @@ public Builder clearCostDataSharingEnabled() {
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1892,7 +1892,7 @@ public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder()
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
@@ -1916,7 +1916,7 @@ public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-     * property. This can only be enabled if campaign_data_import_enabled is
+     * property. This can only be enabled if campaign_data_sharing_enabled is
      * enabled. After link creation, this can only be updated from the Display &
      * Video 360 product.
      * If this field is not set on create, it will be defaulted to true.
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java
index a8b0748b..5ec64486 100644
--- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java
+++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java
@@ -195,7 +195,7 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder
    *
    * 
    * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-   * property. This can only be enabled if campaign_data_import_enabled is
+   * property. This can only be enabled if campaign_data_sharing_enabled is
    * enabled. After link creation, this can only be updated from the Display &
    * Video 360 product.
    * If this field is not set on create, it will be defaulted to true.
@@ -213,7 +213,7 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder
    *
    * 
    * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-   * property. This can only be enabled if campaign_data_import_enabled is
+   * property. This can only be enabled if campaign_data_sharing_enabled is
    * enabled. After link creation, this can only be updated from the Display &
    * Video 360 product.
    * If this field is not set on create, it will be defaulted to true.
@@ -231,7 +231,7 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder
    *
    * 
    * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
-   * property. This can only be enabled if campaign_data_import_enabled is
+   * property. This can only be enabled if campaign_data_sharing_enabled is
    * enabled. After link creation, this can only be updated from the Display &
    * Video 360 product.
    * If this field is not set on create, it will be defaulted to true.
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java
index 9074737a..27950e77 100644
--- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java
+++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * A proposal for a link between an GA4 property and a Display & Video 360
+ * A proposal for a link between a GA4 property and a Display & Video 360
  * advertiser.
  * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
  * Google Analytics admins approve inbound proposals while Display & Video 360
@@ -595,7 +595,7 @@ public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBui
    *
    * 
    * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
    * If this field is not set on create, it will be defaulted to true.
    * 
* @@ -614,7 +614,7 @@ public boolean hasCostDataSharingEnabled() { * *
    * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
    * If this field is not set on create, it will be defaulted to true.
    * 
* @@ -635,7 +635,7 @@ public com.google.protobuf.BoolValue getCostDataSharingEnabled() { * *
    * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
    * If this field is not set on create, it will be defaulted to true.
    * 
* @@ -907,7 +907,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A proposal for a link between an GA4 property and a Display & Video 360
+   * A proposal for a link between a GA4 property and a Display & Video 360
    * advertiser.
    * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
    * Google Analytics admins approve inbound proposals while Display & Video 360
@@ -2269,7 +2269,7 @@ public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBui
      *
      * 
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2287,7 +2287,7 @@ public boolean hasCostDataSharingEnabled() { * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2311,7 +2311,7 @@ public com.google.protobuf.BoolValue getCostDataSharingEnabled() { * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2337,7 +2337,7 @@ public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2361,7 +2361,7 @@ public Builder setCostDataSharingEnabled( * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2391,7 +2391,7 @@ public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2415,7 +2415,7 @@ public Builder clearCostDataSharingEnabled() { * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2433,7 +2433,7 @@ public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* @@ -2455,7 +2455,7 @@ public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder * *
      * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
      * If this field is not set on create, it will be defaulted to true.
      * 
* diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java index f49feed7..316c6ed2 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java @@ -276,7 +276,7 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * *
    * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
    * If this field is not set on create, it will be defaulted to true.
    * 
* @@ -292,7 +292,7 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * *
    * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
    * If this field is not set on create, it will be defaulted to true.
    * 
* @@ -308,7 +308,7 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * *
    * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
    * If this field is not set on create, it will be defaulted to true.
    * 
* diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java deleted file mode 100644 index 7e3e7c69..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java +++ /dev/null @@ -1,1888 +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; - -/** - * - * - *
- * Singleton resource under a WebDataStream, configuring measurement of
- * additional site interactions and content.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.EnhancedMeasurementSettings} - */ -public final class EnhancedMeasurementSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - EnhancedMeasurementSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnhancedMeasurementSettings.newBuilder() to construct. - private EnhancedMeasurementSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EnhancedMeasurementSettings() { - name_ = ""; - searchQueryParameter_ = ""; - uriQueryParameter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EnhancedMeasurementSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EnhancedMeasurementSettings( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - streamEnabled_ = input.readBool(); - break; - } - case 24: - { - pageViewsEnabled_ = input.readBool(); - break; - } - case 32: - { - scrollsEnabled_ = input.readBool(); - break; - } - case 40: - { - outboundClicksEnabled_ = input.readBool(); - break; - } - case 56: - { - siteSearchEnabled_ = input.readBool(); - break; - } - case 72: - { - videoEngagementEnabled_ = input.readBool(); - break; - } - case 80: - { - fileDownloadsEnabled_ = input.readBool(); - break; - } - case 96: - { - pageLoadsEnabled_ = input.readBool(); - break; - } - case 104: - { - pageChangesEnabled_ = input.readBool(); - break; - } - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - - searchQueryParameter_ = s; - break; - } - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - - uriQueryParameter_ = 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_EnhancedMeasurementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.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}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * 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}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * 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 STREAM_ENABLED_FIELD_NUMBER = 2; - private boolean streamEnabled_; - /** - * - * - *
-   * Indicates whether Enhanced Measurement Settings will be used to
-   * automatically measure interactions and content on this web stream.
-   * Changing this value does not affect the settings themselves, but determines
-   * whether they are respected.
-   * 
- * - * bool stream_enabled = 2; - * - * @return The streamEnabled. - */ - @java.lang.Override - public boolean getStreamEnabled() { - return streamEnabled_; - } - - public static final int PAGE_VIEWS_ENABLED_FIELD_NUMBER = 3; - private boolean pageViewsEnabled_; - /** - * - * - *
-   * Output only. If enabled, capture a page view event each time a page loads or the
-   * website changes the browser history state.
-   * 
- * - * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pageViewsEnabled. - */ - @java.lang.Override - public boolean getPageViewsEnabled() { - return pageViewsEnabled_; - } - - public static final int SCROLLS_ENABLED_FIELD_NUMBER = 4; - private boolean scrollsEnabled_; - /** - * - * - *
-   * If enabled, capture scroll events each time a visitor gets to the bottom of
-   * a page.
-   * 
- * - * bool scrolls_enabled = 4; - * - * @return The scrollsEnabled. - */ - @java.lang.Override - public boolean getScrollsEnabled() { - return scrollsEnabled_; - } - - public static final int OUTBOUND_CLICKS_ENABLED_FIELD_NUMBER = 5; - private boolean outboundClicksEnabled_; - /** - * - * - *
-   * If enabled, capture an outbound click event each time a visitor clicks a
-   * link that leads them away from your domain.
-   * 
- * - * bool outbound_clicks_enabled = 5; - * - * @return The outboundClicksEnabled. - */ - @java.lang.Override - public boolean getOutboundClicksEnabled() { - return outboundClicksEnabled_; - } - - public static final int SITE_SEARCH_ENABLED_FIELD_NUMBER = 7; - private boolean siteSearchEnabled_; - /** - * - * - *
-   * If enabled, capture a view search results event each time a visitor
-   * performs a search on your site (based on a query parameter).
-   * 
- * - * bool site_search_enabled = 7; - * - * @return The siteSearchEnabled. - */ - @java.lang.Override - public boolean getSiteSearchEnabled() { - return siteSearchEnabled_; - } - - public static final int VIDEO_ENGAGEMENT_ENABLED_FIELD_NUMBER = 9; - private boolean videoEngagementEnabled_; - /** - * - * - *
-   * If enabled, capture video play, progress, and complete events as visitors
-   * view embedded videos on your site.
-   * 
- * - * bool video_engagement_enabled = 9; - * - * @return The videoEngagementEnabled. - */ - @java.lang.Override - public boolean getVideoEngagementEnabled() { - return videoEngagementEnabled_; - } - - public static final int FILE_DOWNLOADS_ENABLED_FIELD_NUMBER = 10; - private boolean fileDownloadsEnabled_; - /** - * - * - *
-   * If enabled, capture a file download event each time a link is clicked with
-   * a common document, compressed file, application, video, or audio extension.
-   * 
- * - * bool file_downloads_enabled = 10; - * - * @return The fileDownloadsEnabled. - */ - @java.lang.Override - public boolean getFileDownloadsEnabled() { - return fileDownloadsEnabled_; - } - - public static final int PAGE_LOADS_ENABLED_FIELD_NUMBER = 12; - private boolean pageLoadsEnabled_; - /** - * - * - *
-   * Output only. If enabled, capture a page view event each time a page loads.
-   * 
- * - * bool page_loads_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pageLoadsEnabled. - */ - @java.lang.Override - public boolean getPageLoadsEnabled() { - return pageLoadsEnabled_; - } - - public static final int PAGE_CHANGES_ENABLED_FIELD_NUMBER = 13; - private boolean pageChangesEnabled_; - /** - * - * - *
-   * If enabled, capture a page view event each time the website changes the
-   * browser history state.
-   * 
- * - * bool page_changes_enabled = 13; - * - * @return The pageChangesEnabled. - */ - @java.lang.Override - public boolean getPageChangesEnabled() { - return pageChangesEnabled_; - } - - public static final int SEARCH_QUERY_PARAMETER_FIELD_NUMBER = 16; - private volatile java.lang.Object searchQueryParameter_; - /** - * - * - *
-   * Required. URL query parameters to interpret as site search parameters.
-   * Max length is 1024 characters. Must not be empty.
-   * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The searchQueryParameter. - */ - @java.lang.Override - public java.lang.String getSearchQueryParameter() { - java.lang.Object ref = searchQueryParameter_; - 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(); - searchQueryParameter_ = s; - return s; - } - } - /** - * - * - *
-   * Required. URL query parameters to interpret as site search parameters.
-   * Max length is 1024 characters. Must not be empty.
-   * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for searchQueryParameter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSearchQueryParameterBytes() { - java.lang.Object ref = searchQueryParameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - searchQueryParameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URI_QUERY_PARAMETER_FIELD_NUMBER = 17; - private volatile java.lang.Object uriQueryParameter_; - /** - * - * - *
-   * Additional URL query parameters.
-   * Max length is 1024 characters.
-   * 
- * - * string uri_query_parameter = 17; - * - * @return The uriQueryParameter. - */ - @java.lang.Override - public java.lang.String getUriQueryParameter() { - java.lang.Object ref = uriQueryParameter_; - 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(); - uriQueryParameter_ = s; - return s; - } - } - /** - * - * - *
-   * Additional URL query parameters.
-   * Max length is 1024 characters.
-   * 
- * - * string uri_query_parameter = 17; - * - * @return The bytes for uriQueryParameter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriQueryParameterBytes() { - java.lang.Object ref = uriQueryParameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uriQueryParameter_ = 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 (streamEnabled_ != false) { - output.writeBool(2, streamEnabled_); - } - if (pageViewsEnabled_ != false) { - output.writeBool(3, pageViewsEnabled_); - } - if (scrollsEnabled_ != false) { - output.writeBool(4, scrollsEnabled_); - } - if (outboundClicksEnabled_ != false) { - output.writeBool(5, outboundClicksEnabled_); - } - if (siteSearchEnabled_ != false) { - output.writeBool(7, siteSearchEnabled_); - } - if (videoEngagementEnabled_ != false) { - output.writeBool(9, videoEngagementEnabled_); - } - if (fileDownloadsEnabled_ != false) { - output.writeBool(10, fileDownloadsEnabled_); - } - if (pageLoadsEnabled_ != false) { - output.writeBool(12, pageLoadsEnabled_); - } - if (pageChangesEnabled_ != false) { - output.writeBool(13, pageChangesEnabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQueryParameter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, searchQueryParameter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uriQueryParameter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, uriQueryParameter_); - } - 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 (streamEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, streamEnabled_); - } - if (pageViewsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, pageViewsEnabled_); - } - if (scrollsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, scrollsEnabled_); - } - if (outboundClicksEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, outboundClicksEnabled_); - } - if (siteSearchEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, siteSearchEnabled_); - } - if (videoEngagementEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, videoEngagementEnabled_); - } - if (fileDownloadsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, fileDownloadsEnabled_); - } - if (pageLoadsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, pageLoadsEnabled_); - } - if (pageChangesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, pageChangesEnabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQueryParameter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, searchQueryParameter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uriQueryParameter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, uriQueryParameter_); - } - 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.EnhancedMeasurementSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other = - (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) obj; - - if (!getName().equals(other.getName())) return false; - if (getStreamEnabled() != other.getStreamEnabled()) return false; - if (getPageViewsEnabled() != other.getPageViewsEnabled()) return false; - if (getScrollsEnabled() != other.getScrollsEnabled()) return false; - if (getOutboundClicksEnabled() != other.getOutboundClicksEnabled()) return false; - if (getSiteSearchEnabled() != other.getSiteSearchEnabled()) return false; - if (getVideoEngagementEnabled() != other.getVideoEngagementEnabled()) return false; - if (getFileDownloadsEnabled() != other.getFileDownloadsEnabled()) return false; - if (getPageLoadsEnabled() != other.getPageLoadsEnabled()) return false; - if (getPageChangesEnabled() != other.getPageChangesEnabled()) return false; - if (!getSearchQueryParameter().equals(other.getSearchQueryParameter())) return false; - if (!getUriQueryParameter().equals(other.getUriQueryParameter())) 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) + STREAM_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStreamEnabled()); - hash = (37 * hash) + PAGE_VIEWS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageViewsEnabled()); - hash = (37 * hash) + SCROLLS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getScrollsEnabled()); - hash = (37 * hash) + OUTBOUND_CLICKS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutboundClicksEnabled()); - hash = (37 * hash) + SITE_SEARCH_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteSearchEnabled()); - hash = (37 * hash) + VIDEO_ENGAGEMENT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVideoEngagementEnabled()); - hash = (37 * hash) + FILE_DOWNLOADS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFileDownloadsEnabled()); - hash = (37 * hash) + PAGE_LOADS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageLoadsEnabled()); - hash = (37 * hash) + PAGE_CHANGES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageChangesEnabled()); - hash = (37 * hash) + SEARCH_QUERY_PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getSearchQueryParameter().hashCode(); - hash = (37 * hash) + URI_QUERY_PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getUriQueryParameter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings 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.EnhancedMeasurementSettings 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; - } - /** - * - * - *
-   * Singleton resource under a WebDataStream, configuring measurement of
-   * additional site interactions and content.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.EnhancedMeasurementSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.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_ = ""; - - streamEnabled_ = false; - - pageViewsEnabled_ = false; - - scrollsEnabled_ = false; - - outboundClicksEnabled_ = false; - - siteSearchEnabled_ = false; - - videoEngagementEnabled_ = false; - - fileDownloadsEnabled_ = false; - - pageLoadsEnabled_ = false; - - pageChangesEnabled_ = false; - - searchQueryParameter_ = ""; - - uriQueryParameter_ = ""; - - 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_EnhancedMeasurementSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings build() { - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings buildPartial() { - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result = - new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(this); - result.name_ = name_; - result.streamEnabled_ = streamEnabled_; - result.pageViewsEnabled_ = pageViewsEnabled_; - result.scrollsEnabled_ = scrollsEnabled_; - result.outboundClicksEnabled_ = outboundClicksEnabled_; - result.siteSearchEnabled_ = siteSearchEnabled_; - result.videoEngagementEnabled_ = videoEngagementEnabled_; - result.fileDownloadsEnabled_ = fileDownloadsEnabled_; - result.pageLoadsEnabled_ = pageLoadsEnabled_; - result.pageChangesEnabled_ = pageChangesEnabled_; - result.searchQueryParameter_ = searchQueryParameter_; - result.uriQueryParameter_ = uriQueryParameter_; - 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.EnhancedMeasurementSettings) { - return mergeFrom((com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other) { - if (other - == com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getStreamEnabled() != false) { - setStreamEnabled(other.getStreamEnabled()); - } - if (other.getPageViewsEnabled() != false) { - setPageViewsEnabled(other.getPageViewsEnabled()); - } - if (other.getScrollsEnabled() != false) { - setScrollsEnabled(other.getScrollsEnabled()); - } - if (other.getOutboundClicksEnabled() != false) { - setOutboundClicksEnabled(other.getOutboundClicksEnabled()); - } - if (other.getSiteSearchEnabled() != false) { - setSiteSearchEnabled(other.getSiteSearchEnabled()); - } - if (other.getVideoEngagementEnabled() != false) { - setVideoEngagementEnabled(other.getVideoEngagementEnabled()); - } - if (other.getFileDownloadsEnabled() != false) { - setFileDownloadsEnabled(other.getFileDownloadsEnabled()); - } - if (other.getPageLoadsEnabled() != false) { - setPageLoadsEnabled(other.getPageLoadsEnabled()); - } - if (other.getPageChangesEnabled() != false) { - setPageChangesEnabled(other.getPageChangesEnabled()); - } - if (!other.getSearchQueryParameter().isEmpty()) { - searchQueryParameter_ = other.searchQueryParameter_; - onChanged(); - } - if (!other.getUriQueryParameter().isEmpty()) { - uriQueryParameter_ = other.uriQueryParameter_; - 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.EnhancedMeasurementSettings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - 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}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * 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}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * 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}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * 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}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * 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}/enhancedMeasurementSettings
-     * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * 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 boolean streamEnabled_; - /** - * - * - *
-     * Indicates whether Enhanced Measurement Settings will be used to
-     * automatically measure interactions and content on this web stream.
-     * Changing this value does not affect the settings themselves, but determines
-     * whether they are respected.
-     * 
- * - * bool stream_enabled = 2; - * - * @return The streamEnabled. - */ - @java.lang.Override - public boolean getStreamEnabled() { - return streamEnabled_; - } - /** - * - * - *
-     * Indicates whether Enhanced Measurement Settings will be used to
-     * automatically measure interactions and content on this web stream.
-     * Changing this value does not affect the settings themselves, but determines
-     * whether they are respected.
-     * 
- * - * bool stream_enabled = 2; - * - * @param value The streamEnabled to set. - * @return This builder for chaining. - */ - public Builder setStreamEnabled(boolean value) { - - streamEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Indicates whether Enhanced Measurement Settings will be used to
-     * automatically measure interactions and content on this web stream.
-     * Changing this value does not affect the settings themselves, but determines
-     * whether they are respected.
-     * 
- * - * bool stream_enabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearStreamEnabled() { - - streamEnabled_ = false; - onChanged(); - return this; - } - - private boolean pageViewsEnabled_; - /** - * - * - *
-     * Output only. If enabled, capture a page view event each time a page loads or the
-     * website changes the browser history state.
-     * 
- * - * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pageViewsEnabled. - */ - @java.lang.Override - public boolean getPageViewsEnabled() { - return pageViewsEnabled_; - } - /** - * - * - *
-     * Output only. If enabled, capture a page view event each time a page loads or the
-     * website changes the browser history state.
-     * 
- * - * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The pageViewsEnabled to set. - * @return This builder for chaining. - */ - public Builder setPageViewsEnabled(boolean value) { - - pageViewsEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If enabled, capture a page view event each time a page loads or the
-     * website changes the browser history state.
-     * 
- * - * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearPageViewsEnabled() { - - pageViewsEnabled_ = false; - onChanged(); - return this; - } - - private boolean scrollsEnabled_; - /** - * - * - *
-     * If enabled, capture scroll events each time a visitor gets to the bottom of
-     * a page.
-     * 
- * - * bool scrolls_enabled = 4; - * - * @return The scrollsEnabled. - */ - @java.lang.Override - public boolean getScrollsEnabled() { - return scrollsEnabled_; - } - /** - * - * - *
-     * If enabled, capture scroll events each time a visitor gets to the bottom of
-     * a page.
-     * 
- * - * bool scrolls_enabled = 4; - * - * @param value The scrollsEnabled to set. - * @return This builder for chaining. - */ - public Builder setScrollsEnabled(boolean value) { - - scrollsEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If enabled, capture scroll events each time a visitor gets to the bottom of
-     * a page.
-     * 
- * - * bool scrolls_enabled = 4; - * - * @return This builder for chaining. - */ - public Builder clearScrollsEnabled() { - - scrollsEnabled_ = false; - onChanged(); - return this; - } - - private boolean outboundClicksEnabled_; - /** - * - * - *
-     * If enabled, capture an outbound click event each time a visitor clicks a
-     * link that leads them away from your domain.
-     * 
- * - * bool outbound_clicks_enabled = 5; - * - * @return The outboundClicksEnabled. - */ - @java.lang.Override - public boolean getOutboundClicksEnabled() { - return outboundClicksEnabled_; - } - /** - * - * - *
-     * If enabled, capture an outbound click event each time a visitor clicks a
-     * link that leads them away from your domain.
-     * 
- * - * bool outbound_clicks_enabled = 5; - * - * @param value The outboundClicksEnabled to set. - * @return This builder for chaining. - */ - public Builder setOutboundClicksEnabled(boolean value) { - - outboundClicksEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If enabled, capture an outbound click event each time a visitor clicks a
-     * link that leads them away from your domain.
-     * 
- * - * bool outbound_clicks_enabled = 5; - * - * @return This builder for chaining. - */ - public Builder clearOutboundClicksEnabled() { - - outboundClicksEnabled_ = false; - onChanged(); - return this; - } - - private boolean siteSearchEnabled_; - /** - * - * - *
-     * If enabled, capture a view search results event each time a visitor
-     * performs a search on your site (based on a query parameter).
-     * 
- * - * bool site_search_enabled = 7; - * - * @return The siteSearchEnabled. - */ - @java.lang.Override - public boolean getSiteSearchEnabled() { - return siteSearchEnabled_; - } - /** - * - * - *
-     * If enabled, capture a view search results event each time a visitor
-     * performs a search on your site (based on a query parameter).
-     * 
- * - * bool site_search_enabled = 7; - * - * @param value The siteSearchEnabled to set. - * @return This builder for chaining. - */ - public Builder setSiteSearchEnabled(boolean value) { - - siteSearchEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If enabled, capture a view search results event each time a visitor
-     * performs a search on your site (based on a query parameter).
-     * 
- * - * bool site_search_enabled = 7; - * - * @return This builder for chaining. - */ - public Builder clearSiteSearchEnabled() { - - siteSearchEnabled_ = false; - onChanged(); - return this; - } - - private boolean videoEngagementEnabled_; - /** - * - * - *
-     * If enabled, capture video play, progress, and complete events as visitors
-     * view embedded videos on your site.
-     * 
- * - * bool video_engagement_enabled = 9; - * - * @return The videoEngagementEnabled. - */ - @java.lang.Override - public boolean getVideoEngagementEnabled() { - return videoEngagementEnabled_; - } - /** - * - * - *
-     * If enabled, capture video play, progress, and complete events as visitors
-     * view embedded videos on your site.
-     * 
- * - * bool video_engagement_enabled = 9; - * - * @param value The videoEngagementEnabled to set. - * @return This builder for chaining. - */ - public Builder setVideoEngagementEnabled(boolean value) { - - videoEngagementEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If enabled, capture video play, progress, and complete events as visitors
-     * view embedded videos on your site.
-     * 
- * - * bool video_engagement_enabled = 9; - * - * @return This builder for chaining. - */ - public Builder clearVideoEngagementEnabled() { - - videoEngagementEnabled_ = false; - onChanged(); - return this; - } - - private boolean fileDownloadsEnabled_; - /** - * - * - *
-     * If enabled, capture a file download event each time a link is clicked with
-     * a common document, compressed file, application, video, or audio extension.
-     * 
- * - * bool file_downloads_enabled = 10; - * - * @return The fileDownloadsEnabled. - */ - @java.lang.Override - public boolean getFileDownloadsEnabled() { - return fileDownloadsEnabled_; - } - /** - * - * - *
-     * If enabled, capture a file download event each time a link is clicked with
-     * a common document, compressed file, application, video, or audio extension.
-     * 
- * - * bool file_downloads_enabled = 10; - * - * @param value The fileDownloadsEnabled to set. - * @return This builder for chaining. - */ - public Builder setFileDownloadsEnabled(boolean value) { - - fileDownloadsEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If enabled, capture a file download event each time a link is clicked with
-     * a common document, compressed file, application, video, or audio extension.
-     * 
- * - * bool file_downloads_enabled = 10; - * - * @return This builder for chaining. - */ - public Builder clearFileDownloadsEnabled() { - - fileDownloadsEnabled_ = false; - onChanged(); - return this; - } - - private boolean pageLoadsEnabled_; - /** - * - * - *
-     * Output only. If enabled, capture a page view event each time a page loads.
-     * 
- * - * bool page_loads_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pageLoadsEnabled. - */ - @java.lang.Override - public boolean getPageLoadsEnabled() { - return pageLoadsEnabled_; - } - /** - * - * - *
-     * Output only. If enabled, capture a page view event each time a page loads.
-     * 
- * - * bool page_loads_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The pageLoadsEnabled to set. - * @return This builder for chaining. - */ - public Builder setPageLoadsEnabled(boolean value) { - - pageLoadsEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If enabled, capture a page view event each time a page loads.
-     * 
- * - * bool page_loads_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearPageLoadsEnabled() { - - pageLoadsEnabled_ = false; - onChanged(); - return this; - } - - private boolean pageChangesEnabled_; - /** - * - * - *
-     * If enabled, capture a page view event each time the website changes the
-     * browser history state.
-     * 
- * - * bool page_changes_enabled = 13; - * - * @return The pageChangesEnabled. - */ - @java.lang.Override - public boolean getPageChangesEnabled() { - return pageChangesEnabled_; - } - /** - * - * - *
-     * If enabled, capture a page view event each time the website changes the
-     * browser history state.
-     * 
- * - * bool page_changes_enabled = 13; - * - * @param value The pageChangesEnabled to set. - * @return This builder for chaining. - */ - public Builder setPageChangesEnabled(boolean value) { - - pageChangesEnabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If enabled, capture a page view event each time the website changes the
-     * browser history state.
-     * 
- * - * bool page_changes_enabled = 13; - * - * @return This builder for chaining. - */ - public Builder clearPageChangesEnabled() { - - pageChangesEnabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object searchQueryParameter_ = ""; - /** - * - * - *
-     * Required. URL query parameters to interpret as site search parameters.
-     * Max length is 1024 characters. Must not be empty.
-     * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The searchQueryParameter. - */ - public java.lang.String getSearchQueryParameter() { - java.lang.Object ref = searchQueryParameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - searchQueryParameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. URL query parameters to interpret as site search parameters.
-     * Max length is 1024 characters. Must not be empty.
-     * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for searchQueryParameter. - */ - public com.google.protobuf.ByteString getSearchQueryParameterBytes() { - java.lang.Object ref = searchQueryParameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - searchQueryParameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. URL query parameters to interpret as site search parameters.
-     * Max length is 1024 characters. Must not be empty.
-     * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The searchQueryParameter to set. - * @return This builder for chaining. - */ - public Builder setSearchQueryParameter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - searchQueryParameter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. URL query parameters to interpret as site search parameters.
-     * Max length is 1024 characters. Must not be empty.
-     * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearSearchQueryParameter() { - - searchQueryParameter_ = getDefaultInstance().getSearchQueryParameter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. URL query parameters to interpret as site search parameters.
-     * Max length is 1024 characters. Must not be empty.
-     * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for searchQueryParameter to set. - * @return This builder for chaining. - */ - public Builder setSearchQueryParameterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - searchQueryParameter_ = value; - onChanged(); - return this; - } - - private java.lang.Object uriQueryParameter_ = ""; - /** - * - * - *
-     * Additional URL query parameters.
-     * Max length is 1024 characters.
-     * 
- * - * string uri_query_parameter = 17; - * - * @return The uriQueryParameter. - */ - public java.lang.String getUriQueryParameter() { - java.lang.Object ref = uriQueryParameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uriQueryParameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Additional URL query parameters.
-     * Max length is 1024 characters.
-     * 
- * - * string uri_query_parameter = 17; - * - * @return The bytes for uriQueryParameter. - */ - public com.google.protobuf.ByteString getUriQueryParameterBytes() { - java.lang.Object ref = uriQueryParameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uriQueryParameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Additional URL query parameters.
-     * Max length is 1024 characters.
-     * 
- * - * string uri_query_parameter = 17; - * - * @param value The uriQueryParameter to set. - * @return This builder for chaining. - */ - public Builder setUriQueryParameter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uriQueryParameter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Additional URL query parameters.
-     * Max length is 1024 characters.
-     * 
- * - * string uri_query_parameter = 17; - * - * @return This builder for chaining. - */ - public Builder clearUriQueryParameter() { - - uriQueryParameter_ = getDefaultInstance().getUriQueryParameter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Additional URL query parameters.
-     * Max length is 1024 characters.
-     * 
- * - * string uri_query_parameter = 17; - * - * @param value The bytes for uriQueryParameter to set. - * @return This builder for chaining. - */ - public Builder setUriQueryParameterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uriQueryParameter_ = 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.EnhancedMeasurementSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - private static final com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); - } - - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnhancedMeasurementSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnhancedMeasurementSettings(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.EnhancedMeasurementSettings - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java deleted file mode 100644 index f341b9d2..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java +++ /dev/null @@ -1,237 +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 EnhancedMeasurementSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Resource name of this Data Stream.
-   * Format:
-   * properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * 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}/enhancedMeasurementSettings
-   * Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Indicates whether Enhanced Measurement Settings will be used to
-   * automatically measure interactions and content on this web stream.
-   * Changing this value does not affect the settings themselves, but determines
-   * whether they are respected.
-   * 
- * - * bool stream_enabled = 2; - * - * @return The streamEnabled. - */ - boolean getStreamEnabled(); - - /** - * - * - *
-   * Output only. If enabled, capture a page view event each time a page loads or the
-   * website changes the browser history state.
-   * 
- * - * bool page_views_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pageViewsEnabled. - */ - boolean getPageViewsEnabled(); - - /** - * - * - *
-   * If enabled, capture scroll events each time a visitor gets to the bottom of
-   * a page.
-   * 
- * - * bool scrolls_enabled = 4; - * - * @return The scrollsEnabled. - */ - boolean getScrollsEnabled(); - - /** - * - * - *
-   * If enabled, capture an outbound click event each time a visitor clicks a
-   * link that leads them away from your domain.
-   * 
- * - * bool outbound_clicks_enabled = 5; - * - * @return The outboundClicksEnabled. - */ - boolean getOutboundClicksEnabled(); - - /** - * - * - *
-   * If enabled, capture a view search results event each time a visitor
-   * performs a search on your site (based on a query parameter).
-   * 
- * - * bool site_search_enabled = 7; - * - * @return The siteSearchEnabled. - */ - boolean getSiteSearchEnabled(); - - /** - * - * - *
-   * If enabled, capture video play, progress, and complete events as visitors
-   * view embedded videos on your site.
-   * 
- * - * bool video_engagement_enabled = 9; - * - * @return The videoEngagementEnabled. - */ - boolean getVideoEngagementEnabled(); - - /** - * - * - *
-   * If enabled, capture a file download event each time a link is clicked with
-   * a common document, compressed file, application, video, or audio extension.
-   * 
- * - * bool file_downloads_enabled = 10; - * - * @return The fileDownloadsEnabled. - */ - boolean getFileDownloadsEnabled(); - - /** - * - * - *
-   * Output only. If enabled, capture a page view event each time a page loads.
-   * 
- * - * bool page_loads_enabled = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The pageLoadsEnabled. - */ - boolean getPageLoadsEnabled(); - - /** - * - * - *
-   * If enabled, capture a page view event each time the website changes the
-   * browser history state.
-   * 
- * - * bool page_changes_enabled = 13; - * - * @return The pageChangesEnabled. - */ - boolean getPageChangesEnabled(); - - /** - * - * - *
-   * Required. URL query parameters to interpret as site search parameters.
-   * Max length is 1024 characters. Must not be empty.
-   * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The searchQueryParameter. - */ - java.lang.String getSearchQueryParameter(); - /** - * - * - *
-   * Required. URL query parameters to interpret as site search parameters.
-   * Max length is 1024 characters. Must not be empty.
-   * 
- * - * string search_query_parameter = 16 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for searchQueryParameter. - */ - com.google.protobuf.ByteString getSearchQueryParameterBytes(); - - /** - * - * - *
-   * Additional URL query parameters.
-   * Max length is 1024 characters.
-   * 
- * - * string uri_query_parameter = 17; - * - * @return The uriQueryParameter. - */ - java.lang.String getUriQueryParameter(); - /** - * - * - *
-   * Additional URL query parameters.
-   * Max length is 1024 characters.
-   * 
- * - * string uri_query_parameter = 17; - * - * @return The bytes for uriQueryParameter. - */ - com.google.protobuf.ByteString getUriQueryParameterBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java index e5d1e1fa..91e51bdd 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -22,7 +22,7 @@ * * *
- * A link between an GA4 property and a Firebase project.
+ * A link between a GA4 property and a Firebase project.
  * 
* * Protobuf type {@code google.analytics.admin.v1alpha.FirebaseLink} @@ -477,7 +477,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A link between an GA4 property and a Firebase project.
+   * A link between a GA4 property and a Firebase project.
    * 
* * Protobuf type {@code google.analytics.admin.v1alpha.FirebaseLink} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java new file mode 100644 index 00000000..d11f7f5e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} + */ +public final class GetDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) + GetDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataStreamRequest.newBuilder() to construct. + private GetDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDataStreamRequest( + 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_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDataStreamRequest other = + (com.google.analytics.admin.v1alpha.GetDataStreamRequest) 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.GetDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest 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.GetDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest 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.GetDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest 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.GetDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest 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.GetDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest 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.GetDataStreamRequest 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.GetDataStreamRequest 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.GetDataStreamRequest 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 GetDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) + com.google.analytics.admin.v1alpha.GetDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetDataStreamRequest.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_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest build() { + com.google.analytics.admin.v1alpha.GetDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataStreamRequest result = + new com.google.analytics.admin.v1alpha.GetDataStreamRequest(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.GetDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetDataStreamRequest.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.GetDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetDataStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.GetDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataStreamRequest(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.GetDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..bf5da682 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java index dc6b0eee..7d7ae788 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -22,7 +22,7 @@ * * *
- * A link between an GA4 property and a Google Ads account.
+ * A link between a GA4 property and a Google Ads account.
  * 
* * Protobuf type {@code google.analytics.admin.v1alpha.GoogleAdsLink} @@ -736,7 +736,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A link between an GA4 property and a Google Ads account.
+   * A link between a GA4 property and a Google Ads account.
    * 
* * Protobuf type {@code google.analytics.admin.v1alpha.GoogleAdsLink} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java new file mode 100644 index 00000000..761c115e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} + */ +public final class ListDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) + ListDataStreamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataStreamsRequest.newBuilder() to construct. + private ListDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataStreamsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataStreamsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDataStreamsRequest( + 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_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListDataStreams` 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 `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListDataStreams` 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.ListDataStreamsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDataStreamsRequest other = + (com.google.analytics.admin.v1alpha.ListDataStreamsRequest) 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.ListDataStreamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest 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.ListDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest 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.ListDataStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest 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.ListDataStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest 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.ListDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest 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.ListDataStreamsRequest 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.ListDataStreamsRequest 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.ListDataStreamsRequest 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 ListDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) + com.google.analytics.admin.v1alpha.ListDataStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListDataStreamsRequest.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_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest build() { + com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = + new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(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.ListDataStreamsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListDataStreamsRequest.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.ListDataStreamsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListDataStreamsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListDataStreams` 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 `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListDataStreams` 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 `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListDataStreams` 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 `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListDataStreams` 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 `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListDataStreams` 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.ListDataStreamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) + private static final com.google.analytics.admin.v1alpha.ListDataStreamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataStreamsRequest(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.ListDataStreamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java new file mode 100644 index 00000000..f4b3eead --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDataStreamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListDataStreams` 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 `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListDataStreams` 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/ListDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java new file mode 100644 index 00000000..f8a1dacd --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java @@ -0,0 +1,1140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} + */ +public final class ListDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) + ListDataStreamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataStreamsResponse.newBuilder() to construct. + private ListDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataStreamsResponse() { + dataStreams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataStreamsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDataStreamsResponse( + 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)) { + dataStreams_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dataStreams_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.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)) { + dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); + } + 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_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); + } + + public static final int DATA_STREAMS_FIELD_NUMBER = 1; + private java.util.List dataStreams_; + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public java.util.List getDataStreamsList() { + return dataStreams_; + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public java.util.List + getDataStreamsOrBuilderList() { + return dataStreams_; + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public int getDataStreamsCount() { + return dataStreams_.size(); + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { + return dataStreams_.get(index); + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder(int index) { + return dataStreams_.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 < dataStreams_.size(); i++) { + output.writeMessage(1, dataStreams_.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 < dataStreams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataStreams_.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.ListDataStreamsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDataStreamsResponse other = + (com.google.analytics.admin.v1alpha.ListDataStreamsResponse) obj; + + if (!getDataStreamsList().equals(other.getDataStreamsList())) 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 (getDataStreamsCount() > 0) { + hash = (37 * hash) + DATA_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getDataStreamsList().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.ListDataStreamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse 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.ListDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse 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.ListDataStreamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse 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.ListDataStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse 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.ListDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse 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.ListDataStreamsResponse 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.ListDataStreamsResponse 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.ListDataStreamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) + com.google.analytics.admin.v1alpha.ListDataStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListDataStreamsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataStreamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataStreamsBuilder_ == null) { + dataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dataStreamsBuilder_.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_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse build() { + com.google.analytics.admin.v1alpha.ListDataStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListDataStreamsResponse result = + new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(this); + int from_bitField0_ = bitField0_; + if (dataStreamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataStreams_ = dataStreams_; + } else { + result.dataStreams_ = dataStreamsBuilder_.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.ListDataStreamsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance()) + return this; + if (dataStreamsBuilder_ == null) { + if (!other.dataStreams_.isEmpty()) { + if (dataStreams_.isEmpty()) { + dataStreams_ = other.dataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataStreamsIsMutable(); + dataStreams_.addAll(other.dataStreams_); + } + onChanged(); + } + } else { + if (!other.dataStreams_.isEmpty()) { + if (dataStreamsBuilder_.isEmpty()) { + dataStreamsBuilder_.dispose(); + dataStreamsBuilder_ = null; + dataStreams_ = other.dataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + dataStreamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataStreamsFieldBuilder() + : null; + } else { + dataStreamsBuilder_.addAllMessages(other.dataStreams_); + } + } + } + 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.ListDataStreamsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListDataStreamsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List dataStreams_ = + java.util.Collections.emptyList(); + + private void ensureDataStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataStreams_ = + new java.util.ArrayList(dataStreams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + dataStreamsBuilder_; + + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public java.util.List getDataStreamsList() { + if (dataStreamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStreams_); + } else { + return dataStreamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public int getDataStreamsCount() { + if (dataStreamsBuilder_ == null) { + return dataStreams_.size(); + } else { + return dataStreamsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { + if (dataStreamsBuilder_ == null) { + return dataStreams_.get(index); + } else { + return dataStreamsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder setDataStreams(int index, com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.set(index, value); + onChanged(); + } else { + dataStreamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder setDataStreams( + int index, com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.add(value); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams(int index, com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.add(index, value); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams( + int index, com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addAllDataStreams( + java.lang.Iterable values) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStreams_); + onChanged(); + } else { + dataStreamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder clearDataStreams() { + if (dataStreamsBuilder_ == null) { + dataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataStreamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder removeDataStreams(int index) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.remove(index); + onChanged(); + } else { + dataStreamsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamsBuilder(int index) { + return getDataStreamsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder( + int index) { + if (dataStreamsBuilder_ == null) { + return dataStreams_.get(index); + } else { + return dataStreamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public java.util.List + getDataStreamsOrBuilderList() { + if (dataStreamsBuilder_ != null) { + return dataStreamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStreams_); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder addDataStreamsBuilder() { + return getDataStreamsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder addDataStreamsBuilder(int index) { + return getDataStreamsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public java.util.List + getDataStreamsBuilderList() { + return getDataStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + getDataStreamsFieldBuilder() { + if (dataStreamsBuilder_ == null) { + dataStreamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( + dataStreams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataStreams_ = null; + } + return dataStreamsBuilder_; + } + + 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.ListDataStreamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) + private static final com.google.analytics.admin.v1alpha.ListDataStreamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataStreamsResponse(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.ListDataStreamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java new file mode 100644 index 00000000..57bc69f3 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDataStreamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + java.util.List getDataStreamsList(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + int getDataStreamsCount(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + java.util.List + getDataStreamsOrBuilderList(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder(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/Property.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 334a2d84..2e5680d9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -45,6 +45,7 @@ private Property() { timeZone_ = ""; currencyCode_ = ""; serviceLevel_ = 0; + account_ = ""; } @java.lang.Override @@ -183,6 +184,13 @@ private Property( expireTime_ = subBuilder.buildPartial(); } + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + account_ = s; break; } default: @@ -777,6 +785,63 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { return getExpireTime(); } + public static final int ACCOUNT_FIELD_NUMBER = 13; + private volatile java.lang.Object account_; + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -827,6 +892,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(12, getExpireTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, account_); + } unknownFields.writeTo(output); } @@ -872,6 +940,9 @@ public int getSerializedSize() { if (expireTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getExpireTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, account_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -911,6 +982,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExpireTime()) { if (!getExpireTime().equals(other.getExpireTime())) return false; } + if (!getAccount().equals(other.getAccount())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -952,6 +1024,8 @@ public int hashCode() { hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpireTime().hashCode(); } + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1135,6 +1209,8 @@ public Builder clear() { expireTime_ = null; expireTimeBuilder_ = null; } + account_ = ""; + return this; } @@ -1189,6 +1265,7 @@ public com.google.analytics.admin.v1alpha.Property buildPartial() { } else { result.expireTime_ = expireTimeBuilder_.build(); } + result.account_ = account_; onBuilt(); return result; } @@ -1276,6 +1353,10 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { if (other.hasExpireTime()) { mergeExpireTime(other.getExpireTime()); } + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2935,6 +3016,132 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { return expireTimeBuilder_; } + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + account_ = value; + onChanged(); + return this; + } + @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/PropertyOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index 039e570b..fee4031e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -392,4 +392,37 @@ public interface PropertyOrBuilder * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java index 17a49aa9..0de5d20f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java @@ -22,7 +22,7 @@ * * *
- * A virtual resource representing metadata for an GA4 property.
+ * A virtual resource representing metadata for a GA4 property.
  * 
* * Protobuf type {@code google.analytics.admin.v1alpha.PropertySummary} @@ -178,7 +178,7 @@ public com.google.protobuf.ByteString getPropertyBytes() { * * *
-   * Display name for the property referred to in this account summary.
+   * Display name for the property referred to in this property summary.
    * 
* * string display_name = 2; @@ -201,7 +201,7 @@ public java.lang.String getDisplayName() { * * *
-   * Display name for the property referred to in this account summary.
+   * Display name for the property referred to in this property summary.
    * 
* * string display_name = 2; @@ -393,7 +393,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * A virtual resource representing metadata for an GA4 property.
+   * A virtual resource representing metadata for a GA4 property.
    * 
* * Protobuf type {@code google.analytics.admin.v1alpha.PropertySummary} @@ -676,7 +676,7 @@ public Builder setPropertyBytes(com.google.protobuf.ByteString value) { * * *
-     * Display name for the property referred to in this account summary.
+     * Display name for the property referred to in this property summary.
      * 
* * string display_name = 2; @@ -698,7 +698,7 @@ public java.lang.String getDisplayName() { * * *
-     * Display name for the property referred to in this account summary.
+     * Display name for the property referred to in this property summary.
      * 
* * string display_name = 2; @@ -720,7 +720,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Display name for the property referred to in this account summary.
+     * Display name for the property referred to in this property summary.
      * 
* * string display_name = 2; @@ -741,7 +741,7 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Display name for the property referred to in this account summary.
+     * Display name for the property referred to in this property summary.
      * 
* * string display_name = 2; @@ -758,7 +758,7 @@ public Builder clearDisplayName() { * * *
-     * Display name for the property referred to in this account summary.
+     * Display name for the property referred to in this property summary.
      * 
* * string display_name = 2; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java index c51e12ce..db439692 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java @@ -56,7 +56,7 @@ public interface PropertySummaryOrBuilder * * *
-   * Display name for the property referred to in this account summary.
+   * Display name for the property referred to in this property summary.
    * 
* * string display_name = 2; @@ -68,7 +68,7 @@ public interface PropertySummaryOrBuilder * * *
-   * Display name for the property referred to in this account summary.
+   * Display name for the property referred to in this property summary.
    * 
* * string display_name = 2; 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 46fe827e..df69745a 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 @@ -47,6 +47,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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 + internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_UserLink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -55,10 +71,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -151,7 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".protobuf.TimestampB\003\340A\003\022\031\n\014display_name" + "\030\004 \001(\tB\003\340A\002\022\023\n\013region_code\030\005 \001(\t\022\024\n\007dele" + "ted\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.goog" - + "leapis.com/Account\022\022accounts/{account}\"\257" + + "leapis.com/Account\022\022accounts/{account}\"\357" + "\004\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + "\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.proto" @@ -164,282 +176,298 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1alpha.ServiceLevelB\003\340A\003\0224\n\013delete_time\030" + "\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + "\n\013expire_time\030\014 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003:B\352A?\n&analyticsadmin.google" - + "apis.com/Property\022\025properties/{property}" - + "\"\344\002\n\024AndroidAppDataStream\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003\0224\n\013cr" - + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\031\n\014package_name\030\005" - + " \001(\tB\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352A{\n2an" - + "alyticsadmin.googleapis.com/AndroidAppDa" - + "taStream\022Eproperties/{property}/androidA" - + "ppDataStreams/{android_app_data_stream}\"" - + "\324\002\n\020IosAppDataStream\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_" + + "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\0224\n\013update_time\030\004 \001(\0132\032.google.protob" - + "uf.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.analyti" - + "csadmin.googleapis.com/IosAppDataStream\022" - + "=properties/{property}/iosAppDataStreams" - + "/{ios_app_data_stream}\"\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\017firebase_app_id\030\003 \001(\tB\003\340A\003\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\022\030\n\013default_ur" - + "i\030\006 \001(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\tB\003\340A\002:" - + "h\352Ae\n+analyticsadmin.googleapis.com/WebD" - + "ataStream\0226properties/{property}/webData" - + "Streams/{web_data_stream}\"\324\001\n\010UserLink\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\remail_address\030\002 \001(\t" - + "B\003\340A\005\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n&analy" - + "ticsadmin.googleapis.com/UserLink\022(accou" - + "nts/{account}/userLinks/{user_link}\022+pro" - + "perties/{property}/userLinks/{user_link}" - + "\"c\n\rAuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\remail" - + "_address\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017" - + "effective_roles\030\004 \003(\t\"\231\004\n\033EnhancedMeasur" - + "ementSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stre" - + "am_enabled\030\002 \001(\010\022\037\n\022page_views_enabled\030\003" - + " \001(\010B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010\022\037\n\027ou" - + "tbound_clicks_enabled\030\005 \001(\010\022\033\n\023site_sear" - + "ch_enabled\030\007 \001(\010\022 \n\030video_engagement_ena" - + "bled\030\t \001(\010\022\036\n\026file_downloads_enabled\030\n \001" - + "(\010\022\037\n\022page_loads_enabled\030\014 \001(\010B\003\340A\003\022\034\n\024p" - + "age_changes_enabled\030\r \001(\010\022#\n\026search_quer" - + "y_parameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_query_para" - + "meter\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin.googl" - + "eapis.com/EnhancedMeasurementSettings\022Rp" - + "roperties/{property}/webDataStreams/{web" - + "_data_stream}/enhancedMeasurementSetting" - + "s\"\323\001\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n" - + "\007project\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n*" - + "analyticsadmin.googleapis.com/FirebaseLi" - + "nk\0223properties/{property}/firebaseLinks/" - + "{firebase_link}\"\217\001\n\rGlobalSiteTag\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:U\352AR\n" - + "+analyticsadmin.googleapis.com/GlobalSit" - + "eTag\022#properties/{property}/globalSiteTa" - + "g\"\230\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030" - + "\n\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_c" - + "lients\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization" - + "_enabled\030\005 \001(\0132\032.google.protobuf.BoolVal" - + "ue\0224\n\013create_time\030\007 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022\"\n\025creato" - + "r_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n+analyti" - + "csadmin.googleapis.com/GoogleAdsLink\0226pr" - + "operties/{property}/googleAdsLinks/{goog" - + "le_ads_link}\"\353\002\n\023DataSharingSettings\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_google_s" - + "upport_enabled\030\002 \001(\010\0222\n*sharing_with_goo" - + "gle_assigned_sales_enabled\030\003 \001(\010\022-\n%shar" - + "ing_with_google_any_sales_enabled\030\004 \001(\010\022" - + ",\n$sharing_with_google_products_enabled\030" - + "\005 \001(\010\022#\n\033sharing_with_others_enabled\030\006 \001" - + "(\010:^\352A[\n1analyticsadmin.googleapis.com/D" - + "ataSharingSettings\022&accounts/{account}/d" - + "ataSharingSettings\"\225\002\n\016AccountSummary\022\014\n" - + "\004name\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%analy" - + "ticsadmin.googleapis.com/Account\022\024\n\014disp" - + "lay_name\030\003 \001(\t\022K\n\022property_summaries\030\004 \003" - + "(\0132/.google.analytics.admin.v1alpha.Prop" - + "ertySummary:U\352AR\n,analyticsadmin.googlea" - + "pis.com/AccountSummary\022\"accountSummaries" - + "/{account_summary}\"f\n\017PropertySummary\022=\n" - + "\010property\030\001 \001(\tB+\372A(\n&analyticsadmin.goo" - + "gleapis.com/Property\022\024\n\014display_name\030\002 \001" - + "(\t\"\225\002\n\031MeasurementProtocolSecret\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\031" - + "\n\014secret_value\030\003 \001(\tB\003\340A\003:\256\001\352A\252\001\n7analyt" - + "icsadmin.googleapis.com/MeasurementProto" - + "colSecret\022oproperties/{property}/webData" - + "Streams/{web_data_stream}/measurementPro" - + "tocolSecrets/{measurement_protocol_secre" - + "t}\"\212\002\n\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n" - + "\013change_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estamp\022=\n\nactor_type\030\003 \001(\0162).google.anal" - + "ytics.admin.v1alpha.ActorType\022\030\n\020user_ac" - + "tor_email\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(" - + "\010\022D\n\007changes\030\006 \003(\01323.google.analytics.ad" - + "min.v1alpha.ChangeHistoryChange\"\275\014\n\023Chan" - + "geHistoryChange\022\020\n\010resource\030\001 \001(\t\022:\n\006act" - + "ion\030\002 \001(\0162*.google.analytics.admin.v1alp" - + "ha.ActionType\022i\n\026resource_before_change\030" - + "\003 \001(\0132I.google.analytics.admin.v1alpha.C" - + "hangeHistoryChange.ChangeHistoryResource" - + "\022h\n\025resource_after_change\030\004 \001(\0132I.google" - + ".analytics.admin.v1alpha.ChangeHistoryCh" - + "ange.ChangeHistoryResource\032\202\n\n\025ChangeHis" - + "toryResource\022:\n\007account\030\001 \001(\0132\'.google.a" - + "nalytics.admin.v1alpha.AccountH\000\022<\n\010prop" - + "erty\030\002 \001(\0132(.google.analytics.admin.v1al" - + "pha.PropertyH\000\022H\n\017web_data_stream\030\003 \001(\0132" - + "-.google.analytics.admin.v1alpha.WebData" - + "StreamH\000\022W\n\027android_app_data_stream\030\004 \001(" - + "\01324.google.analytics.admin.v1alpha.Andro" - + "idAppDataStreamH\000\022O\n\023ios_app_data_stream" - + "\030\005 \001(\01320.google.analytics.admin.v1alpha." - + "IosAppDataStreamH\000\022E\n\rfirebase_link\030\006 \001(" - + "\0132,.google.analytics.admin.v1alpha.Fireb" - + "aseLinkH\000\022H\n\017google_ads_link\030\007 \001(\0132-.goo" - + "gle.analytics.admin.v1alpha.GoogleAdsLin" - + "kH\000\022X\n\027google_signals_settings\030\010 \001(\01325.g" - + "oogle.analytics.admin.v1alpha.GoogleSign" - + "alsSettingsH\000\022j\n!display_video_360_adver" - + "tiser_link\030\t \001(\0132=.google.analytics.admi" - + "n.v1alpha.DisplayVideo360AdvertiserLinkH" - + "\000\022{\n*display_video_360_advertiser_link_p" - + "roposal\030\n \001(\0132E.google.analytics.admin.v" - + "1alpha.DisplayVideo360AdvertiserLinkProp" - + "osalH\000\022K\n\020conversion_event\030\013 \001(\0132/.googl" - + "e.analytics.admin.v1alpha.ConversionEven" - + "tH\000\022`\n\033measurement_protocol_secret\030\014 \001(\013" - + "29.google.analytics.admin.v1alpha.Measur" - + "ementProtocolSecretH\000\022K\n\020custom_dimensio" - + "n\030\r \001(\0132/.google.analytics.admin.v1alpha" - + ".CustomDimensionH\000\022E\n\rcustom_metric\030\016 \001(" - + "\0132,.google.analytics.admin.v1alpha.Custo" - + "mMetricH\000\022X\n\027data_retention_settings\030\017 \001" - + "(\01325.google.analytics.admin.v1alpha.Data" - + "RetentionSettingsH\000B\n\n\010resource\"\337\003\n\035Disp" - + "layVideo360AdvertiserLink\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022$\n\027adve" - + "rtiser_display_name\030\003 \001(\tB\003\340A\003\022?\n\033ads_pe" - + "rsonalization_enabled\030\004 \001(\0132\032.google.pro" - + "tobuf.BoolValue\022F\n\035campaign_data_sharing" - + "_enabled\030\005 \001(\0132\032.google.protobuf.BoolVal" - + "ueB\003\340A\005\022B\n\031cost_data_sharing_enabled\030\006 \001" - + "(\0132\032.google.protobuf.BoolValueB\003\340A\005:\233\001\352A" - + "\227\001\n;analyticsadmin.googleapis.com/Displa" - + "yVideo360AdvertiserLink\022Xproperties/{pro" - + "perty}/displayVideo360AdvertiserLinks/{d" - + "isplay_video_360_advertiser_link}\"\212\005\n%Di" - + "splayVideo360AdvertiserLinkProposal\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340" - + "A\005\022d\n\034link_proposal_status_details\030\003 \001(\013" - + "29.google.analytics.admin.v1alpha.LinkPr" - + "oposalStatusDetailsB\003\340A\003\022$\n\027advertiser_d" - + "isplay_name\030\004 \001(\tB\003\340A\003\022\035\n\020validation_ema" - + "il\030\005 \001(\tB\003\340A\004\022D\n\033ads_personalization_ena" - + "bled\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\031c" - + "ost_data_sharing_enabled\030\010 \001(\0132\032.google." - + "protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\nCanalytic" - + "sadmin.googleapis.com/DisplayVideo360Adv" - + "ertiserLinkProposal\022iproperties/{propert" - + "y}/displayVideo360AdvertiserLinkProposal" - + "s/{display_video_360_advertiser_link_pro" - + "posal}\"\374\001\n\031LinkProposalStatusDetails\022l\n " - + "link_proposal_initiating_product\030\001 \001(\0162=" - + ".google.analytics.admin.v1alpha.LinkProp" - + "osalInitiatingProductB\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.L" - + "inkProposalStateB\003\340A\003\"\217\002\n\017ConversionEven" - + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name\030\002 \001(\t" - + "B\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.prot" - + "obuf.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-analytics" - + "admin.googleapis.com/ConversionEvent\0229pr" - + "operties/{property}/conversionEvents/{co" - + "nversion_event}\"\240\002\n\025GoogleSignalsSetting" - + "s\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\005state\030\003 \001(\01622.go" - + "ogle.analytics.admin.v1alpha.GoogleSigna" - + "lsState\022J\n\007consent\030\004 \001(\01624.google.analyt" - + "ics.admin.v1alpha.GoogleSignalsConsentB\003" - + "\340A\003:e\352Ab\n3analyticsadmin.googleapis.com/" - + "GoogleSignalsSettings\022+properties/{prope" - + "rty}/googleSignalsSettings\"\237\003\n\017CustomDim" - + "ension\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_n" - + "ame\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\tB" - + "\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022U\n\005scope\030" - + "\005 \001(\0162>.google.analytics.admin.v1alpha.C" - + "ustomDimension.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_UN" - + "SPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002:Z\352AW\n-a" - + "nalyticsadmin.googleapis.com/CustomDimen" - + "sion\022&properties/{property}/customDimens" - + "ions\"\354\004\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\014disp" - + "lay_name\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\t" - + "B\003\340A\001\022[\n\020measurement_unit\030\005 \001(\0162<.google" - + ".analytics.admin.v1alpha.CustomMetric.Me" - + "asurementUnitB\003\340A\002\022O\n\005scope\030\006 \001(\01628.goog" - + "le.analytics.admin.v1alpha.CustomMetric." - + "MetricScopeB\006\340A\002\340A\005\"\267\001\n\017MeasurementUnit\022" - + " \n\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n\010STA" - + "NDARD\020\001\022\014\n\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METER" - + "S\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLIS" - + "ECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HO" - + "URS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOPE_UNS" - + "PECIFIED\020\000\022\t\n\005EVENT\020\001:T\352AQ\n*analyticsadm" - + "in.googleapis.com/CustomMetric\022#properti" - + "es/{property}/customMetrics\"\302\003\n\025DataRete" - + "ntionSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022e\n\024even" - + "t_data_retention\030\002 \001(\0162G.google.analytic" - + "s.admin.v1alpha.DataRetentionSettings.Re" - + "tentionDuration\022\'\n\037reset_user_data_on_ne" - + "w_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"" - + "\n\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\nTW" - + "O_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENT" - + "Y_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022" - + "\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin.g" - + "oogleapis.com/DataRetentionSettings\022+pro" - + "perties/{property}/dataRetentionSettings" - + "*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CATEGO" - + "RY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSI" - + "NESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE" - + "\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TR" - + "AVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAINM" - + "ENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_A" - + "ND_LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005G" - + "AMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME_" - + "AND_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022\026" - + "\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLI" - + "NE_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_UNSPECIFI" - + "ED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024G" - + "OOGLE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026AC" - + "TOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYST" - + "EM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTIO" - + "N_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPD" - + "ATED\020\002\022\013\n\007DELETED\020\003*\361\002\n\031ChangeHistoryRes" - + "ourceType\022,\n(CHANGE_HISTORY_RESOURCE_TYP" - + "E_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY" - + "\020\002\022\023\n\017WEB_DATA_STREAM\020\003\022\033\n\027ANDROID_APP_D" - + "ATA_STREAM\020\004\022\027\n\023IOS_APP_DATA_STREAM\020\005\022\021\n" - + "\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n" - + "\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERSION" - + "_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*s\n\022Googl" - + "eSignalsState\022$\n GOOGLE_SIGNALS_STATE_UN" - + "SPECIFIED\020\000\022\032\n\026GOOGLE_SIGNALS_ENABLED\020\001\022" - + "\033\n\027GOOGLE_SIGNALS_DISABLED\020\002*\216\001\n\024GoogleS" - + "ignalsConsent\022&\n\"GOOGLE_SIGNALS_CONSENT_" - + "UNSPECIFIED\020\000\022$\n GOOGLE_SIGNALS_CONSENT_" - + "CONSENTED\020\002\022(\n$GOOGLE_SIGNALS_CONSENT_NO" - + "T_CONSENTED\020\001*{\n\035LinkProposalInitiatingP" - + "roduct\0220\n,LINK_PROPOSAL_INITIATING_PRODU" - + "CT_UNSPECIFIED\020\000\022\024\n\020GOOGLE_ANALYTICS\020\001\022\022" - + "\n\016LINKED_PRODUCT\020\002*\304\001\n\021LinkProposalState" - + "\022#\n\037LINK_PROPOSAL_STATE_UNSPECIFIED\020\000\022)\n" - + "%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\020\001" - + "\022\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT\020" - + "\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010DECLINED\020\004\022\013\n\007EXPIRE" - + "D\020\005\022\014\n\010OBSOLETE\020\006B{\n\"com.google.analytic" - + "s.admin.v1alphaB\016ResourcesProtoP\001ZCgoogl" - + "e.golang.org/genproto/googleapis/analyti" - + "cs/admin/v1alpha;adminb\006proto3" + + "\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" + + "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" + + "sent\022&\n\"GOOGLE_SIGNALS_CONSENT_UNSPECIFI" + + "ED\020\000\022$\n GOOGLE_SIGNALS_CONSENT_CONSENTED" + + "\020\002\022(\n$GOOGLE_SIGNALS_CONSENT_NOT_CONSENT" + + "ED\020\001*{\n\035LinkProposalInitiatingProduct\0220\n" + + ",LINK_PROPOSAL_INITIATING_PRODUCT_UNSPEC" + + "IFIED\020\000\022\024\n\020GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_" + + "PRODUCT\020\002*\304\001\n\021LinkProposalState\022#\n\037LINK_" + + "PROPOSAL_STATE_UNSPECIFIED\020\000\022)\n%AWAITING" + + "_REVIEW_FROM_GOOGLE_ANALYTICS\020\001\022\'\n#AWAIT" + + "ING_REVIEW_FROM_LINKED_PRODUCT\020\002\022\r\n\tWITH" + + "DRAWN\020\003\022\014\n\010DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OB" + + "SOLETE\020\006B{\n\"com.google.analytics.admin.v" + + "1alphaB\016ResourcesProtoP\001ZCgoogle.golang." + + "org/genproto/googleapis/analytics/admin/" + + "v1alpha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -475,6 +503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceLevel", "DeleteTime", "ExpireTime", + "Account", }); internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor = getDescriptor().getMessageTypes().get(2); @@ -506,8 +535,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultUri", "DisplayName", }); - internal_static_google_analytics_admin_v1alpha_UserLink_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor, + new java.lang.String[] { + "WebStreamData", + "AndroidAppStreamData", + "IosAppStreamData", + "Name", + "Type", + "DisplayName", + "CreateTime", + "UpdateTime", + "StreamData", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor, + new java.lang.String[] { + "MeasurementId", "FirebaseAppId", "DefaultUri", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor, + new java.lang.String[] { + "FirebaseAppId", "PackageName", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor + .getNestedTypes() + .get(2); + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor, + new java.lang.String[] { + "FirebaseAppId", "BundleId", + }); + internal_static_google_analytics_admin_v1alpha_UserLink_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UserLink_descriptor, @@ -515,32 +590,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", "DirectRoles", }); internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor, new java.lang.String[] { "Name", "EmailAddress", "DirectRoles", "EffectiveRoles", }); - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor, - new java.lang.String[] { - "Name", - "StreamEnabled", - "PageViewsEnabled", - "ScrollsEnabled", - "OutboundClicksEnabled", - "SiteSearchEnabled", - "VideoEngagementEnabled", - "FileDownloadsEnabled", - "PageLoadsEnabled", - "PageChangesEnabled", - "SearchQueryParameter", - "UriQueryParameter", - }); internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable = diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java new file mode 100644 index 00000000..516efd47 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java @@ -0,0 +1,1043 @@ +/* + * 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 UpdateDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} + */ +public final class UpdateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + UpdateDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataStreamRequest.newBuilder() to construct. + private UpdateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataStreamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateDataStreamRequest( + 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.DataStream.Builder subBuilder = null; + if (dataStream_ != null) { + subBuilder = dataStream_.toBuilder(); + } + dataStream_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataStream_); + dataStream_ = 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_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); + } + + public static final int DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return dataStream_ != null; + } + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + return getDataStream(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataStream_ != null) { + output.writeMessage(1, getDataStream()); + } + 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 (dataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataStream()); + } + 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.UpdateDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other = + (com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) obj; + + if (hasDataStream() != other.hasDataStream()) return false; + if (hasDataStream()) { + if (!getDataStream().equals(other.getDataStream())) 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 (hasDataStream()) { + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().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.UpdateDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest 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.UpdateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest 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.UpdateDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest 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.UpdateDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest 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.UpdateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest 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.UpdateDataStreamRequest 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.UpdateDataStreamRequest 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.UpdateDataStreamRequest 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 UpdateDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + com.google.analytics.admin.v1alpha.UpdateDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.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 (dataStreamBuilder_ == null) { + dataStream_ = null; + } else { + dataStream_ = null; + dataStreamBuilder_ = 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_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest build() { + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = + new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(this); + if (dataStreamBuilder_ == null) { + result.dataStream_ = dataStream_; + } else { + result.dataStream_ = dataStreamBuilder_.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.UpdateDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasDataStream()) { + mergeDataStream(other.getDataStream()); + } + 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.UpdateDataStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + 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_; + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + public boolean hasDataStream() { + return dataStreamBuilder_ != null || dataStream_ != null; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return The dataStream. + */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } else { + return dataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStream_ = value; + onChanged(); + } else { + dataStreamBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder setDataStream( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + dataStream_ = builderForValue.build(); + onChanged(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (dataStream_ != null) { + dataStream_ = + com.google.analytics.admin.v1alpha.DataStream.newBuilder(dataStream_) + .mergeFrom(value) + .buildPartial(); + } else { + dataStream_ = value; + } + onChanged(); + } else { + dataStreamBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder clearDataStream() { + if (dataStreamBuilder_ == null) { + dataStream_ = null; + onChanged(); + } else { + dataStream_ = null; + dataStreamBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { + + onChanged(); + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if (dataStreamBuilder_ != null) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + 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) { + 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>( + getDataStream(), getParentForChildren(), isClean()); + dataStream_ = null; + } + return dataStreamBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDataStreamRequest(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.UpdateDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java new file mode 100644 index 00000000..fa38bcf1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return The dataStream. + */ + com.google.analytics.admin.v1alpha.DataStream getDataStream(); + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java deleted file mode 100644 index 8a84e47a..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java +++ /dev/null @@ -1,1120 +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 UpdateEnhancedMeasurementSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} - */ -public final class UpdateEnhancedMeasurementSettingsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - UpdateEnhancedMeasurementSettingsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateEnhancedMeasurementSettingsRequest.newBuilder() to construct. - private UpdateEnhancedMeasurementSettingsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateEnhancedMeasurementSettingsRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateEnhancedMeasurementSettingsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateEnhancedMeasurementSettingsRequest( - 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.EnhancedMeasurementSettings.Builder subBuilder = - null; - if (enhancedMeasurementSettings_ != null) { - subBuilder = enhancedMeasurementSettings_.toBuilder(); - } - enhancedMeasurementSettings_ = - input.readMessage( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(enhancedMeasurementSettings_); - enhancedMeasurementSettings_ = 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_UpdateEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder - .class); - } - - public static final int ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - enhancedMeasurementSettings_; - /** - * - * - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the enhancedMeasurementSettings field is set. - */ - @java.lang.Override - public boolean hasEnhancedMeasurementSettings() { - return enhancedMeasurementSettings_ != null; - } - /** - * - * - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enhancedMeasurementSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getEnhancedMeasurementSettings() { - return enhancedMeasurementSettings_ == null - ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() - : enhancedMeasurementSettings_; - } - /** - * - * - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder - getEnhancedMeasurementSettingsOrBuilder() { - return getEnhancedMeasurementSettings(); - } - - 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 (enhancedMeasurementSettings_ != null) { - output.writeMessage(1, getEnhancedMeasurementSettings()); - } - 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 (enhancedMeasurementSettings_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getEnhancedMeasurementSettings()); - } - 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.UpdateEnhancedMeasurementSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other = - (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) obj; - - if (hasEnhancedMeasurementSettings() != other.hasEnhancedMeasurementSettings()) return false; - if (hasEnhancedMeasurementSettings()) { - if (!getEnhancedMeasurementSettings().equals(other.getEnhancedMeasurementSettings())) - 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 (hasEnhancedMeasurementSettings()) { - hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getEnhancedMeasurementSettings().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.UpdateEnhancedMeasurementSettingsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest - 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.UpdateEnhancedMeasurementSettingsRequest 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 UpdateEnhancedMeasurementSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder - .class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.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 (enhancedMeasurementSettingsBuilder_ == null) { - enhancedMeasurementSettings_ = null; - } else { - enhancedMeasurementSettings_ = null; - enhancedMeasurementSettingsBuilder_ = 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_UpdateEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest build() { - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - buildPartial() { - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = - new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(this); - if (enhancedMeasurementSettingsBuilder_ == null) { - result.enhancedMeasurementSettings_ = enhancedMeasurementSettings_; - } else { - result.enhancedMeasurementSettings_ = enhancedMeasurementSettingsBuilder_.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.UpdateEnhancedMeasurementSettingsRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other) { - if (other - == com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - .getDefaultInstance()) return this; - if (other.hasEnhancedMeasurementSettings()) { - mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); - } - 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.UpdateEnhancedMeasurementSettingsRequest parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - enhancedMeasurementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> - enhancedMeasurementSettingsBuilder_; - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the enhancedMeasurementSettings field is set. - */ - public boolean hasEnhancedMeasurementSettings() { - return enhancedMeasurementSettingsBuilder_ != null || enhancedMeasurementSettings_ != null; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enhancedMeasurementSettings. - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getEnhancedMeasurementSettings() { - if (enhancedMeasurementSettingsBuilder_ == null) { - return enhancedMeasurementSettings_ == null - ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() - : enhancedMeasurementSettings_; - } else { - return enhancedMeasurementSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enhancedMeasurementSettings_ = value; - onChanged(); - } else { - enhancedMeasurementSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder builderForValue) { - if (enhancedMeasurementSettingsBuilder_ == null) { - enhancedMeasurementSettings_ = builderForValue.build(); - onChanged(); - } else { - enhancedMeasurementSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (enhancedMeasurementSettings_ != null) { - enhancedMeasurementSettings_ = - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.newBuilder( - enhancedMeasurementSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - enhancedMeasurementSettings_ = value; - } - onChanged(); - } else { - enhancedMeasurementSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEnhancedMeasurementSettings() { - if (enhancedMeasurementSettingsBuilder_ == null) { - enhancedMeasurementSettings_ = null; - onChanged(); - } else { - enhancedMeasurementSettings_ = null; - enhancedMeasurementSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder - getEnhancedMeasurementSettingsBuilder() { - - onChanged(); - return getEnhancedMeasurementSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder - getEnhancedMeasurementSettingsOrBuilder() { - if (enhancedMeasurementSettingsBuilder_ != null) { - return enhancedMeasurementSettingsBuilder_.getMessageOrBuilder(); - } else { - return enhancedMeasurementSettings_ == null - ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() - : enhancedMeasurementSettings_; - } - } - /** - * - * - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> - getEnhancedMeasurementSettingsFieldBuilder() { - if (enhancedMeasurementSettingsBuilder_ == null) { - enhancedMeasurementSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder>( - getEnhancedMeasurementSettings(), getParentForChildren(), isClean()); - enhancedMeasurementSettings_ = null; - } - return enhancedMeasurementSettingsBuilder_; - } - - 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.UpdateEnhancedMeasurementSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - private static final com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEnhancedMeasurementSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateEnhancedMeasurementSettingsRequest(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.UpdateEnhancedMeasurementSettingsRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java deleted file mode 100644 index 0a1d9b8f..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.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 UpdateEnhancedMeasurementSettingsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the enhancedMeasurementSettings field is set. - */ - boolean hasEnhancedMeasurementSettings(); - /** - * - * - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enhancedMeasurementSettings. - */ - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(); - /** - * - * - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder - getEnhancedMeasurementSettingsOrBuilder(); - - /** - * - * - *
-   * 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/UserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java index 97312bc1..3ddf3dad 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java @@ -241,10 +241,12 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { *
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -264,10 +266,12 @@ public com.google.protobuf.ProtocolStringList getDirectRolesList() {
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -287,10 +291,12 @@ public int getDirectRolesCount() {
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -311,10 +317,12 @@ public java.lang.String getDirectRoles(int index) {
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -926,10 +934,12 @@ private void ensureDirectRolesIsMutable() {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -949,10 +959,12 @@ public com.google.protobuf.ProtocolStringList getDirectRolesList() {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -972,10 +984,12 @@ public int getDirectRolesCount() {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -996,10 +1010,12 @@ public java.lang.String getDirectRoles(int index) {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -1020,10 +1036,12 @@ public com.google.protobuf.ByteString getDirectRolesBytes(int index) {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -1051,10 +1069,12 @@ public Builder setDirectRoles(int index, java.lang.String value) {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -1081,10 +1101,12 @@ public Builder addDirectRoles(java.lang.String value) {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -1108,10 +1130,12 @@ public Builder addAllDirectRoles(java.lang.Iterable values) {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
@@ -1134,10 +1158,12 @@ public Builder clearDirectRoles() {
      * 
      * Roles directly assigned to this user for this account or property.
      * Valid values:
-     * predefinedRoles/read
-     * predefinedRoles/collaborate
-     * predefinedRoles/edit
-     * predefinedRoles/manage-users
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
      * Excludes roles that are inherited from a higher-level entity, group,
      * or organization admin role.
      * A UserLink that is updated to have an empty list of direct_roles will be
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java
index 986cc9d5..4a5aa7fe 100644
--- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java
+++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java
@@ -79,10 +79,12 @@ public interface UserLinkOrBuilder
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -100,10 +102,12 @@ public interface UserLinkOrBuilder
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -121,10 +125,12 @@ public interface UserLinkOrBuilder
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
@@ -143,10 +149,12 @@ public interface UserLinkOrBuilder
    * 
    * Roles directly assigned to this user for this account or property.
    * Valid values:
-   * predefinedRoles/read
-   * predefinedRoles/collaborate
-   * predefinedRoles/edit
-   * predefinedRoles/manage-users
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
    * Excludes roles that are inherited from a higher-level entity, group,
    * or organization admin role.
    * A UserLink that is updated to have an empty list of direct_roles will be
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
index d51cfd07..d8c53695 100644
--- 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
@@ -484,7 +484,7 @@ public com.google.protobuf.ByteString getDefaultUriBytes() {
    *
    * 
    * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 100 UTF-16 code units.
+   * The max allowed display name length is 255 UTF-16 code units.
    * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -508,7 +508,7 @@ public java.lang.String getDisplayName() { * *
    * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 100 UTF-16 code units.
+   * The max allowed display name length is 255 UTF-16 code units.
    * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -1822,7 +1822,7 @@ public Builder setDefaultUriBytes(com.google.protobuf.ByteString value) { * *
      * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 100 UTF-16 code units.
+     * The max allowed display name length is 255 UTF-16 code units.
      * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -1845,7 +1845,7 @@ public java.lang.String getDisplayName() { * *
      * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 100 UTF-16 code units.
+     * The max allowed display name length is 255 UTF-16 code units.
      * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -1868,7 +1868,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
      * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 100 UTF-16 code units.
+     * The max allowed display name length is 255 UTF-16 code units.
      * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -1890,7 +1890,7 @@ public Builder setDisplayName(java.lang.String value) { * *
      * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 100 UTF-16 code units.
+     * The max allowed display name length is 255 UTF-16 code units.
      * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -1908,7 +1908,7 @@ public Builder clearDisplayName() { * *
      * Required. Human-readable display name for the Data Stream.
-     * The max allowed display name length is 100 UTF-16 code units.
+     * The max allowed display name length is 255 UTF-16 code units.
      * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; 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 index 51007ff4..921c4fc2 100644 --- 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 @@ -214,7 +214,7 @@ public interface WebDataStreamOrBuilder * *
    * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 100 UTF-16 code units.
+   * The max allowed display name length is 255 UTF-16 code units.
    * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; @@ -227,7 +227,7 @@ public interface WebDataStreamOrBuilder * *
    * Required. Human-readable display name for the Data Stream.
-   * The max allowed display name length is 100 UTF-16 code units.
+   * The max allowed display name length is 255 UTF-16 code units.
    * 
* * string display_name = 7 [(.google.api.field_behavior) = REQUIRED]; 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 4f2beb4b..ff367e3f 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 @@ -405,27 +405,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent"; } - // Returns the singleton enhanced measurement settings for this web stream. - // Note that the stream must enable enhanced measurement for these settings to - // take effect. - rpc GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates the singleton enhanced measurement settings for this web stream. - // Note that the stream must enable enhanced measurement for these settings to - // take effect. - rpc UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { - option (google.api.http) = { - patch: "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - body: "enhanced_measurement_settings" - }; - option (google.api.method_signature) = "enhanced_measurement_settings,update_mask"; - } - // Creates a FirebaseLink. // // Properties can have at most one FirebaseLink. @@ -583,6 +562,17 @@ service AnalyticsAdminService { option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; } + // Acknowledges the terms of user data collection for the specified property. + // + // This acknowledgement must be completed (either in the Google Analytics UI + // or via this API) before MeasurementProtocolSecret resources may be created. + rpc AcknowledgeUserDataCollection(AcknowledgeUserDataCollectionRequest) returns (AcknowledgeUserDataCollectionResponse) { + option (google.api.http) = { + post: "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection" + body: "*" + }; + } + // Searches through all changes to an account or its children given the // specified set of filters. rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { @@ -848,6 +838,48 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "data_retention_settings,update_mask"; } + + // Creates a DataStream. + rpc CreateDataStream(CreateDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/dataStreams" + body: "data_stream" + }; + option (google.api.method_signature) = "parent,data_stream"; + } + + // Deletes a DataStream on a property. + rpc DeleteDataStream(DeleteDataStreamRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/dataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a DataStream on a property. + rpc UpdateDataStream(UpdateDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + patch: "/v1alpha/{data_stream.name=properties/*/dataStreams/*}" + body: "data_stream" + }; + option (google.api.method_signature) = "data_stream,update_mask"; + } + + // Lists DataStreams on a property. + rpc ListDataStreams(ListDataStreamsRequest) returns (ListDataStreamsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/dataStreams" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single DataStream. + rpc GetDataStream(GetDataStreamRequest) returns (DataStream) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/dataStreams/*}" + }; + option (google.api.method_signature) = "name"; + } } // Request message for GetAccount RPC. @@ -1479,32 +1511,6 @@ message ListAndroidAppDataStreamsResponse { string next_page_token = 2; } -// Request message for GetEnhancedMeasurementSettings RPC. -message GetEnhancedMeasurementSettingsRequest { - // Required. The name of the settings to lookup. - // Format: - // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" - } - ]; -} - -// Request message for UpdateEnhancedMeasurementSettings RPC. -message UpdateEnhancedMeasurementSettingsRequest { - // Required. The settings to update. - // The `name` field is used to identify the settings to be updated. - EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - // Request message for CreateFirebaseLink RPC message CreateFirebaseLinkRequest { // Required. Format: properties/{property_id} @@ -1689,6 +1695,32 @@ message ListAccountSummariesResponse { string next_page_token = 2; } +// Request message for AcknowledgeUserDataCollection RPC. +message AcknowledgeUserDataCollectionRequest { + // Required. The property for which to acknowledge user data collection. + string property = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Required. An acknowledgement that the caller of this method understands the terms + // of user data collection. + // + // This field must contain the exact value: + // "I acknowledge that I have the necessary privacy disclosures and rights + // from my end users for the collection and processing of their data, + // including the association of such data with the visitation information + // Google Analytics collects from my site and/or app property." + string acknowledgement = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for AcknowledgeUserDataCollection RPC. +message AcknowledgeUserDataCollectionResponse { + +} + // Request message for SearchChangeHistoryEvents RPC. message SearchChangeHistoryEventsRequest { // Required. The account resource for which to return change history resources. @@ -2314,3 +2346,85 @@ message UpdateDataRetentionSettingsRequest { // 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 CreateDataStream RPC. +message CreateDataStreamRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DataStream" + } + ]; + + // Required. The DataStream to create. + DataStream data_stream = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDataStream RPC. +message DeleteDataStreamRequest { + // Required. The name of the DataStream to delete. + // Example format: properties/1234/dataStreams/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataStream" + } + ]; +} + +// Request message for UpdateDataStream RPC. +message UpdateDataStreamRequest { + // The DataStream to update + DataStream data_stream = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for ListDataStreams RPC. +message ListDataStreamsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DataStream" + } + ]; + + // 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 `ListDataStreams` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDataStreams` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListDataStreams RPC. +message ListDataStreamsResponse { + // List of DataStreams. + repeated DataStream 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 GetDataStream RPC. +message GetDataStreamRequest { + // Required. The name of the DataStream to get. + // Example format: properties/1234/dataStreams/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataStream" + } + ]; +} 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 ec9d4c99..4820ec8c 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 @@ -196,6 +196,12 @@ enum ChangeHistoryResourceType { // DataRetentionSettings resource DATA_RETENTION_SETTINGS = 13; + + // DisplayVideo360AdvertiserLink resource + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + + // DisplayVideo360AdvertiserLinkProposal resource + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -364,6 +370,16 @@ message Property { // deleted. If not set, then this property is not currently in the trash can // and is not slated to be deleted. google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The resource name of the parent account + // Format: accounts/{account_id} + // Example: "accounts/123" + string account = 13 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; } // A resource message representing a Google Analytics Android app stream. @@ -465,10 +481,113 @@ message WebDataStream { // Required. Human-readable display name for the Data Stream. // - // The max allowed display name length is 100 UTF-16 code units. + // 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) = { + type: "analyticsadmin.googleapis.com/DataStream" + pattern: "properties/{property}/dataStreams/{data_stream}" + }; + + // Data specific to web streams. + message WebStreamData { + // Output only. Analytics "Measurement ID", without the "G-" prefix. + // Example: "G-1A2BCD345E" would just be "1A2BCD345E" + string measurement_id = 1 [(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 = 2 [(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 = 3 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Data specific to Android app streams. + message AndroidAppStreamData { + // 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 = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The package name for the app being measured. + // Example: "com.example.myandroidapp" + string package_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Data specific to iOS app streams. + message IosAppStreamData { + // 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 = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The Apple App Store Bundle ID for the app + // Example: "com.example.myiosapp" + string bundle_id = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + } + + // The type of the data stream. + enum DataStreamType { + // Type unknown or not specified. + DATA_STREAM_TYPE_UNSPECIFIED = 0; + + // Web data stream. + WEB_DATA_STREAM = 1; + + // Android app data stream. + ANDROID_APP_DATA_STREAM = 2; + + // iOS app data stream. + IOS_APP_DATA_STREAM = 3; + } + + // Data for specific data stream types. The message that will be + // set corresponds to the type of this stream. + oneof stream_data { + // Data specific to web streams. Must be populated if type is + // WEB_DATA_STREAM. + WebStreamData web_stream_data = 6; + + // Data specific to Android app streams. Must be populated if type is + // ANDROID_APP_DATA_STREAM. + AndroidAppStreamData android_app_stream_data = 7; + + // Data specific to iOS app streams. Must be populated if type is + // IOS_APP_DATA_STREAM. + IosAppStreamData ios_app_stream_data = 8; + } + + // Output only. Resource name of this Data Stream. + // Format: properties/{property_id}/dataStreams/{stream_id} + // Example: "properties/1000/dataStreams/2000" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. The type of this DataStream resource. + DataStreamType type = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Human-readable display name for the Data Stream. + // + // Required for web data streams. + // + // The max allowed display name length is 255 UTF-16 code units. + string display_name = 3; + + // 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]; +} + // A resource message representing a user's permissions on an Account or // Property resource. message UserLink { @@ -487,10 +606,12 @@ message UserLink { // Roles directly assigned to this user for this account or property. // // Valid values: - // predefinedRoles/read - // predefinedRoles/collaborate - // predefinedRoles/edit - // predefinedRoles/manage-users + // predefinedRoles/viewer + // predefinedRoles/analyst + // predefinedRoles/editor + // predefinedRoles/admin + // predefinedRoles/no-cost-data + // predefinedRoles/no-revenue-data // // Excludes roles that are inherited from a higher-level entity, group, // or organization admin role. @@ -510,7 +631,7 @@ message AuditUserLink { // Roles directly assigned to this user for this entity. // - // Format: predefinedRoles/read + // Format: predefinedRoles/viewer // // Excludes roles that are inherited from an account (if this is for a // property), group, or organization admin role. @@ -519,72 +640,11 @@ message AuditUserLink { // Union of all permissions a user has at this account or property (includes // direct permissions, group-inherited permissions, etc.). // - // Format: predefinedRoles/read + // Format: predefinedRoles/viewer repeated string effective_roles = 4; } -// Singleton resource under a WebDataStream, configuring measurement of -// additional site interactions and content. -message EnhancedMeasurementSettings { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/EnhancedMeasurementSettings" - pattern: "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" - }; - - // Output only. Resource name of this Data Stream. - // Format: - // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Indicates whether Enhanced Measurement Settings will be used to - // automatically measure interactions and content on this web stream. - // - // Changing this value does not affect the settings themselves, but determines - // whether they are respected. - bool stream_enabled = 2; - - // Output only. If enabled, capture a page view event each time a page loads or the - // website changes the browser history state. - bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // If enabled, capture scroll events each time a visitor gets to the bottom of - // a page. - bool scrolls_enabled = 4; - - // If enabled, capture an outbound click event each time a visitor clicks a - // link that leads them away from your domain. - bool outbound_clicks_enabled = 5; - - // If enabled, capture a view search results event each time a visitor - // performs a search on your site (based on a query parameter). - bool site_search_enabled = 7; - - // If enabled, capture video play, progress, and complete events as visitors - // view embedded videos on your site. - bool video_engagement_enabled = 9; - - // If enabled, capture a file download event each time a link is clicked with - // a common document, compressed file, application, video, or audio extension. - bool file_downloads_enabled = 10; - - // Output only. If enabled, capture a page view event each time a page loads. - bool page_loads_enabled = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // If enabled, capture a page view event each time the website changes the - // browser history state. - bool page_changes_enabled = 13; - - // Required. URL query parameters to interpret as site search parameters. - // Max length is 1024 characters. Must not be empty. - string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; - - // Additional URL query parameters. - // Max length is 1024 characters. - string uri_query_parameter = 17; -} - -// A link between an GA4 property and a Firebase project. +// A link between a GA4 property and a Firebase project. message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" @@ -624,7 +684,7 @@ message GlobalSiteTag { string snippet = 2 [(google.api.field_behavior) = IMMUTABLE]; } -// A link between an GA4 property and a Google Ads account. +// A link between a GA4 property and a Google Ads account. message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" @@ -719,7 +779,7 @@ message AccountSummary { repeated PropertySummary property_summaries = 4; } -// A virtual resource representing metadata for an GA4 property. +// A virtual resource representing metadata for a GA4 property. message PropertySummary { // Resource name of property referred to by this property summary // Format: properties/{property_id} @@ -728,7 +788,7 @@ message PropertySummary { type: "analyticsadmin.googleapis.com/Property" }]; - // Display name for the property referred to in this account summary. + // Display name for the property referred to in this property summary. string display_name = 2; } @@ -882,14 +942,14 @@ message DisplayVideo360AdvertiserLink { google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Enables the import of cost data from Display & Video 360 into the GA4 - // property. This can only be enabled if campaign_data_import_enabled is + // property. This can only be enabled if campaign_data_sharing_enabled is // enabled. After link creation, this can only be updated from the Display & // Video 360 product. // If this field is not set on create, it will be defaulted to true. google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; } -// A proposal for a link between an GA4 property and a Display & Video 360 +// A proposal for a link between a GA4 property and a Display & Video 360 // advertiser. // // A proposal is converted to a DisplayVideo360AdvertiserLink once approved. @@ -935,7 +995,7 @@ message DisplayVideo360AdvertiserLinkProposal { google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(google.api.field_behavior) = IMMUTABLE]; // Immutable. Enables the import of cost data from Display & Video 360. - // This can only be enabled if campaign_data_import_enabled is enabled. + // This can only be enabled if campaign_data_sharing_enabled is enabled. // If this field is not set on create, it will be defaulted to true. google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(google.api.field_behavior) = IMMUTABLE]; }