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 @@
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- */ - public final UnaryCallablefuture = - * analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request); - * // Do something. - * EnhancedMeasurementSettings response = future.get(); - * } - * }
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- */ - public final UnaryCallablefuture = - * analyticsAdminServiceClient - * .updateEnhancedMeasurementSettingsCallable() - * .futureCall(request); - * // Do something. - * EnhancedMeasurementSettings response = future.get(); - * } - * }
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+ */ + 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. + * + *future = + * analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request); + * // Do something. + * AcknowledgeUserDataCollectionResponse response = future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * analyticsAdminServiceClient.createDataStreamCallable().futureCall(request); + * // Do something. + * DataStream response = future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request); + * // Do something. + * DataStream response = future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request); + * // Do something. + * for (DataStream element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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
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+ */ + public final UnaryCallablefuture = + * analyticsAdminServiceClient.getDataStreamCallable().futureCall(request); + * // Do something. + * DataStream response = future.get(); + * } + * }
- * 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
- * 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
+ * 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
+ * Deletes a DataStream on a property. + *+ */ + public void deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver
+ * Updates a DataStream on a property. + *+ */ + public void updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver
+ * Lists DataStreams on a property. + *+ */ + public void listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver
+ * Lookup for a single DataStream. + *+ */ + public void getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request, + io.grpc.stub.StreamObserver
- * 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
- * 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
+ * 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
+ * Deletes a DataStream on a property. + *+ */ + public void deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver
+ * Updates a DataStream on a property. + *+ */ + public void updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver
+ * Lists DataStreams on a property. + *+ */ + public void listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver
+ * Lookup for a single DataStream. + *+ */ + public void getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request, + io.grpc.stub.StreamObserver
- * 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
+ * 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
+ * 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
+ * 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+ * 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
* 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
* 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* 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
+ * 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+ * 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+ * 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
+ * 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+ * 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
+ * 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