diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 1dc673006f7f..1ad7cf69478d 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -8777,6 +8777,99 @@ public final AttributionSettings updateAttributionSettings( return stub.updateAttributionSettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized report of data access records. The report provides records of each time a + * user reads Google Analytics reporting data. Access records are retained for up to 2 years. + * + *

Data Access Reports can be requested for a property. The property must be in Google + * Analytics 360. This method is only available to Administrators. + * + *

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and + * other products like Firebase & Admob that can retrieve data from Google Analytics through a + * linkage. These records don't include property configuration changes like adding a stream or + * changing a property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   RunAccessReportRequest request =
+   *       RunAccessReportRequest.newBuilder()
+   *           .setEntity("entity-1298275357")
+   *           .addAllDimensions(new ArrayList())
+   *           .addAllMetrics(new ArrayList())
+   *           .addAllDateRanges(new ArrayList())
+   *           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
+   *           .setMetricFilter(AccessFilterExpression.newBuilder().build())
+   *           .setOffset(-1019779949)
+   *           .setLimit(102976443)
+   *           .setTimeZone("timeZone-2077180903")
+   *           .addAllOrderBys(new ArrayList())
+   *           .setReturnEntityQuota(true)
+   *           .build();
+   *   RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(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 RunAccessReportResponse runAccessReport(RunAccessReportRequest request) { + return runAccessReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized report of data access records. The report provides records of each time a + * user reads Google Analytics reporting data. Access records are retained for up to 2 years. + * + *

Data Access Reports can be requested for a property. The property must be in Google + * Analytics 360. This method is only available to Administrators. + * + *

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and + * other products like Firebase & Admob that can retrieve data from Google Analytics through a + * linkage. These records don't include property configuration changes like adding a stream or + * changing a property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   RunAccessReportRequest request =
+   *       RunAccessReportRequest.newBuilder()
+   *           .setEntity("entity-1298275357")
+   *           .addAllDimensions(new ArrayList())
+   *           .addAllMetrics(new ArrayList())
+   *           .addAllDateRanges(new ArrayList())
+   *           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
+   *           .setMetricFilter(AccessFilterExpression.newBuilder().build())
+   *           .setOffset(-1019779949)
+   *           .setLimit(102976443)
+   *           .setTimeZone("timeZone-2077180903")
+   *           .addAllOrderBys(new ArrayList())
+   *           .setReturnEntityQuota(true)
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.runAccessReportCallable().futureCall(request);
+   *   // Do something.
+   *   RunAccessReportResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + runAccessReportCallable() { + return stub.runAccessReportCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index f7f375757515..f9a87329e7cb 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -605,6 +605,12 @@ public UnaryCallSettings archiveAudienceSettings( .updateAttributionSettingsSettings(); } + /** Returns the object with the settings used for calls to runAccessReport. */ + public UnaryCallSettings + runAccessReportSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -1241,6 +1247,12 @@ public UnaryCallSettings.Builder archiveAudienceS return getStubSettingsBuilder().updateAttributionSettingsSettings(); } + /** Returns the builder for the settings used for calls to runAccessReport. */ + public UnaryCallSettings.Builder + runAccessReportSettings() { + return getStubSettingsBuilder().runAccessReportSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 9da3dc5c7953..54b51a3e8f31 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -202,6 +202,9 @@ "ProvisionAccountTicket": { "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] }, + "RunAccessReport": { + "methods": ["runAccessReport", "runAccessReportCallable"] + }, "SearchChangeHistoryEvents": { "methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 26d7e7ad5312..cfc427e4a702 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -135,6 +135,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.RunAccessReportRequest; +import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; @@ -633,6 +635,10 @@ public UnaryCallable archiveAudienceCallable() { throw new UnsupportedOperationException("Not implemented: updateAttributionSettingsCallable()"); } + public UnaryCallable runAccessReportCallable() { + throw new UnsupportedOperationException("Not implemented: runAccessReportCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index addcf64a2905..6d0dcbb71166 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -138,6 +138,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.RunAccessReportRequest; +import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; @@ -408,6 +410,8 @@ public class AnalyticsAdminServiceStubSettings getAttributionSettingsSettings; private final UnaryCallSettings updateAttributionSettingsSettings; + private final UnaryCallSettings + runAccessReportSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -1927,6 +1931,12 @@ public UnaryCallSettings archiveAudienceSettings( return updateAttributionSettingsSettings; } + /** Returns the object with the settings used for calls to runAccessReport. */ + public UnaryCallSettings + runAccessReportSettings() { + return runAccessReportSettings; + } + public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -2130,6 +2140,7 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx archiveAudienceSettings = settingsBuilder.archiveAudienceSettings().build(); getAttributionSettingsSettings = settingsBuilder.getAttributionSettingsSettings().build(); updateAttributionSettingsSettings = settingsBuilder.updateAttributionSettingsSettings().build(); + runAccessReportSettings = settingsBuilder.runAccessReportSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -2326,6 +2337,8 @@ public static class Builder getAttributionSettingsSettings; private final UnaryCallSettings.Builder updateAttributionSettingsSettings; + private final UnaryCallSettings.Builder + runAccessReportSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -2458,6 +2471,7 @@ protected Builder(ClientContext clientContext) { archiveAudienceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateAttributionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runAccessReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2538,7 +2552,8 @@ protected Builder(ClientContext clientContext) { updateAudienceSettings, archiveAudienceSettings, getAttributionSettingsSettings, - updateAttributionSettingsSettings); + updateAttributionSettingsSettings, + runAccessReportSettings); initDefaults(this); } @@ -2642,6 +2657,7 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { archiveAudienceSettings = settings.archiveAudienceSettings.toBuilder(); getAttributionSettingsSettings = settings.getAttributionSettingsSettings.toBuilder(); updateAttributionSettingsSettings = settings.updateAttributionSettingsSettings.toBuilder(); + runAccessReportSettings = settings.runAccessReportSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2722,7 +2738,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateAudienceSettings, archiveAudienceSettings, getAttributionSettingsSettings, - updateAttributionSettingsSettings); + updateAttributionSettingsSettings, + runAccessReportSettings); } private static Builder createDefault() { @@ -3142,6 +3159,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .runAccessReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -3680,6 +3702,12 @@ public UnaryCallSettings.Builder archiveAudienceS return updateAttributionSettingsSettings; } + /** Returns the builder for the settings used for calls to runAccessReport. */ + public UnaryCallSettings.Builder + runAccessReportSettings() { + return runAccessReportSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index bc08368b6adf..79439a361e1e 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -135,6 +135,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.RunAccessReportRequest; +import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; @@ -1124,6 +1126,18 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor + runAccessReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") + .setRequestMarshaller( + ProtoUtils.marshaller(RunAccessReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunAccessReportResponse.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -1296,6 +1310,8 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { getAttributionSettingsCallable; private final UnaryCallable updateAttributionSettingsCallable; + private final UnaryCallable + runAccessReportCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -2194,6 +2210,17 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings + runAccessReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runAccessReportMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("entity", String.valueOf(request.getEntity())); + return params.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -2599,6 +2626,9 @@ protected GrpcAnalyticsAdminServiceStub( updateAttributionSettingsTransportSettings, settings.updateAttributionSettingsSettings(), clientContext); + this.runAccessReportCallable = + callableFactory.createUnaryCallable( + runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -3145,6 +3175,11 @@ public UnaryCallable archiveAudienceCallable() { return updateAttributionSettingsCallable; } + @Override + public UnaryCallable runAccessReportCallable() { + return runAccessReportCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index c81316106a48..914ba30a1058 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -135,6 +135,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.RunAccessReportRequest; +import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; @@ -3117,6 +3119,43 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor + runAccessReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{entity=properties/*}:runAccessReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "entity", request.getEntity()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearEntity().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunAccessReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -3289,6 +3328,8 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub getAttributionSettingsCallable; private final UnaryCallable updateAttributionSettingsCallable; + private final UnaryCallable + runAccessReportCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -3831,6 +3872,12 @@ protected HttpJsonAnalyticsAdminServiceStub( .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + runAccessReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runAccessReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -4236,6 +4283,9 @@ protected HttpJsonAnalyticsAdminServiceStub( updateAttributionSettingsTransportSettings, settings.updateAttributionSettingsSettings(), clientContext); + this.runAccessReportCallable = + callableFactory.createUnaryCallable( + runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -4322,6 +4372,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(archiveAudienceMethodDescriptor); methodDescriptors.add(getAttributionSettingsMethodDescriptor); methodDescriptors.add(updateAttributionSettingsMethodDescriptor); + methodDescriptors.add(runAccessReportMethodDescriptor); return methodDescriptors; } @@ -4862,6 +4913,11 @@ public UnaryCallable archiveAudienceCallable() { return updateAttributionSettingsCallable; } + @Override + public UnaryCallable runAccessReportCallable() { + return runAccessReportCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index 631287a7d604..77e03a9d864c 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -6731,4 +6731,78 @@ public void updateAttributionSettingsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void runAccessReportTest() throws Exception { + RunAccessReportResponse expectedResponse = + RunAccessReportResponse.newBuilder() + .addAllDimensionHeaders(new ArrayList()) + .addAllMetricHeaders(new ArrayList()) + .addAllRows(new ArrayList()) + .setRowCount(1340416618) + .setQuota(AccessQuota.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("properties/propertie-4993") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .build(); + + RunAccessReportResponse actualResponse = client.runAccessReport(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runAccessReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("properties/propertie-4993") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .build(); + client.runAccessReport(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 430c2bde9714..bd8c352a6ce7 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -5877,4 +5877,82 @@ public void updateAttributionSettingsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void runAccessReportTest() throws Exception { + RunAccessReportResponse expectedResponse = + RunAccessReportResponse.newBuilder() + .addAllDimensionHeaders(new ArrayList()) + .addAllMetricHeaders(new ArrayList()) + .addAllRows(new ArrayList()) + .setRowCount(1340416618) + .setQuota(AccessQuota.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("entity-1298275357") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .build(); + + RunAccessReportResponse actualResponse = client.runAccessReport(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunAccessReportRequest actualRequest = ((RunAccessReportRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); + Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); + Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); + Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); + Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); + Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); + Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); + Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); + Assert.assertEquals(request.getTimeZone(), actualRequest.getTimeZone()); + Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); + Assert.assertEquals(request.getReturnEntityQuota(), actualRequest.getReturnEntityQuota()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runAccessReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("entity-1298275357") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .build(); + client.runAccessReport(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 03392905d73e..3fdbbe59f135 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -1722,4 +1722,25 @@ public void updateAttributionSettings( Exception.class.getName()))); } } + + @Override + public void runAccessReport( + RunAccessReportRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunAccessReportResponse) { + requests.add(request); + responseObserver.onNext(((RunAccessReportResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunAccessReport, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunAccessReportResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 4ad5a9391671..caf0adee298b 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -3946,6 +3946,54 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateAttributionSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + getRunAccessReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAccessReport", + requestType = com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, + responseType = com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + getRunAccessReportMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + getRunAccessReportMethod; + if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) + == null) { + AnalyticsAdminServiceGrpc.getRunAccessReportMethod = + getRunAccessReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAccessReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RunAccessReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RunAccessReportResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("RunAccessReport")) + .build(); + } + } + } + return getRunAccessReportMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -5215,6 +5263,31 @@ public void updateAttributionSettings( getUpdateAttributionSettingsMethod(), responseObserver); } + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public void runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAccessReportMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -5753,6 +5826,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, com.google.analytics.admin.v1alpha.AttributionSettings>( this, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) + .addMethod( + getRunAccessReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse>( + this, METHODID_RUN_ACCESS_REPORT))) .build(); } } @@ -7155,6 +7235,33 @@ public void updateAttributionSettings( request, responseObserver); } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public void runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -8284,6 +8391,29 @@ public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionS return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAccessReportMethod(), getCallOptions(), request); + } } /** @@ -9504,6 +9634,30 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + runAccessReport(com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -9584,6 +9738,7 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_ARCHIVE_AUDIENCE = 75; private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 76; private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 77; + private static final int METHODID_RUN_ACCESS_REPORT = 78; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10108,6 +10263,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_RUN_ACCESS_REPORT: + serviceImpl.runAccessReport( + (com.google.analytics.admin.v1alpha.RunAccessReportRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.RunAccessReportResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -10250,6 +10412,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getArchiveAudienceMethod()) .addMethod(getGetAttributionSettingsMethod()) .addMethod(getUpdateAttributionSettingsMethod()) + .addMethod(getRunAccessReportMethod()) .build(); } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java new file mode 100644 index 000000000000..cc3c9ce299a8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java @@ -0,0 +1,1015 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * To express that the result needs to be between two numbers (inclusive).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} + */ +public final class AccessBetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) + AccessBetweenFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessBetweenFilter.newBuilder() to construct. + private AccessBetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessBetweenFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessBetweenFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessBetweenFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.NumericValue.Builder subBuilder = null; + if (fromValue_ != null) { + subBuilder = fromValue_.toBuilder(); + } + fromValue_ = + input.readMessage( + com.google.analytics.admin.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fromValue_); + fromValue_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.NumericValue.Builder subBuilder = null; + if (toValue_ != null) { + subBuilder = toValue_.toBuilder(); + } + toValue_ = + input.readMessage( + com.google.analytics.admin.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(toValue_); + toValue_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.NumericValue fromValue_; + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + @java.lang.Override + public boolean hasFromValue() { + return fromValue_ != null; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { + return getFromValue(); + } + + public static final int TO_VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.NumericValue toValue_; + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + @java.lang.Override + public boolean hasToValue() { + return toValue_ != null; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getToValue() { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { + return getToValue(); + } + + 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 (fromValue_ != null) { + output.writeMessage(1, getFromValue()); + } + if (toValue_ != null) { + output.writeMessage(2, getToValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fromValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue()); + } + if (toValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); + } + 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.AccessBetweenFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessBetweenFilter other = + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) obj; + + if (hasFromValue() != other.hasFromValue()) return false; + if (hasFromValue()) { + if (!getFromValue().equals(other.getFromValue())) return false; + } + if (hasToValue() != other.hasToValue()) return false; + if (hasToValue()) { + if (!getToValue().equals(other.getToValue())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFromValue()) { + hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getFromValue().hashCode(); + } + if (hasToValue()) { + hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getToValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter 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.AccessBetweenFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter 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.AccessBetweenFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter 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.AccessBetweenFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter 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.AccessBetweenFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter 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.AccessBetweenFilter 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.AccessBetweenFilter 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.AccessBetweenFilter 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; + } + /** + * + * + *
+   * To express that the result needs to be between two numbers (inclusive).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fromValueBuilder_ == null) { + fromValue_ = null; + } else { + fromValue_ = null; + fromValueBuilder_ = null; + } + if (toValueBuilder_ == null) { + toValue_ = null; + } else { + toValue_ = null; + toValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter build() { + com.google.analytics.admin.v1alpha.AccessBetweenFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessBetweenFilter result = + new com.google.analytics.admin.v1alpha.AccessBetweenFilter(this); + if (fromValueBuilder_ == null) { + result.fromValue_ = fromValue_; + } else { + result.fromValue_ = fromValueBuilder_.build(); + } + if (toValueBuilder_ == null) { + result.toValue_ = toValue_; + } else { + result.toValue_ = toValueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessBetweenFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessBetweenFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) + return this; + if (other.hasFromValue()) { + mergeFromValue(other.getFromValue()); + } + if (other.hasToValue()) { + mergeToValue(other.getToValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessBetweenFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.NumericValue fromValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + fromValueBuilder_; + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + public boolean hasFromValue() { + return fromValueBuilder_ != null || fromValue_ != null; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { + if (fromValueBuilder_ == null) { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } else { + return fromValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder setFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (fromValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fromValue_ = value; + onChanged(); + } else { + fromValueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder setFromValue( + com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { + if (fromValueBuilder_ == null) { + fromValue_ = builderForValue.build(); + onChanged(); + } else { + fromValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder mergeFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (fromValueBuilder_ == null) { + if (fromValue_ != null) { + fromValue_ = + com.google.analytics.admin.v1alpha.NumericValue.newBuilder(fromValue_) + .mergeFrom(value) + .buildPartial(); + } else { + fromValue_ = value; + } + onChanged(); + } else { + fromValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder clearFromValue() { + if (fromValueBuilder_ == null) { + fromValue_ = null; + onChanged(); + } else { + fromValue_ = null; + fromValueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public com.google.analytics.admin.v1alpha.NumericValue.Builder getFromValueBuilder() { + + onChanged(); + return getFromValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { + if (fromValueBuilder_ != null) { + return fromValueBuilder_.getMessageOrBuilder(); + } else { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + getFromValueFieldBuilder() { + if (fromValueBuilder_ == null) { + fromValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( + getFromValue(), getParentForChildren(), isClean()); + fromValue_ = null; + } + return fromValueBuilder_; + } + + private com.google.analytics.admin.v1alpha.NumericValue toValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + toValueBuilder_; + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + public boolean hasToValue() { + return toValueBuilder_ != null || toValue_ != null; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + public com.google.analytics.admin.v1alpha.NumericValue getToValue() { + if (toValueBuilder_ == null) { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } else { + return toValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder setToValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (toValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toValue_ = value; + onChanged(); + } else { + toValueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder setToValue( + com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { + if (toValueBuilder_ == null) { + toValue_ = builderForValue.build(); + onChanged(); + } else { + toValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder mergeToValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (toValueBuilder_ == null) { + if (toValue_ != null) { + toValue_ = + com.google.analytics.admin.v1alpha.NumericValue.newBuilder(toValue_) + .mergeFrom(value) + .buildPartial(); + } else { + toValue_ = value; + } + onChanged(); + } else { + toValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder clearToValue() { + if (toValueBuilder_ == null) { + toValue_ = null; + onChanged(); + } else { + toValue_ = null; + toValueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValue.Builder getToValueBuilder() { + + onChanged(); + return getToValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { + if (toValueBuilder_ != null) { + return toValueBuilder_.getMessageOrBuilder(); + } else { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + getToValueFieldBuilder() { + if (toValueBuilder_ == null) { + toValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( + getToValue(), getParentForChildren(), isClean()); + toValue_ = null; + } + return toValueBuilder_; + } + + @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.AccessBetweenFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) + private static final com.google.analytics.admin.v1alpha.AccessBetweenFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBetweenFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessBetweenFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessBetweenFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java new file mode 100644 index 000000000000..ddda2f22055a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessBetweenFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessBetweenFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + boolean hasFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + com.google.analytics.admin.v1alpha.NumericValue getFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder(); + + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + boolean hasToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + com.google.analytics.admin.v1alpha.NumericValue getToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java new file mode 100644 index 000000000000..68a1e9e0be19 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java @@ -0,0 +1,859 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A contiguous range of days: startDate, startDate + 1, ..., endDate.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} + */ +public final class AccessDateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDateRange) + AccessDateRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDateRange.newBuilder() to construct. + private AccessDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDateRange() { + startDate_ = ""; + endDate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDateRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessDateRange( + 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(); + + startDate_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + endDate_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDateRange.class, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private volatile java.lang.Object startDate_; + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + @java.lang.Override + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + 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(); + startDate_ = s; + return s; + } + } + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_DATE_FIELD_NUMBER = 2; + private volatile java.lang.Object endDate_; + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + @java.lang.Override + public java.lang.String getEndDate() { + java.lang.Object ref = endDate_; + 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(); + endDate_ = s; + return s; + } + } + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndDateBytes() { + java.lang.Object ref = endDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endDate_ = 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(startDate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); + } + 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(startDate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); + } + 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.AccessDateRange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDateRange other = + (com.google.analytics.admin.v1alpha.AccessDateRange) obj; + + if (!getStartDate().equals(other.getStartDate())) return false; + if (!getEndDate().equals(other.getEndDate())) 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) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange 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.AccessDateRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange 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.AccessDateRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange 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.AccessDateRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange 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.AccessDateRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange 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.AccessDateRange 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.AccessDateRange 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.AccessDateRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A contiguous range of days: startDate, startDate + 1, ..., endDate.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDateRange) + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDateRange.class, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDateRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + startDate_ = ""; + + endDate_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange build() { + com.google.analytics.admin.v1alpha.AccessDateRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange buildPartial() { + com.google.analytics.admin.v1alpha.AccessDateRange result = + new com.google.analytics.admin.v1alpha.AccessDateRange(this); + result.startDate_ = startDate_; + result.endDate_ = endDate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDateRange) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDateRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDateRange other) { + if (other == com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()) + return this; + if (!other.getStartDate().isEmpty()) { + startDate_ = other.startDate_; + onChanged(); + } + if (!other.getEndDate().isEmpty()) { + endDate_ = other.endDate_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessDateRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessDateRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object startDate_ = ""; + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @param value The startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + startDate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartDate() { + + startDate_ = getDefaultInstance().getStartDate(); + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @param value The bytes for startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + startDate_ = value; + onChanged(); + return this; + } + + private java.lang.Object endDate_ = ""; + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + public java.lang.String getEndDate() { + java.lang.Object ref = endDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + public com.google.protobuf.ByteString getEndDateBytes() { + java.lang.Object ref = endDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @param value The endDate to set. + * @return This builder for chaining. + */ + public Builder setEndDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endDate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndDate() { + + endDate_ = getDefaultInstance().getEndDate(); + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @param value The bytes for endDate to set. + * @return This builder for chaining. + */ + public Builder setEndDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endDate_ = 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.AccessDateRange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDateRange) + private static final com.google.analytics.admin.v1alpha.AccessDateRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDateRange(); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDateRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessDateRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java new file mode 100644 index 000000000000..8c17a9debc87 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDateRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDateRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + java.lang.String getStartDate(); + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + com.google.protobuf.ByteString getStartDateBytes(); + + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + java.lang.String getEndDate(); + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + com.google.protobuf.ByteString getEndDateBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java new file mode 100644 index 000000000000..eb7bc36562ca --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java @@ -0,0 +1,663 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Dimensions are attributes of your data. For example, the dimension
+ * `userEmail` indicates the email of the user that accessed reporting data.
+ * Dimension values in report responses are strings.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} + */ +public final class AccessDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimension) + AccessDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimension.newBuilder() to construct. + private AccessDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimension() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessDimension( + 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(); + + dimensionName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimension.class, + com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object dimensionName_; + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + 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(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = 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(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + 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(dimensionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); + } + 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.AccessDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDimension other = + (com.google.analytics.admin.v1alpha.AccessDimension) obj; + + if (!getDimensionName().equals(other.getDimensionName())) 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) + DIMENSION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDimensionName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension 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.AccessDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension 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.AccessDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension 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.AccessDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension 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.AccessDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension 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.AccessDimension 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.AccessDimension 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.AccessDimension 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; + } + /** + * + * + *
+   * Dimensions are attributes of your data. For example, the dimension
+   * `userEmail` indicates the email of the user that accessed reporting data.
+   * Dimension values in report responses are strings.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimension) + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimension.class, + com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDimension.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + dimensionName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension build() { + com.google.analytics.admin.v1alpha.AccessDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension buildPartial() { + com.google.analytics.admin.v1alpha.AccessDimension result = + new com.google.analytics.admin.v1alpha.AccessDimension(this); + result.dimensionName_ = dimensionName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDimension) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimension other) { + if (other == com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()) + return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessDimension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessDimension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + + dimensionName_ = getDefaultInstance().getDimensionName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dimensionName_ = 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.AccessDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimension) + private static final com.google.analytics.admin.v1alpha.AccessDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimension(); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessDimension(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java new file mode 100644 index 000000000000..bfbcebff7a8c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java @@ -0,0 +1,645 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Describes a dimension column in the report. Dimensions requested in a report
+ * produce column entries within rows and DimensionHeaders. However, dimensions
+ * used exclusively within filters or expressions do not produce columns in a
+ * report; correspondingly, those dimensions do not produce headers.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} + */ +public final class AccessDimensionHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) + AccessDimensionHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimensionHeader.newBuilder() to construct. + private AccessDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimensionHeader() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimensionHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessDimensionHeader( + 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(); + + dimensionName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object dimensionName_; + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + 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(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = 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(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + 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(dimensionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); + } + 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.AccessDimensionHeader)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDimensionHeader other = + (com.google.analytics.admin.v1alpha.AccessDimensionHeader) obj; + + if (!getDimensionName().equals(other.getDimensionName())) 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) + DIMENSION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDimensionName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader 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.AccessDimensionHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader 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.AccessDimensionHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader 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.AccessDimensionHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader 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.AccessDimensionHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader 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.AccessDimensionHeader 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.AccessDimensionHeader 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.AccessDimensionHeader 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; + } + /** + * + * + *
+   * Describes a dimension column in the report. Dimensions requested in a report
+   * produce column entries within rows and DimensionHeaders. However, dimensions
+   * used exclusively within filters or expressions do not produce columns in a
+   * report; correspondingly, those dimensions do not produce headers.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDimensionHeader.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + dimensionName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader build() { + com.google.analytics.admin.v1alpha.AccessDimensionHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader buildPartial() { + com.google.analytics.admin.v1alpha.AccessDimensionHeader result = + new com.google.analytics.admin.v1alpha.AccessDimensionHeader(this); + result.dimensionName_ = dimensionName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionHeader) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionHeader other) { + if (other == com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()) + return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessDimensionHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessDimensionHeader) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + + dimensionName_ = getDefaultInstance().getDimensionName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dimensionName_ = 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.AccessDimensionHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionHeader) + private static final com.google.analytics.admin.v1alpha.AccessDimensionHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionHeader(); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimensionHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessDimensionHeader(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java new file mode 100644 index 000000000000..fb114cf2fc6e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDimensionHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimensionHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java new file mode 100644 index 000000000000..2b8d83cdcf3b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java new file mode 100644 index 000000000000..568b3244f43d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java @@ -0,0 +1,646 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The value of a dimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} + */ +public final class AccessDimensionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionValue) + AccessDimensionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimensionValue.newBuilder() to construct. + private AccessDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimensionValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimensionValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessDimensionValue( + 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(); + + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionValue.class, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = 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(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + 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(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + 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.AccessDimensionValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDimensionValue other = + (com.google.analytics.admin.v1alpha.AccessDimensionValue) obj; + + if (!getValue().equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue 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.AccessDimensionValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue 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.AccessDimensionValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue 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.AccessDimensionValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue 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.AccessDimensionValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue 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.AccessDimensionValue 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.AccessDimensionValue 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.AccessDimensionValue 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; + } + /** + * + * + *
+   * The value of a dimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimensionValue) + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionValue.class, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDimensionValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue build() { + com.google.analytics.admin.v1alpha.AccessDimensionValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue buildPartial() { + com.google.analytics.admin.v1alpha.AccessDimensionValue result = + new com.google.analytics.admin.v1alpha.AccessDimensionValue(this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionValue) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionValue other) { + if (other == com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessDimensionValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessDimensionValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = 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.AccessDimensionValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionValue) + private static final com.google.analytics.admin.v1alpha.AccessDimensionValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionValue(); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimensionValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessDimensionValue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java new file mode 100644 index 000000000000..58c1e1ed8ea5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java @@ -0,0 +1,52 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDimensionValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimensionValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java new file mode 100644 index 000000000000..e550792095b5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java @@ -0,0 +1,1968 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * An expression to filter dimension or metric values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} + */ +public final class AccessFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilter) + AccessFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilter.newBuilder() to construct. + private AccessFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessFilter( + 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(); + + fieldName_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessStringFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessInListFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessNumericFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_) + .toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilter.class, + com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder + getNumericFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fieldName_; + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + 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(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = 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(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); + } + 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.AccessFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessFilter other = + (com.google.analytics.admin.v1alpha.AccessFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 4: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 5: + if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getBetweenFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter 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.AccessFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter 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.AccessFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter 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.AccessFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter 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.AccessFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter 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.AccessFilter 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.AccessFilter 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.AccessFilter 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; + } + /** + * + * + *
+   * An expression to filter dimension or metric values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilter) + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilter.class, + com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + fieldName_ = ""; + + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter build() { + com.google.analytics.admin.v1alpha.AccessFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessFilter result = + new com.google.analytics.admin.v1alpha.AccessFilter(this); + if (oneFilterCase_ == 2) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 3) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 4) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + if (betweenFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + result.fieldName_ = fieldName_; + result.oneFilterCase_ = oneFilterCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) + return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + onChanged(); + } + switch (other.getOneFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case NUMERIC_FILTER: + { + mergeNumericFilter(other.getNumericFilter()); + break; + } + case BETWEEN_FILTER: + { + mergeBetweenFilter(other.getBetweenFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.AccessFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessStringFilter, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder setStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public com.google.analytics.admin.v1alpha.AccessStringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessStringFilter, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessStringFilter, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessInListFilter, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder setInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public com.google.analytics.admin.v1alpha.AccessInListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder + getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessInListFilter, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessInListFilter, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessNumericFilter, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter(com.google.analytics.admin.v1alpha.AccessNumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder mergeNumericFilter( + com.google.analytics.admin.v1alpha.AccessNumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder + getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder + getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessNumericFilter, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessNumericFilter, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBetweenFilter, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter(com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder mergeBetweenFilter( + com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder + getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBetweenFilter, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBetweenFilter, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + ; + return betweenFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fieldName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + + fieldName_ = getDefaultInstance().getFieldName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fieldName_ = 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.AccessFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilter) + private static final com.google.analytics.admin.v1alpha.AccessFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java new file mode 100644 index 000000000000..37b95366b5cf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java @@ -0,0 +1,1818 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Expresses dimension or metric filters. The fields in the same expression need
+ * to be either all dimensions or all metrics.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} + */ +public final class AccessFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpression) + AccessFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilterExpression.newBuilder() to construct. + private AccessFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessFilterExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder subBuilder = + null; + if (oneExpressionCase_ == 1) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 1; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder subBuilder = + null; + if (oneExpressionCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder subBuilder = null; + if (oneExpressionCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AccessFilter.Builder subBuilder = null; + if (oneExpressionCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_).toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 4; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpression.class, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); + } + + private int oneExpressionCase_ = 0; + private java.lang.Object oneExpression_; + + public enum OneExpressionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + ACCESS_FILTER(4), + ONEEXPRESSION_NOT_SET(0); + private final int value; + + private OneExpressionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static OneExpressionCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return ACCESS_FILTER; + case 0: + return ONEEXPRESSION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneExpressionCase getOneExpressionCase() { + return OneExpressionCase.forNumber(oneExpressionCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return oneExpressionCase_ == 1; + } + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return oneExpressionCase_ == 2; + } + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return oneExpressionCase_ == 3; + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + + public static final int ACCESS_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + @java.lang.Override + public boolean hasAccessFilter() { + return oneExpressionCase_ == 4; + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneExpressionCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); + } + if (oneExpressionCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneExpressionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); + } + if (oneExpressionCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); + } + 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.AccessFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessFilterExpression other = + (com.google.analytics.admin.v1alpha.AccessFilterExpression) obj; + + if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false; + switch (oneExpressionCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 3: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 4: + if (!getAccessFilter().equals(other.getAccessFilter())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (oneExpressionCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 3: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 4: + hash = (37 * hash) + ACCESS_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAccessFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression 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.AccessFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression 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.AccessFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression 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.AccessFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression 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.AccessFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression 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.AccessFilterExpression 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.AccessFilterExpression 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.AccessFilterExpression 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; + } + /** + * + * + *
+   * Expresses dimension or metric filters. The fields in the same expression need
+   * to be either all dimensions or all metrics.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilterExpression) + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpression.class, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + oneExpressionCase_ = 0; + oneExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression build() { + com.google.analytics.admin.v1alpha.AccessFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.AccessFilterExpression result = + new com.google.analytics.admin.v1alpha.AccessFilterExpression(this); + if (oneExpressionCase_ == 1) { + if (andGroupBuilder_ == null) { + result.oneExpression_ = oneExpression_; + } else { + result.oneExpression_ = andGroupBuilder_.build(); + } + } + if (oneExpressionCase_ == 2) { + if (orGroupBuilder_ == null) { + result.oneExpression_ = oneExpression_; + } else { + result.oneExpression_ = orGroupBuilder_.build(); + } + } + if (oneExpressionCase_ == 3) { + if (notExpressionBuilder_ == null) { + result.oneExpression_ = oneExpression_; + } else { + result.oneExpression_ = notExpressionBuilder_.build(); + } + } + if (oneExpressionCase_ == 4) { + if (accessFilterBuilder_ == null) { + result.oneExpression_ = oneExpression_; + } else { + result.oneExpression_ = accessFilterBuilder_.build(); + } + } + result.oneExpressionCase_ = oneExpressionCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpression) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpression other) { + if (other == com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) + return this; + switch (other.getOneExpressionCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case ACCESS_FILTER: + { + mergeAccessFilter(other.getAccessFilter()); + break; + } + case ONEEXPRESSION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessFilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessFilterExpression) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneExpressionCase_ = 0; + private java.lang.Object oneExpression_; + + public OneExpressionCase getOneExpressionCase() { + return OneExpressionCase.forNumber(oneExpressionCase_); + } + + public Builder clearOneExpression() { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return oneExpressionCase_ == 1; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilterExpressionList + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 1) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((oneExpressionCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(oneExpressionCase_ == 1)) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return oneExpressionCase_ == 2; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder setOrGroup(com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilterExpressionList + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 2) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((oneExpressionCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(oneExpressionCase_ == 2)) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return oneExpressionCase_ == 3; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 3) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((oneExpressionCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(oneExpressionCase_ == 3)) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilter, + com.google.analytics.admin.v1alpha.AccessFilter.Builder, + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder> + accessFilterBuilder_; + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + @java.lang.Override + public boolean hasAccessFilter() { + return oneExpressionCase_ == 4; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 4) { + return accessFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder setAccessFilter(com.google.analytics.admin.v1alpha.AccessFilter value) { + if (accessFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + accessFilterBuilder_.setMessage(value); + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder setAccessFilter( + com.google.analytics.admin.v1alpha.AccessFilter.Builder builderForValue) { + if (accessFilterBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + accessFilterBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder mergeAccessFilter(com.google.analytics.admin.v1alpha.AccessFilter value) { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 4) { + accessFilterBuilder_.mergeFrom(value); + } else { + accessFilterBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder clearAccessFilter() { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 4) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + accessFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public com.google.analytics.admin.v1alpha.AccessFilter.Builder getAccessFilterBuilder() { + return getAccessFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { + if ((oneExpressionCase_ == 4) && (accessFilterBuilder_ != null)) { + return accessFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilter, + com.google.analytics.admin.v1alpha.AccessFilter.Builder, + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder> + getAccessFilterFieldBuilder() { + if (accessFilterBuilder_ == null) { + if (!(oneExpressionCase_ == 4)) { + oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + accessFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilter, + com.google.analytics.admin.v1alpha.AccessFilter.Builder, + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 4; + onChanged(); + ; + return accessFilterBuilder_; + } + + @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.AccessFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilterExpression) + private static final com.google.analytics.admin.v1alpha.AccessFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessFilterExpression(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java new file mode 100644 index 000000000000..d25956ffda5f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java @@ -0,0 +1,979 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} + */ +public final class AccessFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) + AccessFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilterExpressionList.newBuilder() to construct. + private AccessFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessFilterExpressionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AccessFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List expressions_; + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( + int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.AccessFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessFilterExpressionList other = + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList 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.AccessFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList 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.AccessFilterExpressionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList 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.AccessFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList 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.AccessFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList 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.AccessFilterExpressionList 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.AccessFilterExpressionList 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.AccessFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpressionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + expressionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList build() { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList result = + new com.google.analytics.admin.v1alpha.AccessFilterExpressionList(this); + int from_bitField0_ = bitField0_; + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpressionList) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance()) + return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List expressions_ = + java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList( + expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addAllExpressions( + java.lang.Iterable + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder getExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder addExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + expressions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + @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.AccessFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.AccessFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessFilterExpressionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..6b63116453ed --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java @@ -0,0 +1,78 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + java.util.List getExpressionsList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + int getExpressionsCount(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + java.util.List + getExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java new file mode 100644 index 000000000000..a0186112ff7c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java @@ -0,0 +1,171 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + boolean hasAccessFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder(); + + public com.google.analytics.admin.v1alpha.AccessFilterExpression.OneExpressionCase + getOneExpressionCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java new file mode 100644 index 000000000000..476b29c22501 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java @@ -0,0 +1,192 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + public com.google.analytics.admin.v1alpha.AccessFilter.OneFilterCase getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java new file mode 100644 index 000000000000..6b9d03a6eb42 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java @@ -0,0 +1,830 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The result needs to be in a list of string values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} + */ +public final class AccessInListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessInListFilter) + AccessInListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessInListFilter.newBuilder() to construct. + private AccessInListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessInListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessInListFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessInListFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + case 16: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessInListFilter.class, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; + private boolean caseSensitive_; + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (caseSensitive_ != false) { + output.writeBool(2, caseSensitive_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); + } + 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.AccessInListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessInListFilter other = + (com.google.analytics.admin.v1alpha.AccessInListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter 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.AccessInListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter 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.AccessInListFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter 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.AccessInListFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter 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.AccessInListFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter 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.AccessInListFilter 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.AccessInListFilter 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.AccessInListFilter 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; + } + /** + * + * + *
+   * The result needs to be in a list of string values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessInListFilter) + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessInListFilter.class, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + caseSensitive_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter build() { + com.google.analytics.admin.v1alpha.AccessInListFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessInListFilter result = + new com.google.analytics.admin.v1alpha.AccessInListFilter(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + result.caseSensitive_ = caseSensitive_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessInListFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessInListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessInListFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessInListFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessInListFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + + caseSensitive_ = false; + 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.AccessInListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessInListFilter) + private static final com.google.analytics.admin.v1alpha.AccessInListFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessInListFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessInListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessInListFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java new file mode 100644 index 000000000000..5d6d298f8ad6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java @@ -0,0 +1,89 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessInListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessInListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java new file mode 100644 index 000000000000..cf9bd13f85fc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java @@ -0,0 +1,660 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The quantitative measurements of a report. For example, the metric
+ * `accessCount` is the total number of data access records.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} + */ +public final class AccessMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetric) + AccessMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetric.newBuilder() to construct. + private AccessMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetric() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessMetric( + 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(); + + metricName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetric.class, + com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object metricName_; + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = 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(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.AccessMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessMetric other = + (com.google.analytics.admin.v1alpha.AccessMetric) obj; + + if (!getMetricName().equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric 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.AccessMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric 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.AccessMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric 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.AccessMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric 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.AccessMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric 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.AccessMetric 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.AccessMetric 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.AccessMetric 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; + } + /** + * + * + *
+   * The quantitative measurements of a report. For example, the metric
+   * `accessCount` is the total number of data access records.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetric) + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetric.class, + com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessMetric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric build() { + com.google.analytics.admin.v1alpha.AccessMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric buildPartial() { + com.google.analytics.admin.v1alpha.AccessMetric result = + new com.google.analytics.admin.v1alpha.AccessMetric(this); + result.metricName_ = metricName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessMetric) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetric other) { + if (other == com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessMetric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.AccessMetric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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.AccessMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetric) + private static final com.google.analytics.admin.v1alpha.AccessMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetric(); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessMetric(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java new file mode 100644 index 000000000000..c1289dc1f20a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java @@ -0,0 +1,645 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Describes a metric column in the report. Visible metrics requested in a
+ * report produce column entries within rows and MetricHeaders. However,
+ * metrics used exclusively within filters or expressions do not produce columns
+ * in a report; correspondingly, those metrics do not produce headers.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} + */ +public final class AccessMetricHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricHeader) + AccessMetricHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetricHeader.newBuilder() to construct. + private AccessMetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetricHeader() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetricHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessMetricHeader( + 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(); + + metricName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricHeader.class, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object metricName_; + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = 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(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.AccessMetricHeader)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessMetricHeader other = + (com.google.analytics.admin.v1alpha.AccessMetricHeader) obj; + + if (!getMetricName().equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader 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.AccessMetricHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader 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.AccessMetricHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader 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.AccessMetricHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader 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.AccessMetricHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader 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.AccessMetricHeader 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.AccessMetricHeader 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.AccessMetricHeader 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; + } + /** + * + * + *
+   * Describes a metric column in the report. Visible metrics requested in a
+   * report produce column entries within rows and MetricHeaders. However,
+   * metrics used exclusively within filters or expressions do not produce columns
+   * in a report; correspondingly, those metrics do not produce headers.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetricHeader) + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricHeader.class, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessMetricHeader.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader build() { + com.google.analytics.admin.v1alpha.AccessMetricHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader buildPartial() { + com.google.analytics.admin.v1alpha.AccessMetricHeader result = + new com.google.analytics.admin.v1alpha.AccessMetricHeader(this); + result.metricName_ = metricName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricHeader) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricHeader other) { + if (other == com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessMetricHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessMetricHeader) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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.AccessMetricHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricHeader) + private static final com.google.analytics.admin.v1alpha.AccessMetricHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricHeader(); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetricHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessMetricHeader(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java new file mode 100644 index 000000000000..9446c1b7351d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessMetricHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetricHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java new file mode 100644 index 000000000000..1bca388890ed --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java new file mode 100644 index 000000000000..654d246e5471 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java @@ -0,0 +1,638 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The value of a metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} + */ +public final class AccessMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricValue) + AccessMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetricValue.newBuilder() to construct. + private AccessMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetricValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetricValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessMetricValue( + 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(); + + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricValue.class, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + private volatile java.lang.Object value_; + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = 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(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + 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(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + 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.AccessMetricValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessMetricValue other = + (com.google.analytics.admin.v1alpha.AccessMetricValue) obj; + + if (!getValue().equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue 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.AccessMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue 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.AccessMetricValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue 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.AccessMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue 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.AccessMetricValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue 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.AccessMetricValue 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.AccessMetricValue 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.AccessMetricValue 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; + } + /** + * + * + *
+   * The value of a metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetricValue) + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricValue.class, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessMetricValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + value_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue build() { + com.google.analytics.admin.v1alpha.AccessMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue buildPartial() { + com.google.analytics.admin.v1alpha.AccessMetricValue result = + new com.google.analytics.admin.v1alpha.AccessMetricValue(this); + result.value_ = value_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricValue) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricValue other) { + if (other == com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessMetricValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessMetricValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = 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.AccessMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricValue) + private static final com.google.analytics.admin.v1alpha.AccessMetricValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricValue(); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetricValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessMetricValue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java new file mode 100644 index 000000000000..5be521730eb3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java new file mode 100644 index 000000000000..e14acf0b2c24 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java @@ -0,0 +1,1122 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Filters for numeric or date values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} + */ +public final class AccessNumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessNumericFilter) + AccessNumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessNumericFilter.newBuilder() to construct. + private AccessNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessNumericFilter() { + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessNumericFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessNumericFilter( + 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 8: + { + int rawValue = input.readEnum(); + + operation_ = rawValue; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.NumericValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = + input.readMessage( + com.google.analytics.admin.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessNumericFilter.class, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); + } + + /** + * + * + *
+   * The operation applied to a numeric filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AccessNumericFilter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + OPERATION_UNSPECIFIED(0), + /** + * + * + *
+     * Equal
+     * 
+ * + * EQUAL = 1; + */ + EQUAL(1), + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 2; + */ + LESS_THAN(2), + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + LESS_THAN_OR_EQUAL(3), + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 4; + */ + GREATER_THAN(4), + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + GREATER_THAN_OR_EQUAL(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + public static final int OPERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Equal
+     * 
+ * + * EQUAL = 1; + */ + public static final int EQUAL_VALUE = 1; + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 2; + */ + public static final int LESS_THAN_VALUE = 2; + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + public static final int LESS_THAN_OR_EQUAL_VALUE = 3; + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 4; + */ + public static final int GREATER_THAN_VALUE = 4; + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; + + 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 Operation 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 Operation forNumber(int value) { + switch (value) { + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return EQUAL; + case 2: + return LESS_THAN; + case 3: + return LESS_THAN_OR_EQUAL; + case 4: + return GREATER_THAN; + case 5: + return GREATER_THAN_OR_EQUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operation findValueByNumber(int number) { + return Operation.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operation[] VALUES = values(); + + public static Operation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessNumericFilter.Operation) + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private int operation_; + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.valueOf(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.NumericValue value_; + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getValue() { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { + return getValue(); + } + + 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 (operation_ + != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, operation_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operation_ + != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.AccessNumericFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessNumericFilter other = + (com.google.analytics.admin.v1alpha.AccessNumericFilter) obj; + + if (operation_ != other.operation_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter 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.AccessNumericFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter 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.AccessNumericFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter 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.AccessNumericFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter 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.AccessNumericFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter 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.AccessNumericFilter 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.AccessNumericFilter 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.AccessNumericFilter 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; + } + /** + * + * + *
+   * Filters for numeric or date values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessNumericFilter) + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessNumericFilter.class, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + operation_ = 0; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter build() { + com.google.analytics.admin.v1alpha.AccessNumericFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessNumericFilter result = + new com.google.analytics.admin.v1alpha.AccessNumericFilter(this); + result.operation_ = operation_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessNumericFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessNumericFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessNumericFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) + return this; + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessNumericFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessNumericFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int operation_ = 0; + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + + operation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.valueOf(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.NumericValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + valueBuilder_; + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return valueBuilder_ != null || value_ != null; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + public com.google.analytics.admin.v1alpha.NumericValue getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder setValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder setValue( + com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder mergeValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.analytics.admin.v1alpha.NumericValue.newBuilder(value_) + .mergeFrom(value) + .buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + value_ = null; + valueBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + @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.AccessNumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessNumericFilter) + private static final com.google.analytics.admin.v1alpha.AccessNumericFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessNumericFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessNumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessNumericFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java new file mode 100644 index 000000000000..6b0de81d27d6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessNumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessNumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation(); + + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + com.google.analytics.admin.v1alpha.NumericValue getValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java new file mode 100644 index 000000000000..ae60174864ef --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java @@ -0,0 +1,3004 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Order bys define how rows will be sorted in the response. For example,
+ * ordering rows by descending access count is one ordering, and ordering rows
+ * by the country string is a different ordering.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} + */ +public final class AccessOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy) + AccessOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessOrderBy.newBuilder() to construct. + private AccessOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessOrderBy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessOrderBy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessOrderBy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder subBuilder = + null; + if (oneOrderByCase_ == 1) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_) + .toBuilder(); + } + oneOrderBy_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); + oneOrderBy_ = subBuilder.buildPartial(); + } + oneOrderByCase_ = 1; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder subBuilder = + null; + if (oneOrderByCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + oneOrderBy_) + .toBuilder(); + } + oneOrderBy_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + oneOrderBy_); + oneOrderBy_ = subBuilder.buildPartial(); + } + oneOrderByCase_ = 2; + break; + } + case 24: + { + desc_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); + } + + public interface MetricOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); + } + /** + * + * + *
+   * Sorts by metric values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} + */ + public static final class MetricOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + MetricOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricOrderBy.newBuilder() to construct. + private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricOrderBy() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricOrderBy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetricOrderBy( + 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(); + + metricName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object metricName_; + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + 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(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = 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(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.AccessOrderBy.MetricOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other = + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) obj; + + if (!getMetricName().equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy 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.AccessOrderBy.MetricOrderBy 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; + } + /** + * + * + *
+     * Sorts by metric values.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + metricName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy build() { + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy buildPartial() { + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = + new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(this); + result.metricName_ = metricName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other) { + if (other + == com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + metricName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + + metricName_ = getDefaultInstance().getMetricName(); + onChanged(); + return this; + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + metricName_ = 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.AccessOrderBy.MetricOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + private static final com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MetricOrderBy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DimensionOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); + + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + int getOrderTypeValue(); + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType getOrderType(); + } + /** + * + * + *
+   * Sorts by dimension values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} + */ + public static final class DimensionOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + DimensionOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionOrderBy.newBuilder() to construct. + private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DimensionOrderBy() { + dimensionName_ = ""; + orderType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionOrderBy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DimensionOrderBy( + 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(); + + dimensionName_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + orderType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); + } + + /** + * + * + *
+     * Rule to order the string dimension values by.
+     * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType} + */ + public enum OrderType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * ORDER_TYPE_UNSPECIFIED = 0; + */ + ORDER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
+       * "b" < "z".
+       * 
+ * + * ALPHANUMERIC = 1; + */ + ALPHANUMERIC(1), + /** + * + * + *
+       * Case insensitive alphanumeric sort by lower case Unicode code point.
+       * For example, "2" < "A" < "b" < "X" < "z".
+       * 
+ * + * CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + CASE_INSENSITIVE_ALPHANUMERIC(2), + /** + * + * + *
+       * Dimension values are converted to numbers before sorting. For example
+       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
+       * "25". Non-numeric dimension values all have equal ordering value below
+       * all numeric values.
+       * 
+ * + * NUMERIC = 3; + */ + NUMERIC(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * ORDER_TYPE_UNSPECIFIED = 0; + */ + public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
+       * "b" < "z".
+       * 
+ * + * ALPHANUMERIC = 1; + */ + public static final int ALPHANUMERIC_VALUE = 1; + /** + * + * + *
+       * Case insensitive alphanumeric sort by lower case Unicode code point.
+       * For example, "2" < "A" < "b" < "X" < "z".
+       * 
+ * + * CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; + /** + * + * + *
+       * Dimension values are converted to numbers before sorting. For example
+       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
+       * "25". Non-numeric dimension values all have equal ordering value below
+       * all numeric values.
+       * 
+ * + * NUMERIC = 3; + */ + public static final int NUMERIC_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 OrderType 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 OrderType forNumber(int value) { + switch (value) { + case 0: + return ORDER_TYPE_UNSPECIFIED; + case 1: + return ALPHANUMERIC; + case 2: + return CASE_INSENSITIVE_ALPHANUMERIC; + case 3: + return NUMERIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OrderType findValueByNumber(int number) { + return OrderType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final OrderType[] VALUES = values(); + + public static OrderType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OrderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType) + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object dimensionName_; + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + 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(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_TYPE_FIELD_NUMBER = 2; + private int orderType_; + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + @java.lang.Override + public int getOrderTypeValue() { + return orderType_; + } + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + getOrderType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.valueOf( + orderType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED + : result; + } + + 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(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + if (orderType_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + .ORDER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, orderType_); + } + 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(dimensionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); + } + if (orderType_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + .ORDER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, orderType_); + } + 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.AccessOrderBy.DimensionOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other = + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) obj; + + if (!getDimensionName().equals(other.getDimensionName())) return false; + if (orderType_ != other.orderType_) 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) + DIMENSION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDimensionName().hashCode(); + hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + orderType_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy 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.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy 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.AccessOrderBy.DimensionOrderBy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy 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.AccessOrderBy.DimensionOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy 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.AccessOrderBy.DimensionOrderBy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + 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.AccessOrderBy.DimensionOrderBy 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.AccessOrderBy.DimensionOrderBy 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.AccessOrderBy.DimensionOrderBy 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; + } + /** + * + * + *
+     * Sorts by dimension values.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + dimensionName_ = ""; + + orderType_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy build() { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy buildPartial() { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = + new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(this); + result.dimensionName_ = dimensionName_; + result.orderType_ = orderType_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other) { + if (other + == com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance()) return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + onChanged(); + } + if (other.orderType_ != 0) { + setOrderTypeValue(other.getOrderTypeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dimensionName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + + dimensionName_ = getDefaultInstance().getDimensionName(); + onChanged(); + return this; + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dimensionName_ = value; + onChanged(); + return this; + } + + private int orderType_ = 0; + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + @java.lang.Override + public int getOrderTypeValue() { + return orderType_; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @param value The enum numeric value on the wire for orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderTypeValue(int value) { + + orderType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + getOrderType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.valueOf( + orderType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @param value The orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderType( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType value) { + if (value == null) { + throw new NullPointerException(); + } + + orderType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearOrderType() { + + orderType_ = 0; + 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.AccessOrderBy.DimensionOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + private static final com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DimensionOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DimensionOrderBy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneOrderByCase_ = 0; + private java.lang.Object oneOrderBy_; + + public enum OneOrderByCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + METRIC(1), + DIMENSION(2), + ONEORDERBY_NOT_SET(0); + private final int value; + + private OneOrderByCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneOrderByCase valueOf(int value) { + return forNumber(value); + } + + public static OneOrderByCase forNumber(int value) { + switch (value) { + case 1: + return METRIC; + case 2: + return DIMENSION; + case 0: + return ONEORDERBY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneOrderByCase getOneOrderByCase() { + return OneOrderByCase.forNumber(oneOrderByCase_); + } + + public static final int METRIC_FIELD_NUMBER = 1; + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return oneOrderByCase_ == 1; + } + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder + getMetricOrBuilder() { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + + public static final int DIMENSION_FIELD_NUMBER = 2; + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return oneOrderByCase_ == 2; + } + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder() { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + + public static final int DESC_FIELD_NUMBER = 3; + private boolean desc_; + /** + * + * + *
+   * If true, sorts by descending order. If false or unspecified, sorts in
+   * ascending order.
+   * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + @java.lang.Override + public boolean getDesc() { + return desc_; + } + + 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 (oneOrderByCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); + } + if (oneOrderByCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); + } + if (desc_ != false) { + output.writeBool(3, desc_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneOrderByCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); + } + if (oneOrderByCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); + } + if (desc_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, desc_); + } + 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.AccessOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessOrderBy other = + (com.google.analytics.admin.v1alpha.AccessOrderBy) obj; + + if (getDesc() != other.getDesc()) return false; + if (!getOneOrderByCase().equals(other.getOneOrderByCase())) return false; + switch (oneOrderByCase_) { + case 1: + if (!getMetric().equals(other.getMetric())) return false; + break; + case 2: + if (!getDimension().equals(other.getDimension())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesc()); + switch (oneOrderByCase_) { + case 1: + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + break; + case 2: + hash = (37 * hash) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getDimension().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy 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.AccessOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy 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.AccessOrderBy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy 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.AccessOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy 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.AccessOrderBy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy 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.AccessOrderBy 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.AccessOrderBy 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.AccessOrderBy 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; + } + /** + * + * + *
+   * Order bys define how rows will be sorted in the response. For example,
+   * ordering rows by descending access count is one ordering, and ordering rows
+   * by the country string is a different ordering.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy) + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + desc_ = false; + + oneOrderByCase_ = 0; + oneOrderBy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy build() { + com.google.analytics.admin.v1alpha.AccessOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy buildPartial() { + com.google.analytics.admin.v1alpha.AccessOrderBy result = + new com.google.analytics.admin.v1alpha.AccessOrderBy(this); + if (oneOrderByCase_ == 1) { + if (metricBuilder_ == null) { + result.oneOrderBy_ = oneOrderBy_; + } else { + result.oneOrderBy_ = metricBuilder_.build(); + } + } + if (oneOrderByCase_ == 2) { + if (dimensionBuilder_ == null) { + result.oneOrderBy_ = oneOrderBy_; + } else { + result.oneOrderBy_ = dimensionBuilder_.build(); + } + } + result.desc_ = desc_; + result.oneOrderByCase_ = oneOrderByCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessOrderBy other) { + if (other == com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()) + return this; + if (other.getDesc() != false) { + setDesc(other.getDesc()); + } + switch (other.getOneOrderByCase()) { + case METRIC: + { + mergeMetric(other.getMetric()); + break; + } + case DIMENSION: + { + mergeDimension(other.getDimension()); + break; + } + case ONEORDERBY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessOrderBy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.AccessOrderBy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneOrderByCase_ = 0; + private java.lang.Object oneOrderBy_; + + public OneOrderByCase getOneOrderByCase() { + return OneOrderByCase.forNumber(oneOrderByCase_); + } + + public Builder clearOneOrderBy() { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> + metricBuilder_; + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return oneOrderByCase_ == 1; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } else { + if (oneOrderByCase_ == 1) { + return metricBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder setMetric(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { + if (metricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneOrderBy_ = value; + onChanged(); + } else { + metricBuilder_.setMessage(value); + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder setMetric( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder builderForValue) { + if (metricBuilder_ == null) { + oneOrderBy_ = builderForValue.build(); + onChanged(); + } else { + metricBuilder_.setMessage(builderForValue.build()); + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder mergeMetric( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1 + && oneOrderBy_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + .getDefaultInstance()) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder( + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_) + .mergeFrom(value) + .buildPartial(); + } else { + oneOrderBy_ = value; + } + onChanged(); + } else { + if (oneOrderByCase_ == 1) { + metricBuilder_.mergeFrom(value); + } else { + metricBuilder_.setMessage(value); + } + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder clearMetric() { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + } + } else { + if (oneOrderByCase_ == 1) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + } + metricBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder + getMetricBuilder() { + return getMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder + getMetricOrBuilder() { + if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { + return metricBuilder_.getMessageOrBuilder(); + } else { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> + getMetricFieldBuilder() { + if (metricBuilder_ == null) { + if (!(oneOrderByCase_ == 1)) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_, + getParentForChildren(), + isClean()); + oneOrderBy_ = null; + } + oneOrderByCase_ = 1; + onChanged(); + ; + return metricBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> + dimensionBuilder_; + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return oneOrderByCase_ == 2; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } else { + if (oneOrderByCase_ == 2) { + return dimensionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder setDimension( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { + if (dimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneOrderBy_ = value; + onChanged(); + } else { + dimensionBuilder_.setMessage(value); + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder setDimension( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder builderForValue) { + if (dimensionBuilder_ == null) { + oneOrderBy_ = builderForValue.build(); + onChanged(); + } else { + dimensionBuilder_.setMessage(builderForValue.build()); + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder mergeDimension( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2 + && oneOrderBy_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance()) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + oneOrderBy_) + .mergeFrom(value) + .buildPartial(); + } else { + oneOrderBy_ = value; + } + onChanged(); + } else { + if (oneOrderByCase_ == 2) { + dimensionBuilder_.mergeFrom(value); + } else { + dimensionBuilder_.setMessage(value); + } + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder clearDimension() { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + } + } else { + if (oneOrderByCase_ == 2) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + } + dimensionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder + getDimensionBuilder() { + return getDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder() { + if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { + return dimensionBuilder_.getMessageOrBuilder(); + } else { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> + getDimensionFieldBuilder() { + if (dimensionBuilder_ == null) { + if (!(oneOrderByCase_ == 2)) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + dimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_, + getParentForChildren(), + isClean()); + oneOrderBy_ = null; + } + oneOrderByCase_ = 2; + onChanged(); + ; + return dimensionBuilder_; + } + + private boolean desc_; + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + @java.lang.Override + public boolean getDesc() { + return desc_; + } + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @param value The desc to set. + * @return This builder for chaining. + */ + public Builder setDesc(boolean value) { + + desc_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @return This builder for chaining. + */ + public Builder clearDesc() { + + desc_ = false; + 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.AccessOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy) + private static final com.google.analytics.admin.v1alpha.AccessOrderBy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy(); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessOrderBy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java new file mode 100644 index 000000000000..cba2edcadbf4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + boolean hasMetric(); + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric(); + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); + + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + boolean hasDimension(); + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension(); + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder(); + + /** + * + * + *
+   * If true, sorts by descending order. If false or unspecified, sorts in
+   * ascending order.
+   * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + boolean getDesc(); + + public com.google.analytics.admin.v1alpha.AccessOrderBy.OneOrderByCase getOneOrderByCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java new file mode 100644 index 000000000000..8c3bb6df4d64 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java @@ -0,0 +1,1663 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Current state of all quotas for this Analytics property. If any quota for a
+ * property is exhausted, all requests to that property will return Resource
+ * Exhausted errors.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} + */ +public final class AccessQuota extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuota) + AccessQuotaOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessQuota.newBuilder() to construct. + private AccessQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessQuota() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessQuota(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessQuota( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder subBuilder = null; + if (tokensPerDay_ != null) { + subBuilder = tokensPerDay_.toBuilder(); + } + tokensPerDay_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tokensPerDay_); + tokensPerDay_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder subBuilder = null; + if (tokensPerHour_ != null) { + subBuilder = tokensPerHour_.toBuilder(); + } + tokensPerHour_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tokensPerHour_); + tokensPerHour_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder subBuilder = null; + if (concurrentRequests_ != null) { + subBuilder = concurrentRequests_.toBuilder(); + } + concurrentRequests_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(concurrentRequests_); + concurrentRequests_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder subBuilder = null; + if (serverErrorsPerProjectPerHour_ != null) { + subBuilder = serverErrorsPerProjectPerHour_.toBuilder(); + } + serverErrorsPerProjectPerHour_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverErrorsPerProjectPerHour_); + serverErrorsPerProjectPerHour_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuota.class, + com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); + } + + public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + @java.lang.Override + public boolean hasTokensPerDay() { + return tokensPerDay_ != null; + } + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { + return getTokensPerDay(); + } + + public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from both the hourly and
+   * daily quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + @java.lang.Override + public boolean hasTokensPerHour() { + return tokensPerHour_ != null; + } + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from both the hourly and
+   * daily quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from both the hourly and
+   * daily quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { + return getTokensPerHour(); + } + + public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + @java.lang.Override + public boolean hasConcurrentRequests() { + return concurrentRequests_ != null; + } + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getConcurrentRequestsOrBuilder() { + return getConcurrentRequests(); + } + + public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + @java.lang.Override + public boolean hasServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ != null; + } + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + return getServerErrorsPerProjectPerHour(); + } + + 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 (tokensPerDay_ != null) { + output.writeMessage(1, getTokensPerDay()); + } + if (tokensPerHour_ != null) { + output.writeMessage(2, getTokensPerHour()); + } + if (concurrentRequests_ != null) { + output.writeMessage(3, getConcurrentRequests()); + } + if (serverErrorsPerProjectPerHour_ != null) { + output.writeMessage(4, getServerErrorsPerProjectPerHour()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tokensPerDay_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTokensPerDay()); + } + if (tokensPerHour_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTokensPerHour()); + } + if (concurrentRequests_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConcurrentRequests()); + } + if (serverErrorsPerProjectPerHour_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getServerErrorsPerProjectPerHour()); + } + 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.AccessQuota)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessQuota other = + (com.google.analytics.admin.v1alpha.AccessQuota) obj; + + if (hasTokensPerDay() != other.hasTokensPerDay()) return false; + if (hasTokensPerDay()) { + if (!getTokensPerDay().equals(other.getTokensPerDay())) return false; + } + if (hasTokensPerHour() != other.hasTokensPerHour()) return false; + if (hasTokensPerHour()) { + if (!getTokensPerHour().equals(other.getTokensPerHour())) return false; + } + if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false; + if (hasConcurrentRequests()) { + if (!getConcurrentRequests().equals(other.getConcurrentRequests())) return false; + } + if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour()) + return false; + if (hasServerErrorsPerProjectPerHour()) { + if (!getServerErrorsPerProjectPerHour().equals(other.getServerErrorsPerProjectPerHour())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTokensPerDay()) { + hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerDay().hashCode(); + } + if (hasTokensPerHour()) { + hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerHour().hashCode(); + } + if (hasConcurrentRequests()) { + hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getConcurrentRequests().hashCode(); + } + if (hasServerErrorsPerProjectPerHour()) { + hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota 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.AccessQuota parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota 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.AccessQuota parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota 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.AccessQuota parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota 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.AccessQuota parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota 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.AccessQuota 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.AccessQuota 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.AccessQuota 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; + } + /** + * + * + *
+   * Current state of all quotas for this Analytics property. If any quota for a
+   * property is exhausted, all requests to that property will return Resource
+   * Exhausted errors.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessQuota) + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuota.class, + com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessQuota.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (tokensPerDayBuilder_ == null) { + tokensPerDay_ = null; + } else { + tokensPerDay_ = null; + tokensPerDayBuilder_ = null; + } + if (tokensPerHourBuilder_ == null) { + tokensPerHour_ = null; + } else { + tokensPerHour_ = null; + tokensPerHourBuilder_ = null; + } + if (concurrentRequestsBuilder_ == null) { + concurrentRequests_ = null; + } else { + concurrentRequests_ = null; + concurrentRequestsBuilder_ = null; + } + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHour_ = null; + } else { + serverErrorsPerProjectPerHour_ = null; + serverErrorsPerProjectPerHourBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota build() { + com.google.analytics.admin.v1alpha.AccessQuota result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota buildPartial() { + com.google.analytics.admin.v1alpha.AccessQuota result = + new com.google.analytics.admin.v1alpha.AccessQuota(this); + if (tokensPerDayBuilder_ == null) { + result.tokensPerDay_ = tokensPerDay_; + } else { + result.tokensPerDay_ = tokensPerDayBuilder_.build(); + } + if (tokensPerHourBuilder_ == null) { + result.tokensPerHour_ = tokensPerHour_; + } else { + result.tokensPerHour_ = tokensPerHourBuilder_.build(); + } + if (concurrentRequestsBuilder_ == null) { + result.concurrentRequests_ = concurrentRequests_; + } else { + result.concurrentRequests_ = concurrentRequestsBuilder_.build(); + } + if (serverErrorsPerProjectPerHourBuilder_ == null) { + result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHour_; + } else { + result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHourBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessQuota) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuota) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuota other) { + if (other == com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance()) return this; + if (other.hasTokensPerDay()) { + mergeTokensPerDay(other.getTokensPerDay()); + } + if (other.hasTokensPerHour()) { + mergeTokensPerHour(other.getTokensPerHour()); + } + if (other.hasConcurrentRequests()) { + mergeConcurrentRequests(other.getConcurrentRequests()); + } + if (other.hasServerErrorsPerProjectPerHour()) { + mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessQuota parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.AccessQuota) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + tokensPerDayBuilder_; + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + public boolean hasTokensPerDay() { + return tokensPerDayBuilder_ != null || tokensPerDay_ != null; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { + if (tokensPerDayBuilder_ == null) { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } else { + return tokensPerDayBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerDay_ = value; + onChanged(); + } else { + tokensPerDayBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerDayBuilder_ == null) { + tokensPerDay_ = builderForValue.build(); + onChanged(); + } else { + tokensPerDayBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder mergeTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (tokensPerDay_ != null) { + tokensPerDay_ = + com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder(tokensPerDay_) + .mergeFrom(value) + .buildPartial(); + } else { + tokensPerDay_ = value; + } + onChanged(); + } else { + tokensPerDayBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder clearTokensPerDay() { + if (tokensPerDayBuilder_ == null) { + tokensPerDay_ = null; + onChanged(); + } else { + tokensPerDay_ = null; + tokensPerDayBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerDayBuilder() { + + onChanged(); + return getTokensPerDayFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerDayOrBuilder() { + if (tokensPerDayBuilder_ != null) { + return tokensPerDayBuilder_.getMessageOrBuilder(); + } else { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getTokensPerDayFieldBuilder() { + if (tokensPerDayBuilder_ == null) { + tokensPerDayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getTokensPerDay(), getParentForChildren(), isClean()); + tokensPerDay_ = null; + } + return tokensPerDayBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + tokensPerHourBuilder_; + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + public boolean hasTokensPerHour() { + return tokensPerHourBuilder_ != null || tokensPerHour_ != null; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { + if (tokensPerHourBuilder_ == null) { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } else { + return tokensPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerHour_ = value; + onChanged(); + } else { + tokensPerHourBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerHourBuilder_ == null) { + tokensPerHour_ = builderForValue.build(); + onChanged(); + } else { + tokensPerHourBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder mergeTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (tokensPerHour_ != null) { + tokensPerHour_ = + com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder(tokensPerHour_) + .mergeFrom(value) + .buildPartial(); + } else { + tokensPerHour_ = value; + } + onChanged(); + } else { + tokensPerHourBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder clearTokensPerHour() { + if (tokensPerHourBuilder_ == null) { + tokensPerHour_ = null; + onChanged(); + } else { + tokensPerHour_ = null; + tokensPerHourBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerHourBuilder() { + + onChanged(); + return getTokensPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerHourOrBuilder() { + if (tokensPerHourBuilder_ != null) { + return tokensPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from both the hourly and
+     * daily quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getTokensPerHourFieldBuilder() { + if (tokensPerHourBuilder_ == null) { + tokensPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getTokensPerHour(), getParentForChildren(), isClean()); + tokensPerHour_ = null; + } + return tokensPerHourBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + concurrentRequestsBuilder_; + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + public boolean hasConcurrentRequests() { + return concurrentRequestsBuilder_ != null || concurrentRequests_ != null; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { + if (concurrentRequestsBuilder_ == null) { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } else { + return concurrentRequestsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + concurrentRequests_ = value; + onChanged(); + } else { + concurrentRequestsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (concurrentRequestsBuilder_ == null) { + concurrentRequests_ = builderForValue.build(); + onChanged(); + } else { + concurrentRequestsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder mergeConcurrentRequests( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (concurrentRequests_ != null) { + concurrentRequests_ = + com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder(concurrentRequests_) + .mergeFrom(value) + .buildPartial(); + } else { + concurrentRequests_ = value; + } + onChanged(); + } else { + concurrentRequestsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder clearConcurrentRequests() { + if (concurrentRequestsBuilder_ == null) { + concurrentRequests_ = null; + onChanged(); + } else { + concurrentRequests_ = null; + concurrentRequestsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder + getConcurrentRequestsBuilder() { + + onChanged(); + return getConcurrentRequestsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getConcurrentRequestsOrBuilder() { + if (concurrentRequestsBuilder_ != null) { + return concurrentRequestsBuilder_.getMessageOrBuilder(); + } else { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getConcurrentRequestsFieldBuilder() { + if (concurrentRequestsBuilder_ == null) { + concurrentRequestsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getConcurrentRequests(), getParentForChildren(), isClean()); + concurrentRequests_ = null; + } + return concurrentRequestsBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + serverErrorsPerProjectPerHourBuilder_; + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + public boolean hasServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHourBuilder_ != null + || serverErrorsPerProjectPerHour_ != null; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } else { + return serverErrorsPerProjectPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serverErrorsPerProjectPerHour_ = value; + onChanged(); + } else { + serverErrorsPerProjectPerHourBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHour_ = builderForValue.build(); + onChanged(); + } else { + serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder mergeServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (serverErrorsPerProjectPerHour_ != null) { + serverErrorsPerProjectPerHour_ = + com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder( + serverErrorsPerProjectPerHour_) + .mergeFrom(value) + .buildPartial(); + } else { + serverErrorsPerProjectPerHour_ = value; + } + onChanged(); + } else { + serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder clearServerErrorsPerProjectPerHour() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHour_ = null; + onChanged(); + } else { + serverErrorsPerProjectPerHour_ = null; + serverErrorsPerProjectPerHourBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder + getServerErrorsPerProjectPerHourBuilder() { + + onChanged(); + return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ != null) { + return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getServerErrorsPerProjectPerHourFieldBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); + serverErrorsPerProjectPerHour_ = null; + } + return serverErrorsPerProjectPerHourBuilder_; + } + + @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.AccessQuota) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuota) + private static final com.google.analytics.admin.v1alpha.AccessQuota DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuota(); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessQuota parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessQuota(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java new file mode 100644 index 000000000000..796d90b000a3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java @@ -0,0 +1,181 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessQuotaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuota) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + boolean hasTokensPerDay(); + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay(); + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder(); + + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from both the hourly and
+   * daily quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + boolean hasTokensPerHour(); + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from both the hourly and
+   * daily quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour(); + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from both the hourly and
+   * daily quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder(); + + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + boolean hasConcurrentRequests(); + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests(); + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); + + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + boolean hasServerErrorsPerProjectPerHour(); + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour(); + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java new file mode 100644 index 000000000000..fe381ea23fdb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java @@ -0,0 +1,638 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Current state for a particular quota group.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} + */ +public final class AccessQuotaStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) + AccessQuotaStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessQuotaStatus.newBuilder() to construct. + private AccessQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessQuotaStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessQuotaStatus(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessQuotaStatus( + 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 8: + { + consumed_ = input.readInt32(); + break; + } + case 16: + { + remaining_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); + } + + public static final int CONSUMED_FIELD_NUMBER = 1; + private int consumed_; + /** + * + * + *
+   * Quota consumed by this request.
+   * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + @java.lang.Override + public int getConsumed() { + return consumed_; + } + + public static final int REMAINING_FIELD_NUMBER = 2; + private int remaining_; + /** + * + * + *
+   * Quota remaining after this request.
+   * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + @java.lang.Override + public int getRemaining() { + return remaining_; + } + + 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 (consumed_ != 0) { + output.writeInt32(1, consumed_); + } + if (remaining_ != 0) { + output.writeInt32(2, remaining_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumed_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, consumed_); + } + if (remaining_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, remaining_); + } + 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.AccessQuotaStatus)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessQuotaStatus other = + (com.google.analytics.admin.v1alpha.AccessQuotaStatus) obj; + + if (getConsumed() != other.getConsumed()) return false; + if (getRemaining() != other.getRemaining()) 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) + CONSUMED_FIELD_NUMBER; + hash = (53 * hash) + getConsumed(); + hash = (37 * hash) + REMAINING_FIELD_NUMBER; + hash = (53 * hash) + getRemaining(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus 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.AccessQuotaStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus 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.AccessQuotaStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus 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.AccessQuotaStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus 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.AccessQuotaStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus 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.AccessQuotaStatus 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.AccessQuotaStatus 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.AccessQuotaStatus 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; + } + /** + * + * + *
+   * Current state for a particular quota group.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + consumed_ = 0; + + remaining_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus build() { + com.google.analytics.admin.v1alpha.AccessQuotaStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus buildPartial() { + com.google.analytics.admin.v1alpha.AccessQuotaStatus result = + new com.google.analytics.admin.v1alpha.AccessQuotaStatus(this); + result.consumed_ = consumed_; + result.remaining_ = remaining_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessQuotaStatus) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuotaStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuotaStatus other) { + if (other == com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) + return this; + if (other.getConsumed() != 0) { + setConsumed(other.getConsumed()); + } + if (other.getRemaining() != 0) { + setRemaining(other.getRemaining()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessQuotaStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessQuotaStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int consumed_; + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + @java.lang.Override + public int getConsumed() { + return consumed_; + } + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @param value The consumed to set. + * @return This builder for chaining. + */ + public Builder setConsumed(int value) { + + consumed_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumed() { + + consumed_ = 0; + onChanged(); + return this; + } + + private int remaining_; + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + @java.lang.Override + public int getRemaining() { + return remaining_; + } + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @param value The remaining to set. + * @return This builder for chaining. + */ + public Builder setRemaining(int value) { + + remaining_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @return This builder for chaining. + */ + public Builder clearRemaining() { + + remaining_ = 0; + 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.AccessQuotaStatus) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) + private static final com.google.analytics.admin.v1alpha.AccessQuotaStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuotaStatus(); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessQuotaStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessQuotaStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java new file mode 100644 index 000000000000..b8cd28483676 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java @@ -0,0 +1,51 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessQuotaStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuotaStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Quota consumed by this request.
+   * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + int getConsumed(); + + /** + * + * + *
+   * Quota remaining after this request.
+   * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + int getRemaining(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java new file mode 100644 index 000000000000..63280dc15b45 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java @@ -0,0 +1,393 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public final class AccessReportProto { + private AccessReportProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/analytics/admin/v1alpha/access_" + + "report.proto\022\036google.analytics.admin.v1a" + + "lpha\")\n\017AccessDimension\022\026\n\016dimension_nam" + + "e\030\001 \001(\t\"#\n\014AccessMetric\022\023\n\013metric_name\030\001" + + " \001(\t\"7\n\017AccessDateRange\022\022\n\nstart_date\030\001 " + + "\001(\t\022\020\n\010end_date\030\002 \001(\t\"\344\002\n\026AccessFilterEx" + + "pression\022O\n\tand_group\030\001 \001(\0132:.google.ana" + + "lytics.admin.v1alpha.AccessFilterExpress" + + "ionListH\000\022N\n\010or_group\030\002 \001(\0132:.google.ana" + + "lytics.admin.v1alpha.AccessFilterExpress" + + "ionListH\000\022P\n\016not_expression\030\003 \001(\01326.goog" + + "le.analytics.admin.v1alpha.AccessFilterE" + + "xpressionH\000\022E\n\raccess_filter\030\004 \001(\0132,.goo" + + "gle.analytics.admin.v1alpha.AccessFilter" + + "H\000B\020\n\016one_expression\"i\n\032AccessFilterExpr" + + "essionList\022K\n\013expressions\030\001 \003(\01326.google" + + ".analytics.admin.v1alpha.AccessFilterExp" + + "ression\"\351\002\n\014AccessFilter\022K\n\rstring_filte" + + "r\030\002 \001(\01322.google.analytics.admin.v1alpha" + + ".AccessStringFilterH\000\022L\n\016in_list_filter\030" + + "\003 \001(\01322.google.analytics.admin.v1alpha.A" + + "ccessInListFilterH\000\022M\n\016numeric_filter\030\004 " + + "\001(\01323.google.analytics.admin.v1alpha.Acc" + + "essNumericFilterH\000\022M\n\016between_filter\030\005 \001" + + "(\01323.google.analytics.admin.v1alpha.Acce" + + "ssBetweenFilterH\000\022\022\n\nfield_name\030\001 \001(\tB\014\n" + + "\none_filter\"\225\002\n\022AccessStringFilter\022P\n\nma" + + "tch_type\030\001 \001(\0162<.google.analytics.admin." + + "v1alpha.AccessStringFilter.MatchType\022\r\n\005" + + "value\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\t" + + "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003" + + "\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTI" + + "AL_REGEXP\020\006\"<\n\022AccessInListFilter\022\016\n\006val" + + "ues\030\001 \003(\t\022\026\n\016case_sensitive\030\002 \001(\010\"\254\002\n\023Ac" + + "cessNumericFilter\022P\n\toperation\030\001 \001(\0162=.g" + + "oogle.analytics.admin.v1alpha.AccessNume" + + "ricFilter.Operation\022;\n\005value\030\002 \001(\0132,.goo" + + "gle.analytics.admin.v1alpha.NumericValue" + + "\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPECIFIED\020" + + "\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN" + + "_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREATER" + + "_THAN_OR_EQUAL\020\005\"\227\001\n\023AccessBetweenFilter" + + "\022@\n\nfrom_value\030\001 \001(\0132,.google.analytics." + + "admin.v1alpha.NumericValue\022>\n\010to_value\030\002" + + " \001(\0132,.google.analytics.admin.v1alpha.Nu" + + "mericValue\"J\n\014NumericValue\022\025\n\013int64_valu" + + "e\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone" + + "_value\"\355\003\n\rAccessOrderBy\022M\n\006metric\030\001 \001(\013" + + "2;.google.analytics.admin.v1alpha.Access" + + "OrderBy.MetricOrderByH\000\022S\n\tdimension\030\002 \001" + + "(\0132>.google.analytics.admin.v1alpha.Acce" + + "ssOrderBy.DimensionOrderByH\000\022\014\n\004desc\030\003 \001" + + "(\010\032$\n\rMetricOrderBy\022\023\n\013metric_name\030\001 \001(\t" + + "\032\363\001\n\020DimensionOrderBy\022\026\n\016dimension_name\030" + + "\001 \001(\t\022\\\n\norder_type\030\002 \001(\0162H.google.analy" + + "tics.admin.v1alpha.AccessOrderBy.Dimensi" + + "onOrderBy.OrderType\"i\n\tOrderType\022\032\n\026ORDE" + + "R_TYPE_UNSPECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022!" + + "\n\035CASE_INSENSITIVE_ALPHANUMERIC\020\002\022\013\n\007NUM" + + "ERIC\020\003B\016\n\014one_order_by\"/\n\025AccessDimensio" + + "nHeader\022\026\n\016dimension_name\030\001 \001(\t\")\n\022Acces" + + "sMetricHeader\022\023\n\013metric_name\030\001 \001(\t\"\245\001\n\tA" + + "ccessRow\022N\n\020dimension_values\030\001 \003(\01324.goo" + + "gle.analytics.admin.v1alpha.AccessDimens" + + "ionValue\022H\n\rmetric_values\030\002 \003(\01321.google" + + ".analytics.admin.v1alpha.AccessMetricVal" + + "ue\"%\n\024AccessDimensionValue\022\r\n\005value\030\001 \001(" + + "\t\"\"\n\021AccessMetricValue\022\r\n\005value\030\001 \001(\t\"\323\002" + + "\n\013AccessQuota\022I\n\016tokens_per_day\030\001 \001(\01321." + + "google.analytics.admin.v1alpha.AccessQuo" + + "taStatus\022J\n\017tokens_per_hour\030\002 \001(\01321.goog" + + "le.analytics.admin.v1alpha.AccessQuotaSt" + + "atus\022N\n\023concurrent_requests\030\003 \001(\01321.goog" + + "le.analytics.admin.v1alpha.AccessQuotaSt" + + "atus\022]\n\"server_errors_per_project_per_ho" + + "ur\030\004 \001(\01321.google.analytics.admin.v1alph" + + "a.AccessQuotaStatus\"8\n\021AccessQuotaStatus" + + "\022\020\n\010consumed\030\001 \001(\005\022\021\n\tremaining\030\002 \001(\005B~\n" + + "\"com.google.analytics.admin.v1alphaB\021Acc" + + "essReportProtoP\001ZCgoogle.golang.org/genp" + + "roto/googleapis/analytics/admin/v1alpha;" + + "adminb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "AccessFilter", "OneExpression", + }); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor, + new java.lang.String[] { + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FieldName", + "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor, + new java.lang.String[] { + "Operation", "Value", + }); + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor, + new java.lang.String[] { + "FromValue", "ToValue", + }); + internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor, + new java.lang.String[] { + "Int64Value", "DoubleValue", "OneValue", + }); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor, + new java.lang.String[] { + "Metric", "Dimension", "Desc", "OneOrderBy", + }); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor = + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor = + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor, + new java.lang.String[] { + "DimensionName", "OrderType", + }); + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor, + new java.lang.String[] { + "DimensionValues", "MetricValues", + }); + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor, + new java.lang.String[] { + "TokensPerDay", + "TokensPerHour", + "ConcurrentRequests", + "ServerErrorsPerProjectPerHour", + }); + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor, + new java.lang.String[] { + "Consumed", "Remaining", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java new file mode 100644 index 000000000000..c4be5a5f4e2a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java @@ -0,0 +1,1543 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Access report data for each row.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} + */ +public final class AccessRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessRow) + AccessRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessRow.newBuilder() to construct. + private AccessRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessRow() { + dimensionValues_ = java.util.Collections.emptyList(); + metricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessRow(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessRow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AccessDimensionValue>(); + mutable_bitField0_ |= 0x00000001; + } + dimensionValues_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDimensionValue.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metricValues_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + metricValues_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessMetricValue.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + metricValues_ = java.util.Collections.unmodifiableList(metricValues_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessRow.class, + com.google.analytics.admin.v1alpha.AccessRow.Builder.class); + } + + public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; + private java.util.List dimensionValues_; + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionValuesList() { + return dimensionValues_; + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionValuesOrBuilderList() { + return dimensionValues_; + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public int getDimensionValuesCount() { + return dimensionValues_.size(); + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { + return dimensionValues_.get(index); + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder + getDimensionValuesOrBuilder(int index) { + return dimensionValues_.get(index); + } + + public static final int METRIC_VALUES_FIELD_NUMBER = 2; + private java.util.List metricValues_; + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List + getMetricValuesList() { + return metricValues_; + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List + getMetricValuesOrBuilderList() { + return metricValues_; + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public int getMetricValuesCount() { + return metricValues_.size(); + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { + return metricValues_.get(index); + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( + int index) { + return metricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionValues_.size(); i++) { + output.writeMessage(1, dimensionValues_.get(i)); + } + for (int i = 0; i < metricValues_.size(); i++) { + output.writeMessage(2, metricValues_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensionValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i)); + } + for (int i = 0; i < metricValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValues_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.AccessRow)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessRow other = + (com.google.analytics.admin.v1alpha.AccessRow) obj; + + if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; + if (!getMetricValuesList().equals(other.getMetricValuesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDimensionValuesCount() > 0) { + hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getDimensionValuesList().hashCode(); + } + if (getMetricValuesCount() > 0) { + hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getMetricValuesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessRow 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.AccessRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessRow 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.AccessRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessRow 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.AccessRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessRow 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.AccessRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessRow 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.AccessRow 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.AccessRow 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.AccessRow 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; + } + /** + * + * + *
+   * Access report data for each row.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessRow) + com.google.analytics.admin.v1alpha.AccessRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessRow.class, + com.google.analytics.admin.v1alpha.AccessRow.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessRow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDimensionValuesFieldBuilder(); + getMetricValuesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dimensionValuesBuilder_.clear(); + } + if (metricValuesBuilder_ == null) { + metricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + metricValuesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow build() { + com.google.analytics.admin.v1alpha.AccessRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow buildPartial() { + com.google.analytics.admin.v1alpha.AccessRow result = + new com.google.analytics.admin.v1alpha.AccessRow(this); + int from_bitField0_ = bitField0_; + if (dimensionValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionValues_ = dimensionValues_; + } else { + result.dimensionValues_ = dimensionValuesBuilder_.build(); + } + if (metricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricValues_ = java.util.Collections.unmodifiableList(metricValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricValues_ = metricValues_; + } else { + result.metricValues_ = metricValuesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessRow) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessRow other) { + if (other == com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()) return this; + if (dimensionValuesBuilder_ == null) { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValues_.isEmpty()) { + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionValuesIsMutable(); + dimensionValues_.addAll(other.dimensionValues_); + } + onChanged(); + } + } else { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValuesBuilder_.isEmpty()) { + dimensionValuesBuilder_.dispose(); + dimensionValuesBuilder_ = null; + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionValuesFieldBuilder() + : null; + } else { + dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); + } + } + } + if (metricValuesBuilder_ == null) { + if (!other.metricValues_.isEmpty()) { + if (metricValues_.isEmpty()) { + metricValues_ = other.metricValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricValuesIsMutable(); + metricValues_.addAll(other.metricValues_); + } + onChanged(); + } + } else { + if (!other.metricValues_.isEmpty()) { + if (metricValuesBuilder_.isEmpty()) { + metricValuesBuilder_.dispose(); + metricValuesBuilder_ = null; + metricValues_ = other.metricValues_; + bitField0_ = (bitField0_ & ~0x00000002); + metricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricValuesFieldBuilder() + : null; + } else { + metricValuesBuilder_.addAllMessages(other.metricValues_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessRow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.AccessRow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + dimensionValues_ = java.util.Collections.emptyList(); + + private void ensureDimensionValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = + new java.util.ArrayList( + dimensionValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionValue, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> + dimensionValuesBuilder_; + + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesList() { + if (dimensionValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionValues_); + } else { + return dimensionValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public int getDimensionValuesCount() { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.size(); + } else { + return dimensionValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder setDimensionValues( + int index, com.google.analytics.admin.v1alpha.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder setDimensionValues( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + com.google.analytics.admin.v1alpha.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + int index, com.google.analytics.admin.v1alpha.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addAllDimensionValues( + java.lang.Iterable + values) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); + onChanged(); + } else { + dimensionValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder clearDimensionValues() { + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder removeDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.remove(index); + onChanged(); + } else { + dimensionValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder + getDimensionValuesBuilder(int index) { + return getDimensionValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder + getDimensionValuesOrBuilder(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> + getDimensionValuesOrBuilderList() { + if (dimensionValuesBuilder_ != null) { + return dimensionValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionValues_); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder + addDimensionValuesBuilder() { + return getDimensionValuesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder + addDimensionValuesBuilder(int index) { + return getDimensionValuesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesBuilderList() { + return getDimensionValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionValue, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> + getDimensionValuesFieldBuilder() { + if (dimensionValuesBuilder_ == null) { + dimensionValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionValue, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder>( + dimensionValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionValues_ = null; + } + return dimensionValuesBuilder_; + } + + private java.util.List metricValues_ = + java.util.Collections.emptyList(); + + private void ensureMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricValues_ = + new java.util.ArrayList( + metricValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricValue, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder> + metricValuesBuilder_; + + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesList() { + if (metricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricValues_); + } else { + return metricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public int getMetricValuesCount() { + if (metricValuesBuilder_ == null) { + return metricValues_.size(); + } else { + return metricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { + if (metricValuesBuilder_ == null) { + return metricValues_.get(index); + } else { + return metricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.set(index, value); + onChanged(); + } else { + metricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues(com.google.analytics.admin.v1alpha.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.add(value); + onChanged(); + } else { + metricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.add(index, value); + onChanged(); + } else { + metricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addAllMetricValues( + java.lang.Iterable values) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValues_); + onChanged(); + } else { + metricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder clearMetricValues() { + if (metricValuesBuilder_ == null) { + metricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder removeMetricValues(int index) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.remove(index); + onChanged(); + } else { + metricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder getMetricValuesBuilder( + int index) { + return getMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( + int index) { + if (metricValuesBuilder_ == null) { + return metricValues_.get(index); + } else { + return metricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesOrBuilderList() { + if (metricValuesBuilder_ != null) { + return metricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricValues_); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder addMetricValuesBuilder() { + return getMetricValuesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder addMetricValuesBuilder( + int index) { + return getMetricValuesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesBuilderList() { + return getMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricValue, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder> + getMetricValuesFieldBuilder() { + if (metricValuesBuilder_ == null) { + metricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricValue, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder>( + metricValues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metricValues_ = null; + } + return metricValuesBuilder_; + } + + @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.AccessRow) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessRow) + private static final com.google.analytics.admin.v1alpha.AccessRow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessRow(); + } + + public static com.google.analytics.admin.v1alpha.AccessRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessRow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java new file mode 100644 index 000000000000..7c4bb2520499 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java @@ -0,0 +1,145 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + java.util.List getDimensionValuesList(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + int getDimensionValuesCount(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + java.util.List + getDimensionValuesOrBuilderList(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( + int index); + + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + java.util.List getMetricValuesList(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + int getMetricValuesCount(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + java.util.List + getMetricValuesOrBuilderList(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java new file mode 100644 index 000000000000..2895699c2346 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java @@ -0,0 +1,1135 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The filter for strings.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} + */ +public final class AccessStringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessStringFilter) + AccessStringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessStringFilter.newBuilder() to construct. + private AccessStringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessStringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessStringFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AccessStringFilter( + 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 8: + { + int rawValue = input.readEnum(); + + matchType_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessStringFilter.class, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); + } + + /** + * + * + *
+   * The match type of a string filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AccessStringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Exact match of the string value.
+     * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+     * Begins with the string value.
+     * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+     * Ends with the string value.
+     * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+     * Contains the string value.
+     * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+     * Full match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+     * Partial match for the regular expression with the string value.
+     * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exact match of the string value.
+     * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+     * Begins with the string value.
+     * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+     * Ends with the string value.
+     * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+     * Contains the string value.
+     * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+     * Full match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+     * Partial match for the regular expression with the string value.
+     * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + 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 MatchType 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 MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessStringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_; + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.valueOf(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_; + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + 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 (matchType_ + != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + 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.AccessStringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessStringFilter other = + (com.google.analytics.admin.v1alpha.AccessStringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter 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.AccessStringFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter 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.AccessStringFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter 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.AccessStringFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter 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.AccessStringFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter 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.AccessStringFilter 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.AccessStringFilter 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.AccessStringFilter 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; + } + /** + * + * + *
+   * The filter for strings.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessStringFilter) + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessStringFilter.class, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + matchType_ = 0; + + value_ = ""; + + caseSensitive_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter build() { + com.google.analytics.admin.v1alpha.AccessStringFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessStringFilter result = + new com.google.analytics.admin.v1alpha.AccessStringFilter(this); + result.matchType_ = matchType_; + result.value_ = value_; + result.caseSensitive_ = caseSensitive_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessStringFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessStringFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessStringFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) + return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.AccessStringFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.AccessStringFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int matchType_ = 0; + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + + matchType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.valueOf(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + + caseSensitive_ = false; + 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.AccessStringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessStringFilter) + private static final com.google.analytics.admin.v1alpha.AccessStringFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessStringFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessStringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AccessStringFilter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java new file mode 100644 index 000000000000..668d1e561cdb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java @@ -0,0 +1,88 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessStringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessStringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType(); + + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index c4a5c7ad34ea..a806bba1a4ec 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -27,6 +27,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -438,813 +446,842 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/analytics/admin/v1alpha/analyti" + "cs_admin.proto\022\036google.analytics.admin.v" - + "1alpha\032-google/analytics/admin/v1alpha/a" - + "udience.proto\032.google/analytics/admin/v1" - + "alpha/resources.proto\032\034google/api/annota" - + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/ap" - + "i/resource.proto\032\033google/protobuf/empty." - + "proto\032 google/protobuf/field_mask.proto\032" - + "\037google/protobuf/timestamp.proto\"P\n\021GetA" - + "ccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%ana" - + "lyticsadmin.googleapis.com/Account\"R\n\023Li" - + "stAccountsRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 \001(\010\"j" - + "\n\024ListAccountsResponse\0229\n\010accounts\030\001 \003(\013" - + "2\'.google.analytics.admin.v1alpha.Accoun" - + "t\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024DeleteAcco" - + "untRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%analyt" - + "icsadmin.googleapis.com/Account\"\213\001\n\024Upda" - + "teAccountRequest\022=\n\007account\030\001 \001(\0132\'.goog" - + "le.analytics.admin.v1alpha.AccountB\003\340A\002\022" - + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"o\n\035ProvisionAccountTicketR" - + "equest\0228\n\007account\030\001 \001(\0132\'.google.analyti" - + "cs.admin.v1alpha.Account\022\024\n\014redirect_uri" - + "\030\002 \001(\t\";\n\036ProvisionAccountTicketResponse" - + "\022\031\n\021account_ticket_id\030\001 \001(\t\"R\n\022GetProper" - + "tyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyti" - + "csadmin.googleapis.com/Property\"i\n\025ListP" - + "ropertiesRequest\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014" - + "show_deleted\030\004 \001(\010\"o\n\026ListPropertiesResp" - + "onse\022<\n\nproperties\030\001 \003(\0132(.google.analyt" - + "ics.admin.v1alpha.Property\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\216\001\n\025UpdatePropertyRequest\022?\n" - + "\010property\030\001 \001(\0132(.google.analytics.admin" - + ".v1alpha.PropertyB\003\340A\002\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"X\n\025" - + "CreatePropertyRequest\022?\n\010property\030\001 \001(\0132" - + "(.google.analytics.admin.v1alpha.Propert" - + "yB\003\340A\002\"U\n\025DeletePropertyRequest\022<\n\004name\030" - + "\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googleapis" - + ".com/Property\"R\n\022GetUserLinkRequest\022<\n\004n" - + "ame\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.google" - + "apis.com/UserLink\"\231\001\n\030BatchGetUserLinksR" - + "equest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analytic" - + "sadmin.googleapis.com/UserLink\022=\n\005names\030" - + "\002 \003(\tB.\340A\002\372A(\n&analyticsadmin.googleapis" - + ".com/UserLink\"Y\n\031BatchGetUserLinksRespon" - + "se\022<\n\nuser_links\030\001 \003(\0132(.google.analytic" - + "s.admin.v1alpha.UserLink\"}\n\024ListUserLink" - + "sRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyt" - + "icsadmin.googleapis.com/UserLink\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025ListU" + + "1alpha\0322google/analytics/admin/v1alpha/a" + + "ccess_report.proto\032-google/analytics/adm" + + "in/v1alpha/audience.proto\032.google/analyt" + + "ics/admin/v1alpha/resources.proto\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\033google/pro" + + "tobuf/empty.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\244\004\n\026RunAccessReportRequest\022\016\n\006entit" + + "y\030\001 \001(\t\022C\n\ndimensions\030\002 \003(\0132/.google.ana" + + "lytics.admin.v1alpha.AccessDimension\022=\n\007" + + "metrics\030\003 \003(\0132,.google.analytics.admin.v" + + "1alpha.AccessMetric\022D\n\013date_ranges\030\004 \003(\013" + + "2/.google.analytics.admin.v1alpha.Access" + + "DateRange\022P\n\020dimension_filter\030\005 \001(\01326.go" + + "ogle.analytics.admin.v1alpha.AccessFilte" + + "rExpression\022M\n\rmetric_filter\030\006 \001(\01326.goo" + + "gle.analytics.admin.v1alpha.AccessFilter" + + "Expression\022\016\n\006offset\030\007 \001(\003\022\r\n\005limit\030\010 \001(" + + "\003\022\021\n\ttime_zone\030\t \001(\t\022@\n\torder_bys\030\n \003(\0132" + + "-.google.analytics.admin.v1alpha.AccessO" + + "rderBy\022\033\n\023return_entity_quota\030\013 \001(\010\"\277\002\n\027" + + "RunAccessReportResponse\022P\n\021dimension_hea" + + "ders\030\001 \003(\01325.google.analytics.admin.v1al" + + "pha.AccessDimensionHeader\022J\n\016metric_head" + + "ers\030\002 \003(\01322.google.analytics.admin.v1alp" + + "ha.AccessMetricHeader\0227\n\004rows\030\003 \003(\0132).go" + + "ogle.analytics.admin.v1alpha.AccessRow\022\021" + + "\n\trow_count\030\004 \001(\005\022:\n\005quota\030\005 \001(\0132+.googl" + + "e.analytics.admin.v1alpha.AccessQuota\"P\n" + + "\021GetAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" + + "\n%analyticsadmin.googleapis.com/Account\"" + + "R\n\023ListAccountsRequest\022\021\n\tpage_size\030\001 \001(" + + "\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014show_deleted\030\003 " + + "\001(\010\"j\n\024ListAccountsResponse\0229\n\010accounts\030" + + "\001 \003(\0132\'.google.analytics.admin.v1alpha.A" + + "ccount\022\027\n\017next_page_token\030\002 \001(\t\"S\n\024Delet" + + "eAccountRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%a" + + "nalyticsadmin.googleapis.com/Account\"\213\001\n" + + "\024UpdateAccountRequest\022=\n\007account\030\001 \001(\0132\'" + + ".google.analytics.admin.v1alpha.AccountB" + + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002\"o\n\035ProvisionAccountTi" + + "cketRequest\0228\n\007account\030\001 \001(\0132\'.google.an" + + "alytics.admin.v1alpha.Account\022\024\n\014redirec" + + "t_uri\030\002 \001(\t\";\n\036ProvisionAccountTicketRes" + + "ponse\022\031\n\021account_ticket_id\030\001 \001(\t\"R\n\022GetP" + + "ropertyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&an" + + "alyticsadmin.googleapis.com/Property\"i\n\025" + + "ListPropertiesRequest\022\023\n\006filter\030\001 \001(\tB\003\340" + + "A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\022\024\n\014show_deleted\030\004 \001(\010\"o\n\026ListPropertie" + + "sResponse\022<\n\nproperties\030\001 \003(\0132(.google.a" + + "nalytics.admin.v1alpha.Property\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\216\001\n\025UpdatePropertyReque" + + "st\022?\n\010property\030\001 \001(\0132(.google.analytics." + + "admin.v1alpha.PropertyB\003\340A\002\0224\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"X\n\025CreatePropertyRequest\022?\n\010property\030\001" + + " \001(\0132(.google.analytics.admin.v1alpha.Pr" + + "opertyB\003\340A\002\"U\n\025DeletePropertyRequest\022<\n\004" + + "name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googl" + + "eapis.com/Property\"R\n\022GetUserLinkRequest" + + "\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.g" + + "oogleapis.com/UserLink\"\231\001\n\030BatchGetUserL" + + "inksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&ana" + + "lyticsadmin.googleapis.com/UserLink\022=\n\005n" + + "ames\030\002 \003(\tB.\340A\002\372A(\n&analyticsadmin.googl" + + "eapis.com/UserLink\"Y\n\031BatchGetUserLinksR" + + "esponse\022<\n\nuser_links\030\001 \003(\0132(.google.ana" + + "lytics.admin.v1alpha.UserLink\"}\n\024ListUse" + + "rLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&a" + + "nalyticsadmin.googleapis.com/UserLink\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"n\n\025" + + "ListUserLinksResponse\022<\n\nuser_links\030\001 \003(" + + "\0132(.google.analytics.admin.v1alpha.UserL" + + "ink\022\027\n\017next_page_token\030\002 \001(\t\"~\n\025AuditUse" + + "rLinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&a" + + "nalyticsadmin.googleapis.com/UserLink\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026" + + "AuditUserLinksResponse\022A\n\nuser_links\030\001 \003" + + "(\0132-.google.analytics.admin.v1alpha.Audi" + + "tUserLink\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\025C" + + "reateUserLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A" + + "\002\372A(\022&analyticsadmin.googleapis.com/User" + + "Link\022\034\n\017notify_new_user\030\002 \001(\010B\003\340A\001\022@\n\tus" + + "er_link\030\003 \001(\0132(.google.analytics.admin.v" + + "1alpha.UserLinkB\003\340A\002\"\312\001\n\033BatchCreateUser" + + "LinksRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&an" + + "alyticsadmin.googleapis.com/UserLink\022\035\n\020" + + "notify_new_users\030\002 \001(\010B\003\340A\001\022L\n\010requests\030" + + "\003 \003(\01325.google.analytics.admin.v1alpha.C" + + "reateUserLinkRequestB\003\340A\002\"\\\n\034BatchCreate" + + "UserLinksResponse\022<\n\nuser_links\030\001 \003(\0132(." + + "google.analytics.admin.v1alpha.UserLink\"" + + "Y\n\025UpdateUserLinkRequest\022@\n\tuser_link\030\001 " + + "\001(\0132(.google.analytics.admin.v1alpha.Use" + + "rLinkB\003\340A\002\"\253\001\n\033BatchUpdateUserLinksReque" + + "st\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadm" + + "in.googleapis.com/UserLink\022L\n\010requests\030\002" + + " \003(\01325.google.analytics.admin.v1alpha.Up" + + "dateUserLinkRequestB\003\340A\002\"\\\n\034BatchUpdateU" + "serLinksResponse\022<\n\nuser_links\030\001 \003(\0132(.g" - + "oogle.analytics.admin.v1alpha.UserLink\022\027" - + "\n\017next_page_token\030\002 \001(\t\"~\n\025AuditUserLink" - + "sRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyt" - + "icsadmin.googleapis.com/UserLink\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\026Audit" - + "UserLinksResponse\022A\n\nuser_links\030\001 \003(\0132-." - + "google.analytics.admin.v1alpha.AuditUser" - + "Link\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\025Create" - + "UserLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022" - + "&analyticsadmin.googleapis.com/UserLink\022" - + "\034\n\017notify_new_user\030\002 \001(\010B\003\340A\001\022@\n\tuser_li" - + "nk\030\003 \001(\0132(.google.analytics.admin.v1alph" - + "a.UserLinkB\003\340A\002\"\312\001\n\033BatchCreateUserLinks" - + "Request\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyti" - + "csadmin.googleapis.com/UserLink\022\035\n\020notif" - + "y_new_users\030\002 \001(\010B\003\340A\001\022L\n\010requests\030\003 \003(\013" - + "25.google.analytics.admin.v1alpha.Create" - + "UserLinkRequestB\003\340A\002\"\\\n\034BatchCreateUserL" - + "inksResponse\022<\n\nuser_links\030\001 \003(\0132(.googl" - + "e.analytics.admin.v1alpha.UserLink\"Y\n\025Up" - + "dateUserLinkRequest\022@\n\tuser_link\030\001 \001(\0132(" - + ".google.analytics.admin.v1alpha.UserLink" - + "B\003\340A\002\"\253\001\n\033BatchUpdateUserLinksRequest\022>\n" + + "oogle.analytics.admin.v1alpha.UserLink\"U" + + "\n\025DeleteUserLinkRequest\022<\n\004name\030\001 \001(\tB.\340" + + "A\002\372A(\n&analyticsadmin.googleapis.com/Use" + + "rLink\"\253\001\n\033BatchDeleteUserLinksRequest\022>\n" + "\006parent\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.go" + "ogleapis.com/UserLink\022L\n\010requests\030\002 \003(\0132" - + "5.google.analytics.admin.v1alpha.UpdateU" - + "serLinkRequestB\003\340A\002\"\\\n\034BatchUpdateUserLi" - + "nksResponse\022<\n\nuser_links\030\001 \003(\0132(.google" - + ".analytics.admin.v1alpha.UserLink\"U\n\025Del" - + "eteUserLinkRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(" - + "\n&analyticsadmin.googleapis.com/UserLink" - + "\"\253\001\n\033BatchDeleteUserLinksRequest\022>\n\006pare" - + "nt\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googlea" - + "pis.com/UserLink\022L\n\010requests\030\002 \003(\01325.goo" - + "gle.analytics.admin.v1alpha.DeleteUserLi" - + "nkRequestB\003\340A\002\"\251\001\n\031CreateFirebaseLinkReq" - + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsa" - + "dmin.googleapis.com/FirebaseLink\022H\n\rfire" - + "base_link\030\002 \001(\0132,.google.analytics.admin" - + ".v1alpha.FirebaseLinkB\003\340A\002\"]\n\031DeleteFire" - + "baseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*a" - + "nalyticsadmin.googleapis.com/FirebaseLin" - + "k\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006parent" - + "\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapi" - + "s.com/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\"z\n\031ListFirebaseLinksRe" - + "sponse\022D\n\016firebase_links\030\001 \003(\0132,.google." - + "analytics.admin.v1alpha.FirebaseLink\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTa" - + "gRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analytic" - + "sadmin.googleapis.com/GlobalSiteTag\"\256\001\n\032" - + "CreateGoogleAdsLinkRequest\022C\n\006parent\030\001 \001" - + "(\tB3\340A\002\372A-\022+analyticsadmin.googleapis.co" - + "m/GoogleAdsLink\022K\n\017google_ads_link\030\002 \001(\013" - + "2-.google.analytics.admin.v1alpha.Google" - + "AdsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequ" - + "est\022F\n\017google_ads_link\030\001 \001(\0132-.google.an" - + "alytics.admin.v1alpha.GoogleAdsLink\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022" - + "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.go" - + "ogleapis.com/GoogleAdsLink\"\207\001\n\031ListGoogl" - + "eAdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-" - + "\022+analyticsadmin.googleapis.com/GoogleAd" - + "sLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020go" - + "ogle_ads_links\030\001 \003(\0132-.google.analytics." - + "admin.v1alpha.GoogleAdsLink\022\027\n\017next_page" - + "_token\030\002 \001(\t\"h\n\035GetDataSharingSettingsRe" - + "quest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsad" - + "min.googleapis.com/DataSharingSettings\"D" - + "\n\033ListAccountSummariesRequest\022\021\n\tpage_si" - + "ze\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAcc" - + "ountSummariesResponse\022I\n\021account_summari" - + "es\030\001 \003(\0132..google.analytics.admin.v1alph" - + "a.AccountSummary\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\206\001\n$AcknowledgeUserDataCollectionReque" - + "st\022@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analyticsa" - + "dmin.googleapis.com/Property\022\034\n\017acknowle" - + "dgement\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUserDat" - + "aCollectionResponse\"\203\004\n SearchChangeHist" - + "oryEventsRequest\022>\n\007account\030\001 \001(\tB-\340A\002\372A" - + "\'\n%analyticsadmin.googleapis.com/Account" - + "\022@\n\010property\030\002 \001(\tB.\340A\001\372A(\n&analyticsadm" - + "in.googleapis.com/Property\022U\n\rresource_t" - + "ype\030\003 \003(\01629.google.analytics.admin.v1alp" - + "ha.ChangeHistoryResourceTypeB\003\340A\001\022?\n\006act" - + "ion\030\004 \003(\0162*.google.analytics.admin.v1alp" - + "ha.ActionTypeB\003\340A\001\022\030\n\013actor_email\030\005 \003(\tB" - + "\003\340A\001\022=\n\024earliest_change_time\030\006 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\001\022;\n\022latest_ch" - + "ange_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\t \001(\tB\003\340A\001\"\217\001\n!SearchChangeHistor" - + "yEventsResponse\022Q\n\025change_history_events" - + "\030\001 \003(\01322.google.analytics.admin.v1alpha." - + "ChangeHistoryEvent\022\027\n\017next_page_token\030\002 " - + "\001(\t\"t\n#GetMeasurementProtocolSecretReque" - + "st\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin" - + ".googleapis.com/MeasurementProtocolSecre" - + "t\"\336\001\n&CreateMeasurementProtocolSecretReq" - + "uest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsa" - + "dmin.googleapis.com/MeasurementProtocolS" - + "ecret\022c\n\033measurement_protocol_secret\030\002 \001" - + "(\01329.google.analytics.admin.v1alpha.Meas" - + "urementProtocolSecretB\003\340A\002\"w\n&DeleteMeas" - + "urementProtocolSecretRequest\022M\n\004name\030\001 \001" - + "(\tB?\340A\002\372A9\n7analyticsadmin.googleapis.co" - + "m/MeasurementProtocolSecret\"\276\001\n&UpdateMe" - + "asurementProtocolSecretRequest\022c\n\033measur" - + "ement_protocol_secret\030\001 \001(\01329.google.ana" - + "lytics.admin.v1alpha.MeasurementProtocol" - + "SecretB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"\237\001\n%ListMeasurement" - + "ProtocolSecretsRequest\022O\n\006parent\030\001 \001(\tB?" - + "\340A\002\372A9\0227analyticsadmin.googleapis.com/Me" - + "asurementProtocolSecret\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n&ListMeasureme" - + "ntProtocolSecretsResponse\022_\n\034measurement" - + "_protocol_secrets\030\001 \003(\01329.google.analyti" - + "cs.admin.v1alpha.MeasurementProtocolSecr" - + "et\022\027\n\017next_page_token\030\002 \001(\t\"l\n\037GetGoogle" - + "SignalsSettingsRequest\022I\n\004name\030\001 \001(\tB;\340A" - + "\002\372A5\n3analyticsadmin.googleapis.com/Goog" - + "leSignalsSettings\"\267\001\n\"UpdateGoogleSignal" - + "sSettingsRequest\022[\n\027google_signals_setti" - + "ngs\030\001 \001(\01325.google.analytics.admin.v1alp" - + "ha.GoogleSignalsSettingsB\003\340A\002\0224\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" - + "\340A\002\"\265\001\n\034CreateConversionEventRequest\022N\n\020" - + "conversion_event\030\001 \001(\0132/.google.analytic" - + "s.admin.v1alpha.ConversionEventB\003\340A\002\022E\n\006" - + "parent\030\002 \001(\tB5\340A\002\372A/\022-analyticsadmin.goo" - + "gleapis.com/ConversionEvent\"`\n\031GetConver" - + "sionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" - + "analyticsadmin.googleapis.com/Conversion" - + "Event\"c\n\034DeleteConversionEventRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.goog" - + "leapis.com/ConversionEvent\"\213\001\n\033ListConve" - + "rsionEventsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372" - + "A/\022-analyticsadmin.googleapis.com/Conver" - + "sionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"\203\001\n\034ListConversionEventsRespons" - + "e\022J\n\021conversion_events\030\001 \003(\0132/.google.an" - + "alytics.admin.v1alpha.ConversionEvent\022\027\n" - + "\017next_page_token\030\002 \001(\t\"|\n\'GetDisplayVide" - + "o360AdvertiserLinkRequest\022Q\n\004name\030\001 \001(\tB" - + "C\340A\002\372A=\n;analyticsadmin.googleapis.com/D" - + "isplayVideo360AdvertiserLink\"\247\001\n)ListDis" - + "playVideo360AdvertiserLinksRequest\022S\n\006pa" - + "rent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin.googl" - + "eapis.com/DisplayVideo360AdvertiserLink\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260" - + "\001\n*ListDisplayVideo360AdvertiserLinksRes" - + "ponse\022i\n\"display_video_360_advertiser_li" - + "nks\030\001 \003(\0132=.google.analytics.admin.v1alp" - + "ha.DisplayVideo360AdvertiserLink\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\360\001\n*CreateDisplayVideo" - + "360AdvertiserLinkRequest\022S\n\006parent\030\001 \001(\t" - + "BC\340A\002\372A=\022;analyticsadmin.googleapis.com/" - + "DisplayVideo360AdvertiserLink\022m\n!display" - + "_video_360_advertiser_link\030\002 \001(\0132=.googl" - + "e.analytics.admin.v1alpha.DisplayVideo36" - + "0AdvertiserLinkB\003\340A\002\"\177\n*DeleteDisplayVid" - + "eo360AdvertiserLinkRequest\022Q\n\004name\030\001 \001(\t" - + "BC\340A\002\372A=\n;analyticsadmin.googleapis.com/" - + "DisplayVideo360AdvertiserLink\"\314\001\n*Update" - + "DisplayVideo360AdvertiserLinkRequest\022h\n!" - + "display_video_360_advertiser_link\030\001 \001(\0132" - + "=.google.analytics.admin.v1alpha.Display" - + "Video360AdvertiserLink\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\214\001\n" - + "/GetDisplayVideo360AdvertiserLinkProposa" - + "lRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalytic" - + "sadmin.googleapis.com/DisplayVideo360Adv" - + "ertiserLinkProposal\"\267\001\n1ListDisplayVideo" - + "360AdvertiserLinkProposalsRequest\022[\n\006par" - + "ent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.google" - + "apis.com/DisplayVideo360AdvertiserLinkPr" - + "oposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"\311\001\n2ListDisplayVideo360AdvertiserL" - + "inkProposalsResponse\022z\n+display_video_36" - + "0_advertiser_link_proposals\030\001 \003(\0132E.goog" - + "le.analytics.admin.v1alpha.DisplayVideo3" - + "60AdvertiserLinkProposal\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"\221\002\n2CreateDisplayVideo360Adver" - + "tiserLinkProposalRequest\022[\n\006parent\030\001 \001(\t" - + "BK\340A\002\372AE\022Canalyticsadmin.googleapis.com/" - + "DisplayVideo360AdvertiserLinkProposal\022~\n" - + "*display_video_360_advertiser_link_propo" - + "sal\030\002 \001(\0132E.google.analytics.admin.v1alp" - + "ha.DisplayVideo360AdvertiserLinkProposal" - + "B\003\340A\002\"\217\001\n2DeleteDisplayVideo360Advertise" - + "rLinkProposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372" - + "AE\nCanalyticsadmin.googleapis.com/Displa" - + "yVideo360AdvertiserLinkProposal\"\220\001\n3Appr" - + "oveDisplayVideo360AdvertiserLinkProposal" - + "Request\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalytics" - + "admin.googleapis.com/DisplayVideo360Adve" - + "rtiserLinkProposal\"\240\001\n4ApproveDisplayVid" - + "eo360AdvertiserLinkProposalResponse\022h\n!d" - + "isplay_video_360_advertiser_link\030\001 \001(\0132=" + + "5.google.analytics.admin.v1alpha.DeleteU" + + "serLinkRequestB\003\340A\002\"\251\001\n\031CreateFirebaseLi" + + "nkRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analy" + + "ticsadmin.googleapis.com/FirebaseLink\022H\n" + + "\rfirebase_link\030\002 \001(\0132,.google.analytics." + + "admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n\031Delet" + + "eFirebaseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" + + "A,\n*analyticsadmin.googleapis.com/Fireba" + + "seLink\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006p" + + "arent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.goog" + + "leapis.com/FirebaseLink\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListFirebaseLi" + + "nksResponse\022D\n\016firebase_links\030\001 \003(\0132,.go" + + "ogle.analytics.admin.v1alpha.FirebaseLin" + + "k\022\027\n\017next_page_token\030\002 \001(\t\"\\\n\027GetGlobalS" + + "iteTagRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+ana" + + "lyticsadmin.googleapis.com/GlobalSiteTag" + + "\"\256\001\n\032CreateGoogleAdsLinkRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleap" + + "is.com/GoogleAdsLink\022K\n\017google_ads_link\030" + + "\002 \001(\0132-.google.analytics.admin.v1alpha.G" + + "oogleAdsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLin" + + "kRequest\022F\n\017google_ads_link\030\001 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"_\n\032DeleteGoogleAdsLinkReq" + + "uest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadm" + + "in.googleapis.com/GoogleAdsLink\"\207\001\n\031List" + + "GoogleAdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340" + + "A\002\372A-\022+analyticsadmin.googleapis.com/Goo" + + "gleAdsLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"~\n\032ListGoogleAdsLinksResponse\022" + + "G\n\020google_ads_links\030\001 \003(\0132-.google.analy" + + "tics.admin.v1alpha.GoogleAdsLink\022\027\n\017next" + + "_page_token\030\002 \001(\t\"h\n\035GetDataSharingSetti" + + "ngsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyt" + + "icsadmin.googleapis.com/DataSharingSetti" + + "ngs\"D\n\033ListAccountSummariesRequest\022\021\n\tpa" + + "ge_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034Li" + + "stAccountSummariesResponse\022I\n\021account_su" + + "mmaries\030\001 \003(\0132..google.analytics.admin.v" + + "1alpha.AccountSummary\022\027\n\017next_page_token" + + "\030\002 \001(\t\"\206\001\n$AcknowledgeUserDataCollection" + + "Request\022@\n\010property\030\001 \001(\tB.\340A\002\372A(\n&analy" + + "ticsadmin.googleapis.com/Property\022\034\n\017ack" + + "nowledgement\030\002 \001(\tB\003\340A\002\"\'\n%AcknowledgeUs" + + "erDataCollectionResponse\"\203\004\n SearchChang" + + "eHistoryEventsRequest\022>\n\007account\030\001 \001(\tB-" + + "\340A\002\372A\'\n%analyticsadmin.googleapis.com/Ac" + + "count\022@\n\010property\030\002 \001(\tB.\340A\001\372A(\n&analyti" + + "csadmin.googleapis.com/Property\022U\n\rresou" + + "rce_type\030\003 \003(\01629.google.analytics.admin." + + "v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?" + + "\n\006action\030\004 \003(\0162*.google.analytics.admin." + + "v1alpha.ActionTypeB\003\340A\001\022\030\n\013actor_email\030\005" + + " \003(\tB\003\340A\001\022=\n\024earliest_change_time\030\006 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\001\022;\n\022late" + + "st_change_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001\022\026\n\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\t \001(\tB\003\340A\001\"\217\001\n!SearchChangeH" + + "istoryEventsResponse\022Q\n\025change_history_e" + + "vents\030\001 \003(\01322.google.analytics.admin.v1a" + + "lpha.ChangeHistoryEvent\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"t\n#GetMeasurementProtocolSecret" + + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" + + "admin.googleapis.com/MeasurementProtocol" + + "Secret\"\336\001\n&CreateMeasurementProtocolSecr" + + "etRequest\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analy" + + "ticsadmin.googleapis.com/MeasurementProt" + + "ocolSecret\022c\n\033measurement_protocol_secre" + + "t\030\002 \001(\01329.google.analytics.admin.v1alpha" + + ".MeasurementProtocolSecretB\003\340A\002\"w\n&Delet" + + "eMeasurementProtocolSecretRequest\022M\n\004nam" + + "e\030\001 \001(\tB?\340A\002\372A9\n7analyticsadmin.googleap" + + "is.com/MeasurementProtocolSecret\"\276\001\n&Upd" + + "ateMeasurementProtocolSecretRequest\022c\n\033m" + + "easurement_protocol_secret\030\001 \001(\01329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecretB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"\237\001\n%ListMeasur" + + "ementProtocolSecretsRequest\022O\n\006parent\030\001 " + + "\001(\tB?\340A\002\372A9\0227analyticsadmin.googleapis.c" + + "om/MeasurementProtocolSecret\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\242\001\n&ListMeas" + + "urementProtocolSecretsResponse\022_\n\034measur" + + "ement_protocol_secrets\030\001 \003(\01329.google.an" + + "alytics.admin.v1alpha.MeasurementProtoco" + + "lSecret\022\027\n\017next_page_token\030\002 \001(\t\"l\n\037GetG" + + "oogleSignalsSettingsRequest\022I\n\004name\030\001 \001(" + + "\tB;\340A\002\372A5\n3analyticsadmin.googleapis.com" + + "/GoogleSignalsSettings\"\267\001\n\"UpdateGoogleS" + + "ignalsSettingsRequest\022[\n\027google_signals_" + + "settings\030\001 \001(\01325.google.analytics.admin." + + "v1alpha.GoogleSignalsSettingsB\003\340A\002\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\"\265\001\n\034CreateConversionEventReques" + + "t\022N\n\020conversion_event\030\001 \001(\0132/.google.ana" + + "lytics.admin.v1alpha.ConversionEventB\003\340A" + + "\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/\022-analyticsadmi" + + "n.googleapis.com/ConversionEvent\"`\n\031GetC" + + "onversionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002" + + "\372A/\n-analyticsadmin.googleapis.com/Conve" + + "rsionEvent\"c\n\034DeleteConversionEventReque" + + "st\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin" + + ".googleapis.com/ConversionEvent\"\213\001\n\033List" + + "ConversionEventsRequest\022E\n\006parent\030\001 \001(\tB" + + "5\340A\002\372A/\022-analyticsadmin.googleapis.com/C" + + "onversionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"\203\001\n\034ListConversionEventsRe" + + "sponse\022J\n\021conversion_events\030\001 \003(\0132/.goog" + + "le.analytics.admin.v1alpha.ConversionEve" + + "nt\022\027\n\017next_page_token\030\002 \001(\t\"|\n\'GetDispla" + + "yVideo360AdvertiserLinkRequest\022Q\n\004name\030\001" + + " \001(\tBC\340A\002\372A=\n;analyticsadmin.googleapis." + + "com/DisplayVideo360AdvertiserLink\"\247\001\n)Li" + + "stDisplayVideo360AdvertiserLinksRequest\022" + + "S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin." + + "googleapis.com/DisplayVideo360Advertiser" + + "Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\260\001\n*ListDisplayVideo360AdvertiserLin" + + "ksResponse\022i\n\"display_video_360_advertis" + + "er_links\030\001 \003(\0132=.google.analytics.admin." + + "v1alpha.DisplayVideo360AdvertiserLink\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\360\001\n*CreateDisplay" + + "Video360AdvertiserLinkRequest\022S\n\006parent\030" + + "\001 \001(\tBC\340A\002\372A=\022;analyticsadmin.googleapis" + + ".com/DisplayVideo360AdvertiserLink\022m\n!di" + + "splay_video_360_advertiser_link\030\002 \001(\0132=." + + "google.analytics.admin.v1alpha.DisplayVi" + + "deo360AdvertiserLinkB\003\340A\002\"\177\n*DeleteDispl" + + "ayVideo360AdvertiserLinkRequest\022Q\n\004name\030" + + "\001 \001(\tBC\340A\002\372A=\n;analyticsadmin.googleapis" + + ".com/DisplayVideo360AdvertiserLink\"\314\001\n*U" + + "pdateDisplayVideo360AdvertiserLinkReques" + + "t\022h\n!display_video_360_advertiser_link\030\001" + + " \001(\0132=.google.analytics.admin.v1alpha.Di" + + "splayVideo360AdvertiserLink\0224\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"\214\001\n/GetDisplayVideo360AdvertiserLinkPr" + + "oposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCana" + + "lyticsadmin.googleapis.com/DisplayVideo3" + + "60AdvertiserLinkProposal\"\267\001\n1ListDisplay" + + "Video360AdvertiserLinkProposalsRequest\022[" + + "\n\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.g" + + "oogleapis.com/DisplayVideo360AdvertiserL" + + "inkProposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"\311\001\n2ListDisplayVideo360Advert" + + "iserLinkProposalsResponse\022z\n+display_vid" + + "eo_360_advertiser_link_proposals\030\001 \003(\0132E" + ".google.analytics.admin.v1alpha.DisplayV" - + "ideo360AdvertiserLink\"\217\001\n2CancelDisplayV" - + "ideo360AdvertiserLinkProposalRequest\022Y\n\004" - + "name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin.googl" - + "eapis.com/DisplayVideo360AdvertiserLinkP" - + "roposal\"\265\001\n\034CreateCustomDimensionRequest" - + "\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin" - + ".googleapis.com/CustomDimension\022N\n\020custo" - + "m_dimension\030\002 \001(\0132/.google.analytics.adm" - + "in.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n\034Upda" - + "teCustomDimensionRequest\022I\n\020custom_dimen" - + "sion\030\001 \001(\0132/.google.analytics.admin.v1al" - + "pha.CustomDimension\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033Li" - + "stCustomDimensionsRequest\022E\n\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com" - + "/CustomDimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\"\203\001\n\034ListCustomDimensions" - + "Response\022J\n\021custom_dimensions\030\001 \003(\0132/.go" - + "ogle.analytics.admin.v1alpha.CustomDimen" - + "sion\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035Archive" - + "CustomDimensionRequest\022C\n\004name\030\001 \001(\tB5\340A" - + "\002\372A/\n-analyticsadmin.googleapis.com/Cust" - + "omDimension\"`\n\031GetCustomDimensionRequest" - + "\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.g" - + "oogleapis.com/CustomDimension\"\251\001\n\031Create" - + "CustomMetricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002" - + "\372A,\022*analyticsadmin.googleapis.com/Custo" - + "mMetric\022H\n\rcustom_metric\030\002 \001(\0132,.google." - + "analytics.admin.v1alpha.CustomMetricB\003\340A" - + "\002\"\226\001\n\031UpdateCustomMetricRequest\022C\n\rcusto" - + "m_metric\030\001 \001(\0132,.google.analytics.admin." - + "v1alpha.CustomMetric\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030L" - + "istCustomMetricsRequest\022B\n\006parent\030\001 \001(\tB" - + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/C" - + "ustomMetric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"z\n\031ListCustomMetricsResponse\022" - + "D\n\016custom_metrics\030\001 \003(\0132,.google.analyti" - + "cs.admin.v1alpha.CustomMetric\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"^\n\032ArchiveCustomMetricReq" - + "uest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadm" - + "in.googleapis.com/CustomMetric\"Z\n\026GetCus" - + "tomMetricRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*" - + "analyticsadmin.googleapis.com/CustomMetr" - + "ic\"l\n\037GetDataRetentionSettingsRequest\022I\n" - + "\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin.goog" - + "leapis.com/DataRetentionSettings\"\267\001\n\"Upd" - + "ateDataRetentionSettingsRequest\022[\n\027data_" - + "retention_settings\030\001 \001(\01325.google.analyt" - + "ics.admin.v1alpha.DataRetentionSettingsB" - + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"\241\001\n\027CreateDataStreamR" - + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analytic" - + "sadmin.googleapis.com/DataStream\022D\n\013data" - + "_stream\030\002 \001(\0132*.google.analytics.admin.v" - + "1alpha.DataStreamB\003\340A\002\"Y\n\027DeleteDataStre" - + "amRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyti" - + "csadmin.googleapis.com/DataStream\"\220\001\n\027Up" - + "dateDataStreamRequest\022?\n\013data_stream\030\001 \001" - + "(\0132*.google.analytics.admin.v1alpha.Data" - + "Stream\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\"\201\001\n\026ListDataStreams" - + "Request\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(analyti" - + "csadmin.googleapis.com/DataStream\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027List" - + "DataStreamsResponse\022@\n\014data_streams\030\001 \003(" - + "\0132*.google.analytics.admin.v1alpha.DataS" - + "tream\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024GetDat" + + "ideo360AdvertiserLinkProposal\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"\221\002\n2CreateDisplayVideo360" + + "AdvertiserLinkProposalRequest\022[\n\006parent\030" + + "\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis" + + ".com/DisplayVideo360AdvertiserLinkPropos" + + "al\022~\n*display_video_360_advertiser_link_" + + "proposal\030\002 \001(\0132E.google.analytics.admin." + + "v1alpha.DisplayVideo360AdvertiserLinkPro" + + "posalB\003\340A\002\"\217\001\n2DeleteDisplayVideo360Adve" + + "rtiserLinkProposalRequest\022Y\n\004name\030\001 \001(\tB" + + "K\340A\002\372AE\nCanalyticsadmin.googleapis.com/D" + + "isplayVideo360AdvertiserLinkProposal\"\220\001\n" + + "3ApproveDisplayVideo360AdvertiserLinkPro" + + "posalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanal" + + "yticsadmin.googleapis.com/DisplayVideo36" + + "0AdvertiserLinkProposal\"\240\001\n4ApproveDispl" + + "ayVideo360AdvertiserLinkProposalResponse" + + "\022h\n!display_video_360_advertiser_link\030\001 " + + "\001(\0132=.google.analytics.admin.v1alpha.Dis" + + "playVideo360AdvertiserLink\"\217\001\n2CancelDis" + + "playVideo360AdvertiserLinkProposalReques" + + "t\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin." + + "googleapis.com/DisplayVideo360Advertiser" + + "LinkProposal\"\265\001\n\034CreateCustomDimensionRe" + + "quest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analytics" + + "admin.googleapis.com/CustomDimension\022N\n\020" + + "custom_dimension\030\002 \001(\0132/.google.analytic" + + "s.admin.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n" + + "\034UpdateCustomDimensionRequest\022I\n\020custom_" + + "dimension\030\001 \001(\0132/.google.analytics.admin" + + ".v1alpha.CustomDimension\0224\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\213" + + "\001\n\033ListCustomDimensionsRequest\022E\n\006parent" + + "\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.googleapi" + + "s.com/CustomDimension\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListCustomDimen" + + "sionsResponse\022J\n\021custom_dimensions\030\001 \003(\013" + + "2/.google.analytics.admin.v1alpha.Custom" + + "Dimension\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035Ar" + + "chiveCustomDimensionRequest\022C\n\004name\030\001 \001(" + + "\tB5\340A\002\372A/\n-analyticsadmin.googleapis.com" + + "/CustomDimension\"`\n\031GetCustomDimensionRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsad" + + "min.googleapis.com/CustomDimension\"\251\001\n\031C" + + "reateCustomMetricRequest\022B\n\006parent\030\001 \001(\t" + + "B2\340A\002\372A,\022*analyticsadmin.googleapis.com/" + + "CustomMetric\022H\n\rcustom_metric\030\002 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.CustomMetri" + + "cB\003\340A\002\"\226\001\n\031UpdateCustomMetricRequest\022C\n\r" + + "custom_metric\030\001 \001(\0132,.google.analytics.a" + + "dmin.v1alpha.CustomMetric\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" + + "\205\001\n\030ListCustomMetricsRequest\022B\n\006parent\030\001" + + " \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis." + + "com/CustomMetric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\"z\n\031ListCustomMetricsResp" + + "onse\022D\n\016custom_metrics\030\001 \003(\0132,.google.an" + + "alytics.admin.v1alpha.CustomMetric\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"^\n\032ArchiveCustomMetr" + + "icRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyti" + + "csadmin.googleapis.com/CustomMetric\"Z\n\026G" + + "etCustomMetricRequest\022@\n\004name\030\001 \001(\tB2\340A\002" + + "\372A,\n*analyticsadmin.googleapis.com/Custo" + + "mMetric\"l\n\037GetDataRetentionSettingsReque" + + "st\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin" + + ".googleapis.com/DataRetentionSettings\"\267\001" + + "\n\"UpdateDataRetentionSettingsRequest\022[\n\027" + + "data_retention_settings\030\001 \001(\01325.google.a" + + "nalytics.admin.v1alpha.DataRetentionSett" + + "ingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"\241\001\n\027CreateDataSt" + + "reamRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(ana" + + "lyticsadmin.googleapis.com/DataStream\022D\n" + + "\013data_stream\030\002 \001(\0132*.google.analytics.ad" + + "min.v1alpha.DataStreamB\003\340A\002\"Y\n\027DeleteDat" + "aStreamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(an" - + "alyticsadmin.googleapis.com/DataStream\"R" - + "\n\022GetAudienceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372" - + "A(\n&analyticsadmin.googleapis.com/Audien" - + "ce\"}\n\024ListAudiencesRequest\022>\n\006parent\030\001 \001" - + "(\tB.\340A\002\372A(\022&analyticsadmin.googleapis.co" - + "m/Audience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\tau" - + "diences\030\001 \003(\0132(.google.analytics.admin.v" - + "1alpha.Audience\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\230\001\n\025CreateAudienceRequest\022>\n\006parent\030\001 \001" - + "(\tB.\340A\002\372A(\022&analyticsadmin.googleapis.co" - + "m/Audience\022?\n\010audience\030\002 \001(\0132(.google.an" - + "alytics.admin.v1alpha.AudienceB\003\340A\002\"\216\001\n\025" - + "UpdateAudienceRequest\022?\n\010audience\030\001 \001(\0132" - + "(.google.analytics.admin.v1alpha.Audienc" - + "eB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\"V\n\026ArchiveAudienceR" - + "equest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&analyticsa" - + "dmin.googleapis.com/Audience\"h\n\035GetAttri" - + "butionSettingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002" - + "\372A3\n1analyticsadmin.googleapis.com/Attri" - + "butionSettings\"\260\001\n UpdateAttributionSett" - + "ingsRequest\022V\n\024attribution_settings\030\001 \001(" - + "\01323.google.analytics.admin.v1alpha.Attri" - + "butionSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\0022\314\213\001\n\025A" - + "nalyticsAdminService\022\223\001\n\nGetAccount\0221.go" - + "ogle.analytics.admin.v1alpha.GetAccountR" - + "equest\032\'.google.analytics.admin.v1alpha." - + "Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=accounts" - + "/*}\332A\004name\022\224\001\n\014ListAccounts\0223.google.ana" - + "lytics.admin.v1alpha.ListAccountsRequest" - + "\0324.google.analytics.admin.v1alpha.ListAc" - + "countsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/account" - + "s\022\210\001\n\rDeleteAccount\0224.google.analytics.a" - + "dmin.v1alpha.DeleteAccountRequest\032\026.goog" - + "le.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{nam" - + "e=accounts/*}\332A\004name\022\271\001\n\rUpdateAccount\0224" - + ".google.analytics.admin.v1alpha.UpdateAc" - + "countRequest\032\'.google.analytics.admin.v1" - + "alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{account" - + ".name=accounts/*}:\007account\332A\023account,upd" - + "ate_mask\022\314\001\n\026ProvisionAccountTicket\022=.go" - + "ogle.analytics.admin.v1alpha.ProvisionAc" - + "countTicketRequest\032>.google.analytics.ad" - + "min.v1alpha.ProvisionAccountTicketRespon" - + "se\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisionA" - + "ccountTicket:\001*\022\264\001\n\024ListAccountSummaries" - + "\022;.google.analytics.admin.v1alpha.ListAc" - + "countSummariesRequest\032<.google.analytics" - + ".admin.v1alpha.ListAccountSummariesRespo" - + "nse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230" - + "\001\n\013GetProperty\0222.google.analytics.admin." - + "v1alpha.GetPropertyRequest\032(.google.anal" - + "ytics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034/v" - + "1alpha/{name=properties/*}\332A\004name\022\234\001\n\016Li" - + "stProperties\0225.google.analytics.admin.v1" - + "alpha.ListPropertiesRequest\0326.google.ana" - + "lytics.admin.v1alpha.ListPropertiesRespo" - + "nse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016Cre" - + "ateProperty\0225.google.analytics.admin.v1a" - + "lpha.CreatePropertyRequest\032(.google.anal" - + "ytics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023/v" - + "1alpha/properties:\010property\332A\010property\022\236" - + "\001\n\016DeleteProperty\0225.google.analytics.adm" - + "in.v1alpha.DeletePropertyRequest\032(.googl" - + "e.analytics.admin.v1alpha.Property\"+\202\323\344\223" - + "\002\036*\034/v1alpha/{name=properties/*}\332A\004name\022" - + "\301\001\n\016UpdateProperty\0225.google.analytics.ad" - + "min.v1alpha.UpdatePropertyRequest\032(.goog" - + "le.analytics.admin.v1alpha.Property\"N\202\323\344" - + "\223\00212%/v1alpha/{property.name=properties/" - + "*}:\010property\332A\024property,update_mask\022\316\001\n\013", - "GetUserLink\0222.google.analytics.admin.v1a" - + "lpha.GetUserLinkRequest\032(.google.analyti" - + "cs.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1al" - + "pha/{name=accounts/*/userLinks/*}Z*\022(/v1" - + "alpha/{name=properties/*/userLinks/*}\332A\004" - + "name\022\366\001\n\021BatchGetUserLinks\0228.google.anal" - + "ytics.admin.v1alpha.BatchGetUserLinksReq" - + "uest\0329.google.analytics.admin.v1alpha.Ba" - + "tchGetUserLinksResponse\"l\202\323\344\223\002f\022//v1alph" - + "a/{parent=accounts/*}/userLinks:batchGet" - + "Z3\0221/v1alpha/{parent=properties/*}/userL" - + "inks:batchGet\022\341\001\n\rListUserLinks\0224.google" - + ".analytics.admin.v1alpha.ListUserLinksRe" - + "quest\0325.google.analytics.admin.v1alpha.L" - + "istUserLinksResponse\"c\202\323\344\223\002T\022&/v1alpha/{" - + "parent=accounts/*}/userLinksZ*\022(/v1alpha" - + "/{parent=properties/*}/userLinks\332A\006paren" - + "t\022\355\001\n\016AuditUserLinks\0225.google.analytics." - + "admin.v1alpha.AuditUserLinksRequest\0326.go" - + "ogle.analytics.admin.v1alpha.AuditUserLi" - + "nksResponse\"l\202\323\344\223\002f\",/v1alpha/{parent=ac" - + "counts/*}/userLinks:audit:\001*Z3\"./v1alpha" - + "/{parent=properties/*}/userLinks:audit:\001" - + "*\022\367\001\n\016CreateUserLink\0225.google.analytics." - + "admin.v1alpha.CreateUserLinkRequest\032(.go" - + "ogle.analytics.admin.v1alpha.UserLink\"\203\001" - + "\202\323\344\223\002j\"&/v1alpha/{parent=accounts/*}/use" - + "rLinks:\tuser_linkZ5\"(/v1alpha/{parent=pr" - + "operties/*}/userLinks:\tuser_link\332A\020paren" - + "t,user_link\022\213\002\n\024BatchCreateUserLinks\022;.g" - + "oogle.analytics.admin.v1alpha.BatchCreat" - + "eUserLinksRequest\032<.google.analytics.adm" - + "in.v1alpha.BatchCreateUserLinksResponse\"" - + "x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/us" - + "erLinks:batchCreate:\001*Z9\"4/v1alpha/{pare" - + "nt=properties/*}/userLinks:batchCreate:\001" - + "*\022\204\002\n\016UpdateUserLink\0225.google.analytics." - + "admin.v1alpha.UpdateUserLinkRequest\032(.go" - + "ogle.analytics.admin.v1alpha.UserLink\"\220\001" - + "\202\323\344\223\002~20/v1alpha/{user_link.name=account" - + "s/*/userLinks/*}:\tuser_linkZ?22/v1alpha/" - + "{user_link.name=properties/*/userLinks/*" - + "}:\tuser_link\332A\tuser_link\022\213\002\n\024BatchUpdate" - + "UserLinks\022;.google.analytics.admin.v1alp" - + "ha.BatchUpdateUserLinksRequest\032<.google." - + "analytics.admin.v1alpha.BatchUpdateUserL" - + "inksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=a" - + "ccounts/*}/userLinks:batchUpdate:\001*Z9\"4/" - + "v1alpha/{parent=properties/*}/userLinks:" - + "batchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225.goog" - + "le.analytics.admin.v1alpha.DeleteUserLin" - + "kRequest\032\026.google.protobuf.Empty\"a\202\323\344\223\002T" - + "*&/v1alpha/{name=accounts/*/userLinks/*}" - + "Z**(/v1alpha/{name=properties/*/userLink" - + "s/*}\332A\004name\022\345\001\n\024BatchDeleteUserLinks\022;.g" - + "oogle.analytics.admin.v1alpha.BatchDelet" - + "eUserLinksRequest\032\026.google.protobuf.Empt" - + "y\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/" - + "userLinks:batchDelete:\001*Z9\"4/v1alpha/{pa" - + "rent=properties/*}/userLinks:batchDelete" - + ":\001*\022\331\001\n\022CreateFirebaseLink\0229.google.anal" - + "ytics.admin.v1alpha.CreateFirebaseLinkRe" - + "quest\032,.google.analytics.admin.v1alpha.F" - + "irebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=pr" - + "operties/*}/firebaseLinks:\rfirebase_link" - + "\332A\024parent,firebase_link\022\244\001\n\022DeleteFireba" - + "seLink\0229.google.analytics.admin.v1alpha." - + "DeleteFirebaseLinkRequest\032\026.google.proto" - + "buf.Empty\";\202\323\344\223\002.*,/v1alpha/{name=proper" - + "ties/*/firebaseLinks/*}\332A\004name\022\307\001\n\021ListF" - + "irebaseLinks\0228.google.analytics.admin.v1" - + "alpha.ListFirebaseLinksRequest\0329.google." - + "analytics.admin.v1alpha.ListFirebaseLink" - + "sResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=prop" - + "erties/*}/firebaseLinks\332A\006parent\022\303\001\n\020Get" - + "GlobalSiteTag\0227.google.analytics.admin.v" - + "1alpha.GetGlobalSiteTagRequest\032-.google." - + "analytics.admin.v1alpha.GlobalSiteTag\"G\202" - + "\323\344\223\002:\0228/v1alpha/{name=properties/*/dataS" - + "treams/*/globalSiteTag}\332A\004name\022\341\001\n\023Creat" - + "eGoogleAdsLink\022:.google.analytics.admin." - + "v1alpha.CreateGoogleAdsLinkRequest\032-.goo" - + "gle.analytics.admin.v1alpha.GoogleAdsLin" - + "k\"_\202\323\344\223\002@\"-/v1alpha/{parent=properties/*" - + "}/googleAdsLinks:\017google_ads_link\332A\026pare" - + "nt,google_ads_link\022\366\001\n\023UpdateGoogleAdsLi" - + "nk\022:.google.analytics.admin.v1alpha.Upda" - + "teGoogleAdsLinkRequest\032-.google.analytic" - + "s.admin.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/" - + "v1alpha/{google_ads_link.name=properties" - + "/*/googleAdsLinks/*}:\017google_ads_link\332A\033" - + "google_ads_link,update_mask\022\247\001\n\023DeleteGo" - + "ogleAdsLink\022:.google.analytics.admin.v1a" - + "lpha.DeleteGoogleAdsLinkRequest\032\026.google" - + ".protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=" - + "properties/*/googleAdsLinks/*}\332A\004name\022\313\001" - + "\n\022ListGoogleAdsLinks\0229.google.analytics." - + "admin.v1alpha.ListGoogleAdsLinksRequest\032" - + ":.google.analytics.admin.v1alpha.ListGoo" - + "gleAdsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{p" - + "arent=properties/*}/googleAdsLinks\332A\006par" - + "ent\022\313\001\n\026GetDataSharingSettings\022=.google." - + "analytics.admin.v1alpha.GetDataSharingSe" - + "ttingsRequest\0323.google.analytics.admin.v" - + "1alpha.DataSharingSettings\"=\202\323\344\223\0020\022./v1a" - + "lpha/{name=accounts/*/dataSharingSetting" - + "s}\332A\004name\022\366\001\n\034GetMeasurementProtocolSecr" - + "et\022C.google.analytics.admin.v1alpha.GetM" - + "easurementProtocolSecretRequest\0329.google" - + ".analytics.admin.v1alpha.MeasurementProt" - + "ocolSecret\"V\202\323\344\223\002I\022G/v1alpha/{name=prope" - + "rties/*/dataStreams/*/measurementProtoco" - + "lSecrets/*}\332A\004name\022\211\002\n\036ListMeasurementPr" - + "otocolSecrets\022E.google.analytics.admin.v" - + "1alpha.ListMeasurementProtocolSecretsReq" - + "uest\032F.google.analytics.admin.v1alpha.Li" - + "stMeasurementProtocolSecretsResponse\"X\202\323" - + "\344\223\002I\022G/v1alpha/{parent=properties/*/data" - + "Streams/*}/measurementProtocolSecrets\332A\006" - + "parent\022\270\002\n\037CreateMeasurementProtocolSecr" - + "et\022F.google.analytics.admin.v1alpha.Crea" - + "teMeasurementProtocolSecretRequest\0329.goo" - + "gle.analytics.admin.v1alpha.MeasurementP" - + "rotocolSecret\"\221\001\202\323\344\223\002f\"G/v1alpha/{parent" - + "=properties/*/dataStreams/*}/measurement" - + "ProtocolSecrets:\033measurement_protocol_se" - + "cret\332A\"parent,measurement_protocol_secre" - + "t\022\331\001\n\037DeleteMeasurementProtocolSecret\022F." - + "google.analytics.admin.v1alpha.DeleteMea" - + "surementProtocolSecretRequest\032\026.google.p" - + "rotobuf.Empty\"V\202\323\344\223\002I*G/v1alpha/{name=pr" - + "operties/*/dataStreams/*/measurementProt" - + "ocolSecrets/*}\332A\004name\022\332\002\n\037UpdateMeasurem" - + "entProtocolSecret\022F.google.analytics.adm" - + "in.v1alpha.UpdateMeasurementProtocolSecr" - + "etRequest\0329.google.analytics.admin.v1alp" - + "ha.MeasurementProtocolSecret\"\263\001\202\323\344\223\002\202\0012c" - + "/v1alpha/{measurement_protocol_secret.na" + + "alyticsadmin.googleapis.com/DataStream\"\220" + + "\001\n\027UpdateDataStreamRequest\022?\n\013data_strea" + + "m\030\001 \001(\0132*.google.analytics.admin.v1alpha" + + ".DataStream\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\201\001\n\026ListDataSt" + + "reamsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(an" + + "alyticsadmin.googleapis.com/DataStream\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n" + + "\027ListDataStreamsResponse\022@\n\014data_streams" + + "\030\001 \003(\0132*.google.analytics.admin.v1alpha." + + "DataStream\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024G" + + "etDataStreamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A" + + "*\n(analyticsadmin.googleapis.com/DataStr" + + "eam\"R\n\022GetAudienceRequest\022<\n\004name\030\001 \001(\tB" + + ".\340A\002\372A(\n&analyticsadmin.googleapis.com/A" + + "udience\"}\n\024ListAudiencesRequest\022>\n\006paren" + + "t\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleap" + + "is.com/Audience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"m\n\025ListAudiencesResponse\022" + + ";\n\taudiences\030\001 \003(\0132(.google.analytics.ad" + + "min.v1alpha.Audience\022\027\n\017next_page_token\030" + + "\002 \001(\t\"\230\001\n\025CreateAudienceRequest\022>\n\006paren" + + "t\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin.googleap" + + "is.com/Audience\022?\n\010audience\030\002 \001(\0132(.goog" + + "le.analytics.admin.v1alpha.AudienceB\003\340A\002" + + "\"\216\001\n\025UpdateAudienceRequest\022?\n\010audience\030\001" + + " \001(\0132(.google.analytics.admin.v1alpha.Au" + + "dienceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"V\n\026ArchiveAudi" + + "enceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&analy" + + "ticsadmin.googleapis.com/Audience\"h\n\035Get" + + "AttributionSettingsRequest\022G\n\004name\030\001 \001(\t" + + "B9\340A\002\372A3\n1analyticsadmin.googleapis.com/" + + "AttributionSettings\"\260\001\n UpdateAttributio" + + "nSettingsRequest\022V\n\024attribution_settings" + + "\030\001 \001(\01323.google.analytics.admin.v1alpha." + + "AttributionSettingsB\003\340A\002\0224\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0022\214" + + "\215\001\n\025AnalyticsAdminService\022\223\001\n\nGetAccount" + + "\0221.google.analytics.admin.v1alpha.GetAcc" + + "ountRequest\032\'.google.analytics.admin.v1a" + + "lpha.Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=acc" + + "ounts/*}\332A\004name\022\224\001\n\014ListAccounts\0223.googl" + + "e.analytics.admin.v1alpha.ListAccountsRe" + + "quest\0324.google.analytics.admin.v1alpha.L" + + "istAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/ac" + + "counts\022\210\001\n\rDeleteAccount\0224.google.analyt" + + "ics.admin.v1alpha.DeleteAccountRequest\032\026" + + ".google.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha" + + "/{name=accounts/*}\332A\004name\022\271\001\n\rUpdateAcco" + + "unt\0224.google.analytics.admin.v1alpha.Upd" + + "ateAccountRequest\032\'.google.analytics.adm" + + "in.v1alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{ac" + + "count.name=accounts/*}:\007account\332A\023accoun" + + "t,update_mask\022\314\001\n\026ProvisionAccountTicket" + + "\022=.google.analytics.admin.v1alpha.Provis" + + "ionAccountTicketRequest\032>.google.analyti" + + "cs.admin.v1alpha.ProvisionAccountTicketR" + + "esponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:provi" + + "sionAccountTicket:\001*\022\264\001\n\024ListAccountSumm" + + "aries\022;.google.analytics.admin.v1alpha.L" + + "istAccountSummariesRequest\032<.google.anal", + "ytics.admin.v1alpha.ListAccountSummaries" + + "Response\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummar" + + "ies\022\230\001\n\013GetProperty\0222.google.analytics.a" + + "dmin.v1alpha.GetPropertyRequest\032(.google" + + ".analytics.admin.v1alpha.Property\"+\202\323\344\223\002" + + "\036\022\034/v1alpha/{name=properties/*}\332A\004name\022\234" + + "\001\n\016ListProperties\0225.google.analytics.adm" + + "in.v1alpha.ListPropertiesRequest\0326.googl" + + "e.analytics.admin.v1alpha.ListProperties" + + "Response\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001" + + "\n\016CreateProperty\0225.google.analytics.admi" + + "n.v1alpha.CreatePropertyRequest\032(.google" + + ".analytics.admin.v1alpha.Property\"0\202\323\344\223\002" + + "\037\"\023/v1alpha/properties:\010property\332A\010prope" + + "rty\022\236\001\n\016DeleteProperty\0225.google.analytic" + + "s.admin.v1alpha.DeletePropertyRequest\032(." + + "google.analytics.admin.v1alpha.Property\"" + + "+\202\323\344\223\002\036*\034/v1alpha/{name=properties/*}\332A\004" + + "name\022\301\001\n\016UpdateProperty\0225.google.analyti" + + "cs.admin.v1alpha.UpdatePropertyRequest\032(" + + ".google.analytics.admin.v1alpha.Property" + + "\"N\202\323\344\223\00212%/v1alpha/{property.name=proper" + + "ties/*}:\010property\332A\024property,update_mask" + + "\022\316\001\n\013GetUserLink\0222.google.analytics.admi" + + "n.v1alpha.GetUserLinkRequest\032(.google.an" + + "alytics.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&" + + "/v1alpha/{name=accounts/*/userLinks/*}Z*" + + "\022(/v1alpha/{name=properties/*/userLinks/" + + "*}\332A\004name\022\366\001\n\021BatchGetUserLinks\0228.google" + + ".analytics.admin.v1alpha.BatchGetUserLin" + + "ksRequest\0329.google.analytics.admin.v1alp" + + "ha.BatchGetUserLinksResponse\"l\202\323\344\223\002f\022//v" + + "1alpha/{parent=accounts/*}/userLinks:bat" + + "chGetZ3\0221/v1alpha/{parent=properties/*}/" + + "userLinks:batchGet\022\341\001\n\rListUserLinks\0224.g" + + "oogle.analytics.admin.v1alpha.ListUserLi" + + "nksRequest\0325.google.analytics.admin.v1al" + + "pha.ListUserLinksResponse\"c\202\323\344\223\002T\022&/v1al" + + "pha/{parent=accounts/*}/userLinksZ*\022(/v1" + + "alpha/{parent=properties/*}/userLinks\332A\006" + + "parent\022\355\001\n\016AuditUserLinks\0225.google.analy" + + "tics.admin.v1alpha.AuditUserLinksRequest" + + "\0326.google.analytics.admin.v1alpha.AuditU" + + "serLinksResponse\"l\202\323\344\223\002f\",/v1alpha/{pare" + + "nt=accounts/*}/userLinks:audit:\001*Z3\"./v1" + + "alpha/{parent=properties/*}/userLinks:au" + + "dit:\001*\022\367\001\n\016CreateUserLink\0225.google.analy" + + "tics.admin.v1alpha.CreateUserLinkRequest" + + "\032(.google.analytics.admin.v1alpha.UserLi" + + "nk\"\203\001\202\323\344\223\002j\"&/v1alpha/{parent=accounts/*" + + "}/userLinks:\tuser_linkZ5\"(/v1alpha/{pare" + + "nt=properties/*}/userLinks:\tuser_link\332A\020" + + "parent,user_link\022\213\002\n\024BatchCreateUserLink" + + "s\022;.google.analytics.admin.v1alpha.Batch" + + "CreateUserLinksRequest\032<.google.analytic" + + "s.admin.v1alpha.BatchCreateUserLinksResp" + + "onse\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/" + + "*}/userLinks:batchCreate:\001*Z9\"4/v1alpha/" + + "{parent=properties/*}/userLinks:batchCre" + + "ate:\001*\022\204\002\n\016UpdateUserLink\0225.google.analy" + + "tics.admin.v1alpha.UpdateUserLinkRequest" + + "\032(.google.analytics.admin.v1alpha.UserLi" + + "nk\"\220\001\202\323\344\223\002~20/v1alpha/{user_link.name=ac" + + "counts/*/userLinks/*}:\tuser_linkZ?22/v1a" + + "lpha/{user_link.name=properties/*/userLi" + + "nks/*}:\tuser_link\332A\tuser_link\022\213\002\n\024BatchU" + + "pdateUserLinks\022;.google.analytics.admin." + + "v1alpha.BatchUpdateUserLinksRequest\032<.go" + + "ogle.analytics.admin.v1alpha.BatchUpdate" + + "UserLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/{par" + + "ent=accounts/*}/userLinks:batchUpdate:\001*" + + "Z9\"4/v1alpha/{parent=properties/*}/userL" + + "inks:batchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225" + + ".google.analytics.admin.v1alpha.DeleteUs" + + "erLinkRequest\032\026.google.protobuf.Empty\"a\202" + + "\323\344\223\002T*&/v1alpha/{name=accounts/*/userLin" + + "ks/*}Z**(/v1alpha/{name=properties/*/use" + + "rLinks/*}\332A\004name\022\345\001\n\024BatchDeleteUserLink" + + "s\022;.google.analytics.admin.v1alpha.Batch" + + "DeleteUserLinksRequest\032\026.google.protobuf" + + ".Empty\"x\202\323\344\223\002r\"2/v1alpha/{parent=account" + + "s/*}/userLinks:batchDelete:\001*Z9\"4/v1alph" + + "a/{parent=properties/*}/userLinks:batchD" + + "elete:\001*\022\331\001\n\022CreateFirebaseLink\0229.google" + + ".analytics.admin.v1alpha.CreateFirebaseL" + + "inkRequest\032,.google.analytics.admin.v1al" + + "pha.FirebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{pare" + + "nt=properties/*}/firebaseLinks:\rfirebase" + + "_link\332A\024parent,firebase_link\022\244\001\n\022DeleteF" + + "irebaseLink\0229.google.analytics.admin.v1a" + + "lpha.DeleteFirebaseLinkRequest\032\026.google." + + "protobuf.Empty\";\202\323\344\223\002.*,/v1alpha/{name=p" + + "roperties/*/firebaseLinks/*}\332A\004name\022\307\001\n\021" + + "ListFirebaseLinks\0228.google.analytics.adm" + + "in.v1alpha.ListFirebaseLinksRequest\0329.go" + + "ogle.analytics.admin.v1alpha.ListFirebas" + + "eLinksResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent" + + "=properties/*}/firebaseLinks\332A\006parent\022\303\001" + + "\n\020GetGlobalSiteTag\0227.google.analytics.ad" + + "min.v1alpha.GetGlobalSiteTagRequest\032-.go" + + "ogle.analytics.admin.v1alpha.GlobalSiteT" + + "ag\"G\202\323\344\223\002:\0228/v1alpha/{name=properties/*/" + + "dataStreams/*/globalSiteTag}\332A\004name\022\341\001\n\023" + + "CreateGoogleAdsLink\022:.google.analytics.a" + + "dmin.v1alpha.CreateGoogleAdsLinkRequest\032" + + "-.google.analytics.admin.v1alpha.GoogleA" + + "dsLink\"_\202\323\344\223\002@\"-/v1alpha/{parent=propert" + + "ies/*}/googleAdsLinks:\017google_ads_link\332A" + + "\026parent,google_ads_link\022\366\001\n\023UpdateGoogle" + + "AdsLink\022:.google.analytics.admin.v1alpha" + + ".UpdateGoogleAdsLinkRequest\032-.google.ana" + + "lytics.admin.v1alpha.GoogleAdsLink\"t\202\323\344\223" + + "\002P2=/v1alpha/{google_ads_link.name=prope" + + "rties/*/googleAdsLinks/*}:\017google_ads_li" + + "nk\332A\033google_ads_link,update_mask\022\247\001\n\023Del" + + "eteGoogleAdsLink\022:.google.analytics.admi" + + "n.v1alpha.DeleteGoogleAdsLinkRequest\032\026.g" + + "oogle.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{" + + "name=properties/*/googleAdsLinks/*}\332A\004na" + + "me\022\313\001\n\022ListGoogleAdsLinks\0229.google.analy" + + "tics.admin.v1alpha.ListGoogleAdsLinksReq" + + "uest\032:.google.analytics.admin.v1alpha.Li" + + "stGoogleAdsLinksResponse\">\202\323\344\223\002/\022-/v1alp" + + "ha/{parent=properties/*}/googleAdsLinks\332" + + "A\006parent\022\313\001\n\026GetDataSharingSettings\022=.go" + + "ogle.analytics.admin.v1alpha.GetDataShar" + + "ingSettingsRequest\0323.google.analytics.ad" + + "min.v1alpha.DataSharingSettings\"=\202\323\344\223\0020\022" + + "./v1alpha/{name=accounts/*/dataSharingSe" + + "ttings}\332A\004name\022\366\001\n\034GetMeasurementProtoco" + + "lSecret\022C.google.analytics.admin.v1alpha" + + ".GetMeasurementProtocolSecretRequest\0329.g" + + "oogle.analytics.admin.v1alpha.Measuremen" + + "tProtocolSecret\"V\202\323\344\223\002I\022G/v1alpha/{name=" + + "properties/*/dataStreams/*/measurementPr" + + "otocolSecrets/*}\332A\004name\022\211\002\n\036ListMeasurem" + + "entProtocolSecrets\022E.google.analytics.ad" + + "min.v1alpha.ListMeasurementProtocolSecre" + + "tsRequest\032F.google.analytics.admin.v1alp" + + "ha.ListMeasurementProtocolSecretsRespons" + + "e\"X\202\323\344\223\002I\022G/v1alpha/{parent=properties/*" + + "/dataStreams/*}/measurementProtocolSecre" + + "ts\332A\006parent\022\270\002\n\037CreateMeasurementProtoco" + + "lSecret\022F.google.analytics.admin.v1alpha" + + ".CreateMeasurementProtocolSecretRequest\032" + + "9.google.analytics.admin.v1alpha.Measure" + + "mentProtocolSecret\"\221\001\202\323\344\223\002f\"G/v1alpha/{p" + + "arent=properties/*/dataStreams/*}/measur" + + "ementProtocolSecrets:\033measurement_protoc" + + "ol_secret\332A\"parent,measurement_protocol_" + + "secret\022\331\001\n\037DeleteMeasurementProtocolSecr" + + "et\022F.google.analytics.admin.v1alpha.Dele" + + "teMeasurementProtocolSecretRequest\032\026.goo" + + "gle.protobuf.Empty\"V\202\323\344\223\002I*G/v1alpha/{na" + "me=properties/*/dataStreams/*/measuremen" - + "tProtocolSecrets/*}:\033measurement_protoco" - + "l_secret\332A\'measurement_protocol_secret,u" - + "pdate_mask\022\367\001\n\035AcknowledgeUserDataCollec" - + "tion\022D.google.analytics.admin.v1alpha.Ac" - + "knowledgeUserDataCollectionRequest\032E.goo" - + "gle.analytics.admin.v1alpha.AcknowledgeU" - + "serDataCollectionResponse\"I\202\323\344\223\002C\">/v1al" - + "pha/{property=properties/*}:acknowledgeU" - + "serDataCollection:\001*\022\344\001\n\031SearchChangeHis" - + "toryEvents\022@.google.analytics.admin.v1al" - + "pha.SearchChangeHistoryEventsRequest\032A.g" - + "oogle.analytics.admin.v1alpha.SearchChan" - + "geHistoryEventsResponse\"B\202\323\344\223\002<\"7/v1alph" - + "a/{account=accounts/*}:searchChangeHisto" - + "ryEvents:\001*\022\325\001\n\030GetGoogleSignalsSettings" - + "\022?.google.analytics.admin.v1alpha.GetGoo" - + "gleSignalsSettingsRequest\0325.google.analy" - + "tics.admin.v1alpha.GoogleSignalsSettings" - + "\"A\202\323\344\223\0024\0222/v1alpha/{name=properties/*/go" - + "ogleSignalsSettings}\332A\004name\022\254\002\n\033UpdateGo" - + "ogleSignalsSettings\022B.google.analytics.a" - + "dmin.v1alpha.UpdateGoogleSignalsSettings" - + "Request\0325.google.analytics.admin.v1alpha" - + ".GoogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v1alph" - + "a/{google_signals_settings.name=properti" - + "es/*/googleSignalsSettings}:\027google_sign" - + "als_settings\332A#google_signals_settings,u" - + "pdate_mask\022\353\001\n\025CreateConversionEvent\022<.g" - + "oogle.analytics.admin.v1alpha.CreateConv" - + "ersionEventRequest\032/.google.analytics.ad" - + "min.v1alpha.ConversionEvent\"c\202\323\344\223\002C\"//v1" - + "alpha/{parent=properties/*}/conversionEv" - + "ents:\020conversion_event\332A\027parent,conversi" - + "on_event\022\300\001\n\022GetConversionEvent\0229.google" - + ".analytics.admin.v1alpha.GetConversionEv" - + "entRequest\032/.google.analytics.admin.v1al" - + "pha.ConversionEvent\">\202\323\344\223\0021\022//v1alpha/{n" - + "ame=properties/*/conversionEvents/*}\332A\004n" - + "ame\022\255\001\n\025DeleteConversionEvent\022<.google.a" - + "nalytics.admin.v1alpha.DeleteConversionE" - + "ventRequest\032\026.google.protobuf.Empty\">\202\323\344" - + "\223\0021*//v1alpha/{name=properties/*/convers" - + "ionEvents/*}\332A\004name\022\323\001\n\024ListConversionEv" - + "ents\022;.google.analytics.admin.v1alpha.Li" - + "stConversionEventsRequest\032<.google.analy" - + "tics.admin.v1alpha.ListConversionEventsR" - + "esponse\"@\202\323\344\223\0021\022//v1alpha/{parent=proper" - + "ties/*}/conversionEvents\332A\006parent\022\370\001\n Ge" - + "tDisplayVideo360AdvertiserLink\022G.google." - + "analytics.admin.v1alpha.GetDisplayVideo3" - + "60AdvertiserLinkRequest\032=.google.analyti" - + "cs.admin.v1alpha.DisplayVideo360Advertis" - + "erLink\"L\202\323\344\223\002?\022=/v1alpha/{name=propertie" - + "s/*/displayVideo360AdvertiserLinks/*}\332A\004" - + "name\022\213\002\n\"ListDisplayVideo360AdvertiserLi" - + "nks\022I.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinksRequest\032J" - + ".google.analytics.admin.v1alpha.ListDisp" - + "layVideo360AdvertiserLinksResponse\"N\202\323\344\223" - + "\002?\022=/v1alpha/{parent=properties/*}/displ" - + "ayVideo360AdvertiserLinks\332A\006parent\022\306\002\n#C" - + "reateDisplayVideo360AdvertiserLink\022J.goo" - + "gle.analytics.admin.v1alpha.CreateDispla" - + "yVideo360AdvertiserLinkRequest\032=.google." - + "analytics.admin.v1alpha.DisplayVideo360A" - + "dvertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{parent" - + "=properties/*}/displayVideo360Advertiser" - + "Links:!display_video_360_advertiser_link" - + "\332A(parent,display_video_360_advertiser_l" - + "ink\022\327\001\n#DeleteDisplayVideo360AdvertiserL" - + "ink\022J.google.analytics.admin.v1alpha.Del" - + "eteDisplayVideo360AdvertiserLinkRequest\032" - + "\026.google.protobuf.Empty\"L\202\323\344\223\002?*=/v1alph" - + "a/{name=properties/*/displayVideo360Adve" - + "rtiserLinks/*}\332A\004name\022\356\002\n#UpdateDisplayV" - + "ideo360AdvertiserLink\022J.google.analytics" - + ".admin.v1alpha.UpdateDisplayVideo360Adve" - + "rtiserLinkRequest\032=.google.analytics.adm" - + "in.v1alpha.DisplayVideo360AdvertiserLink" - + "\"\273\001\202\323\344\223\002\204\0012_/v1alpha/{display_video_360_" - + "advertiser_link.name=properties/*/displa" - + "yVideo360AdvertiserLinks/*}:!display_vid" - + "eo_360_advertiser_link\332A-display_video_3" - + "60_advertiser_link,update_mask\022\230\002\n(GetDi" - + "splayVideo360AdvertiserLinkProposal\022O.go" + + "tProtocolSecrets/*}\332A\004name\022\332\002\n\037UpdateMea" + + "surementProtocolSecret\022F.google.analytic" + + "s.admin.v1alpha.UpdateMeasurementProtoco" + + "lSecretRequest\0329.google.analytics.admin." + + "v1alpha.MeasurementProtocolSecret\"\263\001\202\323\344\223" + + "\002\202\0012c/v1alpha/{measurement_protocol_secr" + + "et.name=properties/*/dataStreams/*/measu" + + "rementProtocolSecrets/*}:\033measurement_pr" + + "otocol_secret\332A\'measurement_protocol_sec" + + "ret,update_mask\022\367\001\n\035AcknowledgeUserDataC" + + "ollection\022D.google.analytics.admin.v1alp" + + "ha.AcknowledgeUserDataCollectionRequest\032" + + "E.google.analytics.admin.v1alpha.Acknowl" + + "edgeUserDataCollectionResponse\"I\202\323\344\223\002C\">" + + "/v1alpha/{property=properties/*}:acknowl" + + "edgeUserDataCollection:\001*\022\344\001\n\031SearchChan" + + "geHistoryEvents\022@.google.analytics.admin" + + ".v1alpha.SearchChangeHistoryEventsReques" + + "t\032A.google.analytics.admin.v1alpha.Searc" + + "hChangeHistoryEventsResponse\"B\202\323\344\223\002<\"7/v" + + "1alpha/{account=accounts/*}:searchChange" + + "HistoryEvents:\001*\022\325\001\n\030GetGoogleSignalsSet" + + "tings\022?.google.analytics.admin.v1alpha.G" + + "etGoogleSignalsSettingsRequest\0325.google." + + "analytics.admin.v1alpha.GoogleSignalsSet" + + "tings\"A\202\323\344\223\0024\0222/v1alpha/{name=properties" + + "/*/googleSignalsSettings}\332A\004name\022\254\002\n\033Upd" + + "ateGoogleSignalsSettings\022B.google.analyt" + + "ics.admin.v1alpha.UpdateGoogleSignalsSet" + + "tingsRequest\0325.google.analytics.admin.v1" + + "alpha.GoogleSignalsSettings\"\221\001\202\323\344\223\002e2J/v" + + "1alpha/{google_signals_settings.name=pro" + + "perties/*/googleSignalsSettings}:\027google" + + "_signals_settings\332A#google_signals_setti" + + "ngs,update_mask\022\353\001\n\025CreateConversionEven" + + "t\022<.google.analytics.admin.v1alpha.Creat" + + "eConversionEventRequest\032/.google.analyti" + + "cs.admin.v1alpha.ConversionEvent\"c\202\323\344\223\002C" + + "\"//v1alpha/{parent=properties/*}/convers" + + "ionEvents:\020conversion_event\332A\027parent,con" + + "version_event\022\300\001\n\022GetConversionEvent\0229.g" + + "oogle.analytics.admin.v1alpha.GetConvers" + + "ionEventRequest\032/.google.analytics.admin" + + ".v1alpha.ConversionEvent\">\202\323\344\223\0021\022//v1alp" + + "ha/{name=properties/*/conversionEvents/*" + + "}\332A\004name\022\255\001\n\025DeleteConversionEvent\022<.goo" + + "gle.analytics.admin.v1alpha.DeleteConver" + + "sionEventRequest\032\026.google.protobuf.Empty" + + "\">\202\323\344\223\0021*//v1alpha/{name=properties/*/co" + + "nversionEvents/*}\332A\004name\022\323\001\n\024ListConvers" + + "ionEvents\022;.google.analytics.admin.v1alp" + + "ha.ListConversionEventsRequest\032<.google." + + "analytics.admin.v1alpha.ListConversionEv" + + "entsResponse\"@\202\323\344\223\0021\022//v1alpha/{parent=p" + + "roperties/*}/conversionEvents\332A\006parent\022\370" + + "\001\n GetDisplayVideo360AdvertiserLink\022G.go" + "ogle.analytics.admin.v1alpha.GetDisplayV" - + "ideo360AdvertiserLinkProposalRequest\032E.g" - + "oogle.analytics.admin.v1alpha.DisplayVid" - + "eo360AdvertiserLinkProposal\"T\202\323\344\223\002G\022E/v1" - + "alpha/{name=properties/*/displayVideo360" - + "AdvertiserLinkProposals/*}\332A\004name\022\253\002\n*Li" - + "stDisplayVideo360AdvertiserLinkProposals" - + "\022Q.google.analytics.admin.v1alpha.ListDi" - + "splayVideo360AdvertiserLinkProposalsRequ" - + "est\032R.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinkProposalsR" - + "esponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=proper" - + "ties/*}/displayVideo360AdvertiserLinkPro" - + "posals\332A\006parent\022\370\002\n+CreateDisplayVideo36" - + "0AdvertiserLinkProposal\022R.google.analyti" - + "cs.admin.v1alpha.CreateDisplayVideo360Ad" - + "vertiserLinkProposalRequest\032E.google.ana" - + "lytics.admin.v1alpha.DisplayVideo360Adve" - + "rtiserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alpha/{p" + + "ideo360AdvertiserLinkRequest\032=.google.an" + + "alytics.admin.v1alpha.DisplayVideo360Adv" + + "ertiserLink\"L\202\323\344\223\002?\022=/v1alpha/{name=prop" + + "erties/*/displayVideo360AdvertiserLinks/" + + "*}\332A\004name\022\213\002\n\"ListDisplayVideo360Adverti" + + "serLinks\022I.google.analytics.admin.v1alph" + + "a.ListDisplayVideo360AdvertiserLinksRequ" + + "est\032J.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinksResponse\"" + + "N\202\323\344\223\002?\022=/v1alpha/{parent=properties/*}/" + + "displayVideo360AdvertiserLinks\332A\006parent\022" + + "\306\002\n#CreateDisplayVideo360AdvertiserLink\022" + + "J.google.analytics.admin.v1alpha.CreateD" + + "isplayVideo360AdvertiserLinkRequest\032=.go" + + "ogle.analytics.admin.v1alpha.DisplayVide" + + "o360AdvertiserLink\"\223\001\202\323\344\223\002b\"=/v1alpha/{p" + "arent=properties/*}/displayVideo360Adver" - + "tiserLinkProposals:*display_video_360_ad" - + "vertiser_link_proposal\332A1parent,display_" - + "video_360_advertiser_link_proposal\022\357\001\n+D" - + "eleteDisplayVideo360AdvertiserLinkPropos" - + "al\022R.google.analytics.admin.v1alpha.Dele" - + "teDisplayVideo360AdvertiserLinkProposalR" - + "equest\032\026.google.protobuf.Empty\"T\202\323\344\223\002G*E" - + "/v1alpha/{name=properties/*/displayVideo" - + "360AdvertiserLinkProposals/*}\332A\004name\022\263\002\n" - + ",ApproveDisplayVideo360AdvertiserLinkPro" - + "posal\022S.google.analytics.admin.v1alpha.A" - + "pproveDisplayVideo360AdvertiserLinkPropo" - + "salRequest\032T.google.analytics.admin.v1al" + + "tiserLinks:!display_video_360_advertiser" + + "_link\332A(parent,display_video_360_adverti" + + "ser_link\022\327\001\n#DeleteDisplayVideo360Advert" + + "iserLink\022J.google.analytics.admin.v1alph" + + "a.DeleteDisplayVideo360AdvertiserLinkReq" + + "uest\032\026.google.protobuf.Empty\"L\202\323\344\223\002?*=/v" + + "1alpha/{name=properties/*/displayVideo36" + + "0AdvertiserLinks/*}\332A\004name\022\356\002\n#UpdateDis" + + "playVideo360AdvertiserLink\022J.google.anal" + + "ytics.admin.v1alpha.UpdateDisplayVideo36" + + "0AdvertiserLinkRequest\032=.google.analytic" + + "s.admin.v1alpha.DisplayVideo360Advertise" + + "rLink\"\273\001\202\323\344\223\002\204\0012_/v1alpha/{display_video" + + "_360_advertiser_link.name=properties/*/d" + + "isplayVideo360AdvertiserLinks/*}:!displa" + + "y_video_360_advertiser_link\332A-display_vi" + + "deo_360_advertiser_link,update_mask\022\230\002\n(" + + "GetDisplayVideo360AdvertiserLinkProposal" + + "\022O.google.analytics.admin.v1alpha.GetDis" + + "playVideo360AdvertiserLinkProposalReques" + + "t\032E.google.analytics.admin.v1alpha.Displ" + + "ayVideo360AdvertiserLinkProposal\"T\202\323\344\223\002G" + + "\022E/v1alpha/{name=properties/*/displayVid" + + "eo360AdvertiserLinkProposals/*}\332A\004name\022\253" + + "\002\n*ListDisplayVideo360AdvertiserLinkProp" + + "osals\022Q.google.analytics.admin.v1alpha.L" + + "istDisplayVideo360AdvertiserLinkProposal" + + "sRequest\032R.google.analytics.admin.v1alph" + + "a.ListDisplayVideo360AdvertiserLinkPropo" + + "salsResponse\"V\202\323\344\223\002G\022E/v1alpha/{parent=p" + + "roperties/*}/displayVideo360AdvertiserLi" + + "nkProposals\332A\006parent\022\370\002\n+CreateDisplayVi" + + "deo360AdvertiserLinkProposal\022R.google.an" + + "alytics.admin.v1alpha.CreateDisplayVideo" + + "360AdvertiserLinkProposalRequest\032E.googl" + + "e.analytics.admin.v1alpha.DisplayVideo36" + + "0AdvertiserLinkProposal\"\255\001\202\323\344\223\002s\"E/v1alp" + + "ha/{parent=properties/*}/displayVideo360" + + "AdvertiserLinkProposals:*display_video_3" + + "60_advertiser_link_proposal\332A1parent,dis" + + "play_video_360_advertiser_link_proposal\022" + + "\357\001\n+DeleteDisplayVideo360AdvertiserLinkP" + + "roposal\022R.google.analytics.admin.v1alpha" + + ".DeleteDisplayVideo360AdvertiserLinkProp" + + "osalRequest\032\026.google.protobuf.Empty\"T\202\323\344" + + "\223\002G*E/v1alpha/{name=properties/*/display" + + "Video360AdvertiserLinkProposals/*}\332A\004nam" + + "e\022\263\002\n,ApproveDisplayVideo360AdvertiserLi" + + "nkProposal\022S.google.analytics.admin.v1al" + "pha.ApproveDisplayVideo360AdvertiserLink" - + "ProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name" - + "=properties/*/displayVideo360AdvertiserL" - + "inkProposals/*}:approve:\001*\022\241\002\n+CancelDis" - + "playVideo360AdvertiserLinkProposal\022R.goo" - + "gle.analytics.admin.v1alpha.CancelDispla" - + "yVideo360AdvertiserLinkProposalRequest\032E" - + ".google.analytics.admin.v1alpha.DisplayV" - + "ideo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/" - + "v1alpha/{name=properties/*/displayVideo3" - + "60AdvertiserLinkProposals/*}:cancel:\001*\022\353" - + "\001\n\025CreateCustomDimension\022<.google.analyt" - + "ics.admin.v1alpha.CreateCustomDimensionR" - + "equest\032/.google.analytics.admin.v1alpha." - + "CustomDimension\"c\202\323\344\223\002C\"//v1alpha/{paren" - + "t=properties/*}/customDimensions:\020custom" - + "_dimension\332A\027parent,custom_dimension\022\201\002\n" - + "\025UpdateCustomDimension\022<.google.analytic" - + "s.admin.v1alpha.UpdateCustomDimensionReq" - + "uest\032/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\"y\202\323\344\223\002T2@/v1alpha/{custom_" - + "dimension.name=properties/*/customDimens" - + "ions/*}:\020custom_dimension\332A\034custom_dimen" - + "sion,update_mask\022\323\001\n\024ListCustomDimension" - + "s\022;.google.analytics.admin.v1alpha.ListC" - + "ustomDimensionsRequest\032<.google.analytic" - + "s.admin.v1alpha.ListCustomDimensionsResp" - + "onse\"@\202\323\344\223\0021\022//v1alpha/{parent=propertie" - + "s/*}/customDimensions\332A\006parent\022\272\001\n\026Archi" - + "veCustomDimension\022=.google.analytics.adm" - + "in.v1alpha.ArchiveCustomDimensionRequest" - + "\032\026.google.protobuf.Empty\"I\202\323\344\223\002<\"7/v1alp" - + "ha/{name=properties/*/customDimensions/*" - + "}:archive:\001*\332A\004name\022\300\001\n\022GetCustomDimensi" - + "on\0229.google.analytics.admin.v1alpha.GetC" - + "ustomDimensionRequest\032/.google.analytics" - + ".admin.v1alpha.CustomDimension\">\202\323\344\223\0021\022/" - + "/v1alpha/{name=properties/*/customDimens" - + "ions/*}\332A\004name\022\331\001\n\022CreateCustomMetric\0229." - + "google.analytics.admin.v1alpha.CreateCus" + + "ProposalRequest\032T.google.analytics.admin" + + ".v1alpha.ApproveDisplayVideo360Advertise" + + "rLinkProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/" + + "{name=properties/*/displayVideo360Advert" + + "iserLinkProposals/*}:approve:\001*\022\241\002\n+Canc" + + "elDisplayVideo360AdvertiserLinkProposal\022" + + "R.google.analytics.admin.v1alpha.CancelD" + + "isplayVideo360AdvertiserLinkProposalRequ" + + "est\032E.google.analytics.admin.v1alpha.Dis" + + "playVideo360AdvertiserLinkProposal\"W\202\323\344\223" + + "\002Q\"L/v1alpha/{name=properties/*/displayV" + + "ideo360AdvertiserLinkProposals/*}:cancel" + + ":\001*\022\353\001\n\025CreateCustomDimension\022<.google.a" + + "nalytics.admin.v1alpha.CreateCustomDimen" + + "sionRequest\032/.google.analytics.admin.v1a" + + "lpha.CustomDimension\"c\202\323\344\223\002C\"//v1alpha/{" + + "parent=properties/*}/customDimensions:\020c" + + "ustom_dimension\332A\027parent,custom_dimensio" + + "n\022\201\002\n\025UpdateCustomDimension\022<.google.ana" + + "lytics.admin.v1alpha.UpdateCustomDimensi" + + "onRequest\032/.google.analytics.admin.v1alp" + + "ha.CustomDimension\"y\202\323\344\223\002T2@/v1alpha/{cu" + + "stom_dimension.name=properties/*/customD" + + "imensions/*}:\020custom_dimension\332A\034custom_" + + "dimension,update_mask\022\323\001\n\024ListCustomDime" + + "nsions\022;.google.analytics.admin.v1alpha." + + "ListCustomDimensionsRequest\032<.google.ana" + + "lytics.admin.v1alpha.ListCustomDimension" + + "sResponse\"@\202\323\344\223\0021\022//v1alpha/{parent=prop" + + "erties/*}/customDimensions\332A\006parent\022\272\001\n\026" + + "ArchiveCustomDimension\022=.google.analytic" + + "s.admin.v1alpha.ArchiveCustomDimensionRe" + + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002<\"7/" + + "v1alpha/{name=properties/*/customDimensi" + + "ons/*}:archive:\001*\332A\004name\022\300\001\n\022GetCustomDi" + + "mension\0229.google.analytics.admin.v1alpha" + + ".GetCustomDimensionRequest\032/.google.anal" + + "ytics.admin.v1alpha.CustomDimension\">\202\323\344" + + "\223\0021\022//v1alpha/{name=properties/*/customD" + + "imensions/*}\332A\004name\022\331\001\n\022CreateCustomMetr" + + "ic\0229.google.analytics.admin.v1alpha.Crea" + + "teCustomMetricRequest\032,.google.analytics" + + ".admin.v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1" + + "alpha/{parent=properties/*}/customMetric" + + "s:\rcustom_metric\332A\024parent,custom_metric\022" + + "\354\001\n\022UpdateCustomMetric\0229.google.analytic" + + "s.admin.v1alpha.UpdateCustomMetricReques" + + "t\032,.google.analytics.admin.v1alpha.Custo" + + "mMetric\"m\202\323\344\223\002K2:/v1alpha/{custom_metric" + + ".name=properties/*/customMetrics/*}:\rcus" + + "tom_metric\332A\031custom_metric,update_mask\022\307" + + "\001\n\021ListCustomMetrics\0228.google.analytics." + + "admin.v1alpha.ListCustomMetricsRequest\0329" + + ".google.analytics.admin.v1alpha.ListCust" + + "omMetricsResponse\"=\202\323\344\223\002.\022,/v1alpha/{par" + + "ent=properties/*}/customMetrics\332A\006parent" + + "\022\261\001\n\023ArchiveCustomMetric\022:.google.analyt" + + "ics.admin.v1alpha.ArchiveCustomMetricReq" + + "uest\032\026.google.protobuf.Empty\"F\202\323\344\223\0029\"4/v" + + "1alpha/{name=properties/*/customMetrics/" + + "*}:archive:\001*\332A\004name\022\264\001\n\017GetCustomMetric" + + "\0226.google.analytics.admin.v1alpha.GetCus" + "tomMetricRequest\032,.google.analytics.admi" - + "n.v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/v1alpha" - + "/{parent=properties/*}/customMetrics:\rcu" - + "stom_metric\332A\024parent,custom_metric\022\354\001\n\022U" - + "pdateCustomMetric\0229.google.analytics.adm" - + "in.v1alpha.UpdateCustomMetricRequest\032,.g" - + "oogle.analytics.admin.v1alpha.CustomMetr" - + "ic\"m\202\323\344\223\002K2:/v1alpha/{custom_metric.name" - + "=properties/*/customMetrics/*}:\rcustom_m" - + "etric\332A\031custom_metric,update_mask\022\307\001\n\021Li" - + "stCustomMetrics\0228.google.analytics.admin" - + ".v1alpha.ListCustomMetricsRequest\0329.goog" - + "le.analytics.admin.v1alpha.ListCustomMet" - + "ricsResponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=p" - + "roperties/*}/customMetrics\332A\006parent\022\261\001\n\023" - + "ArchiveCustomMetric\022:.google.analytics.a" - + "dmin.v1alpha.ArchiveCustomMetricRequest\032" - + "\026.google.protobuf.Empty\"F\202\323\344\223\0029\"4/v1alph" - + "a/{name=properties/*/customMetrics/*}:ar" - + "chive:\001*\332A\004name\022\264\001\n\017GetCustomMetric\0226.go" - + "ogle.analytics.admin.v1alpha.GetCustomMe" - + "tricRequest\032,.google.analytics.admin.v1a" - + "lpha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha/{nam" - + "e=properties/*/customMetrics/*}\332A\004name\022\325" - + "\001\n\030GetDataRetentionSettings\022?.google.ana" - + "lytics.admin.v1alpha.GetDataRetentionSet" - + "tingsRequest\0325.google.analytics.admin.v1" - + "alpha.DataRetentionSettings\"A\202\323\344\223\0024\0222/v1" - + "alpha/{name=properties/*/dataRetentionSe" - + "ttings}\332A\004name\022\254\002\n\033UpdateDataRetentionSe" - + "ttings\022B.google.analytics.admin.v1alpha." - + "UpdateDataRetentionSettingsRequest\0325.goo" - + "gle.analytics.admin.v1alpha.DataRetentio" - + "nSettings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_reten" - + "tion_settings.name=properties/*/dataRete" - + "ntionSettings}:\027data_retention_settings\332" - + "A#data_retention_settings,update_mask\022\315\001" - + "\n\020CreateDataStream\0227.google.analytics.ad" - + "min.v1alpha.CreateDataStreamRequest\032*.go" - + "ogle.analytics.admin.v1alpha.DataStream\"" - + "T\202\323\344\223\0029\"*/v1alpha/{parent=properties/*}/" - + "dataStreams:\013data_stream\332A\022parent,data_s" - + "tream\022\236\001\n\020DeleteDataStream\0227.google.anal" - + "ytics.admin.v1alpha.DeleteDataStreamRequ" - + "est\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v1" - + "alpha/{name=properties/*/dataStreams/*}\332" - + "A\004name\022\336\001\n\020UpdateDataStream\0227.google.ana" - + "lytics.admin.v1alpha.UpdateDataStreamReq" - + "uest\032*.google.analytics.admin.v1alpha.Da" - + "taStream\"e\202\323\344\223\002E26/v1alpha/{data_stream." - + "name=properties/*/dataStreams/*}:\013data_s" - + "tream\332A\027data_stream,update_mask\022\277\001\n\017List" - + "DataStreams\0226.google.analytics.admin.v1a" - + "lpha.ListDataStreamsRequest\0327.google.ana" - + "lytics.admin.v1alpha.ListDataStreamsResp" - + "onse\";\202\323\344\223\002,\022*/v1alpha/{parent=propertie" - + "s/*}/dataStreams\332A\006parent\022\254\001\n\rGetDataStr" - + "eam\0224.google.analytics.admin.v1alpha.Get" - + "DataStreamRequest\032*.google.analytics.adm" - + "in.v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1alpha/" - + "{name=properties/*/dataStreams/*}\332A\004name" - + "\022\244\001\n\013GetAudience\0222.google.analytics.admi" - + "n.v1alpha.GetAudienceRequest\032(.google.an" - + "alytics.admin.v1alpha.Audience\"7\202\323\344\223\002*\022(" - + "/v1alpha/{name=properties/*/audiences/*}" - + "\332A\004name\022\267\001\n\rListAudiences\0224.google.analy" - + "tics.admin.v1alpha.ListAudiencesRequest\032" - + "5.google.analytics.admin.v1alpha.ListAud" - + "iencesResponse\"9\202\323\344\223\002*\022(/v1alpha/{parent" - + "=properties/*}/audiences\332A\006parent\022\277\001\n\016Cr" - + "eateAudience\0225.google.analytics.admin.v1" - + "alpha.CreateAudienceRequest\032(.google.ana" - + "lytics.admin.v1alpha.Audience\"L\202\323\344\223\0024\"(/" - + "v1alpha/{parent=properties/*}/audiences:" - + "\010audience\332A\017parent,audience\022\315\001\n\016UpdateAu" - + "dience\0225.google.analytics.admin.v1alpha." - + "UpdateAudienceRequest\032(.google.analytics" - + ".admin.v1alpha.Audience\"Z\202\323\344\223\002=21/v1alph" - + "a/{audience.name=properties/*/audiences/" - + "*}:\010audience\332A\024audience,update_mask\022\236\001\n\017" - + "ArchiveAudience\0226.google.analytics.admin" - + ".v1alpha.ArchiveAudienceRequest\032\026.google" - + ".protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=" - + "properties/*/audiences/*}:archive:\001*\022\315\001\n" - + "\026GetAttributionSettings\022=.google.analyti" - + "cs.admin.v1alpha.GetAttributionSettingsR" - + "equest\0323.google.analytics.admin.v1alpha." - + "AttributionSettings\"?\202\323\344\223\0022\0220/v1alpha/{n" - + "ame=properties/*/attributionSettings}\332A\004" - + "name\022\233\002\n\031UpdateAttributionSettings\022@.goo" - + "gle.analytics.admin.v1alpha.UpdateAttrib" - + "utionSettingsRequest\0323.google.analytics." - + "admin.v1alpha.AttributionSettings\"\206\001\202\323\344\223" - + "\002]2E/v1alpha/{attribution_settings.name=" - + "properties/*/attributionSettings}:\024attri" - + "bution_settings\332A attribution_settings,u" - + "pdate_mask\032\374\001\312A\035analyticsadmin.googleapi" - + "s.com\322A\330\001https://www.googleapis.com/auth" - + "/analytics.edit,https://www.googleapis.c" - + "om/auth/analytics.manage.users,https://w" - + "ww.googleapis.com/auth/analytics.manage." - + "users.readonly,https://www.googleapis.co" - + "m/auth/analytics.readonlyB\200\001\n\"com.google", - ".analytics.admin.v1alphaB\023AnalyticsAdmin" - + "ProtoP\001ZCgoogle.golang.org/genproto/goog" - + "leapis/analytics/admin/v1alpha;adminb\006pr" - + "oto3" + + "n.v1alpha.CustomMetric\";\202\323\344\223\002.\022,/v1alpha" + + "/{name=properties/*/customMetrics/*}\332A\004n" + + "ame\022\325\001\n\030GetDataRetentionSettings\022?.googl" + + "e.analytics.admin.v1alpha.GetDataRetenti" + + "onSettingsRequest\0325.google.analytics.adm" + + "in.v1alpha.DataRetentionSettings\"A\202\323\344\223\0024" + + "\0222/v1alpha/{name=properties/*/dataRetent" + + "ionSettings}\332A\004name\022\254\002\n\033UpdateDataRetent" + + "ionSettings\022B.google.analytics.admin.v1a" + + "lpha.UpdateDataRetentionSettingsRequest\032" + + "5.google.analytics.admin.v1alpha.DataRet" + + "entionSettings\"\221\001\202\323\344\223\002e2J/v1alpha/{data_" + + "retention_settings.name=properties/*/dat" + + "aRetentionSettings}:\027data_retention_sett" + + "ings\332A#data_retention_settings,update_ma" + + "sk\022\315\001\n\020CreateDataStream\0227.google.analyti" + + "cs.admin.v1alpha.CreateDataStreamRequest" + + "\032*.google.analytics.admin.v1alpha.DataSt" + + "ream\"T\202\323\344\223\0029\"*/v1alpha/{parent=propertie" + + "s/*}/dataStreams:\013data_stream\332A\022parent,d" + + "ata_stream\022\236\001\n\020DeleteDataStream\0227.google" + + ".analytics.admin.v1alpha.DeleteDataStrea" + + "mRequest\032\026.google.protobuf.Empty\"9\202\323\344\223\002," + + "**/v1alpha/{name=properties/*/dataStream" + + "s/*}\332A\004name\022\336\001\n\020UpdateDataStream\0227.googl" + + "e.analytics.admin.v1alpha.UpdateDataStre" + + "amRequest\032*.google.analytics.admin.v1alp" + + "ha.DataStream\"e\202\323\344\223\002E26/v1alpha/{data_st" + + "ream.name=properties/*/dataStreams/*}:\013d" + + "ata_stream\332A\027data_stream,update_mask\022\277\001\n" + + "\017ListDataStreams\0226.google.analytics.admi" + + "n.v1alpha.ListDataStreamsRequest\0327.googl" + + "e.analytics.admin.v1alpha.ListDataStream" + + "sResponse\";\202\323\344\223\002,\022*/v1alpha/{parent=prop" + + "erties/*}/dataStreams\332A\006parent\022\254\001\n\rGetDa" + + "taStream\0224.google.analytics.admin.v1alph" + + "a.GetDataStreamRequest\032*.google.analytic" + + "s.admin.v1alpha.DataStream\"9\202\323\344\223\002,\022*/v1a" + + "lpha/{name=properties/*/dataStreams/*}\332A" + + "\004name\022\244\001\n\013GetAudience\0222.google.analytics" + + ".admin.v1alpha.GetAudienceRequest\032(.goog" + + "le.analytics.admin.v1alpha.Audience\"7\202\323\344" + + "\223\002*\022(/v1alpha/{name=properties/*/audienc" + + "es/*}\332A\004name\022\267\001\n\rListAudiences\0224.google." + + "analytics.admin.v1alpha.ListAudiencesReq" + + "uest\0325.google.analytics.admin.v1alpha.Li" + + "stAudiencesResponse\"9\202\323\344\223\002*\022(/v1alpha/{p" + + "arent=properties/*}/audiences\332A\006parent\022\277" + + "\001\n\016CreateAudience\0225.google.analytics.adm" + + "in.v1alpha.CreateAudienceRequest\032(.googl" + + "e.analytics.admin.v1alpha.Audience\"L\202\323\344\223" + + "\0024\"(/v1alpha/{parent=properties/*}/audie" + + "nces:\010audience\332A\017parent,audience\022\315\001\n\016Upd" + + "ateAudience\0225.google.analytics.admin.v1a" + + "lpha.UpdateAudienceRequest\032(.google.anal" + + "ytics.admin.v1alpha.Audience\"Z\202\323\344\223\002=21/v" + + "1alpha/{audience.name=properties/*/audie" + + "nces/*}:\010audience\332A\024audience,update_mask", + "\022\236\001\n\017ArchiveAudience\0226.google.analytics." + + "admin.v1alpha.ArchiveAudienceRequest\032\026.g" + + "oogle.protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{" + + "name=properties/*/audiences/*}:archive:\001" + + "*\022\315\001\n\026GetAttributionSettings\022=.google.an" + + "alytics.admin.v1alpha.GetAttributionSett" + + "ingsRequest\0323.google.analytics.admin.v1a" + + "lpha.AttributionSettings\"?\202\323\344\223\0022\0220/v1alp" + + "ha/{name=properties/*/attributionSetting" + + "s}\332A\004name\022\233\002\n\031UpdateAttributionSettings\022" + + "@.google.analytics.admin.v1alpha.UpdateA" + + "ttributionSettingsRequest\0323.google.analy" + + "tics.admin.v1alpha.AttributionSettings\"\206" + + "\001\202\323\344\223\002]2E/v1alpha/{attribution_settings." + + "name=properties/*/attributionSettings}:\024" + + "attribution_settings\332A attribution_setti" + + "ngs,update_mask\022\275\001\n\017RunAccessReport\0226.go" + + "ogle.analytics.admin.v1alpha.RunAccessRe" + + "portRequest\0327.google.analytics.admin.v1a" + + "lpha.RunAccessReportResponse\"9\202\323\344\223\0023\"./v" + + "1alpha/{entity=properties/*}:runAccessRe" + + "port:\001*\032\374\001\312A\035analyticsadmin.googleapis.c" + + "om\322A\330\001https://www.googleapis.com/auth/an" + + "alytics.edit,https://www.googleapis.com/" + + "auth/analytics.manage.users,https://www." + + "googleapis.com/auth/analytics.manage.use" + + "rs.readonly,https://www.googleapis.com/a" + + "uth/analytics.readonlyB\200\001\n\"com.google.an" + + "alytics.admin.v1alphaB\023AnalyticsAdminPro" + + "toP\001ZCgoogle.golang.org/genproto/googlea" + + "pis/analytics/admin/v1alpha;adminb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(), com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), @@ -1255,8 +1292,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor = + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor, + new java.lang.String[] { + "Entity", + "Dimensions", + "Metrics", + "DateRanges", + "DimensionFilter", + "MetricFilter", + "Offset", + "Limit", + "TimeZone", + "OrderBys", + "ReturnEntityQuota", + }); + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor, + new java.lang.String[] { + "DimensionHeaders", "MetricHeaders", "Rows", "RowCount", "Quota", + }); + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor, @@ -1264,7 +1327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(3); internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor, @@ -1272,7 +1335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", "ShowDeleted", }); internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor, @@ -1280,7 +1343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Accounts", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor, @@ -1288,7 +1351,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor, @@ -1296,7 +1359,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor, @@ -1304,7 +1367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Account", "RedirectUri", }); internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor, @@ -1312,7 +1375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountTicketId", }); internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor, @@ -1320,7 +1383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor, @@ -1328,7 +1391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "PageSize", "PageToken", "ShowDeleted", }); internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor, @@ -1336,7 +1399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Properties", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor, @@ -1344,7 +1407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor, @@ -1352,7 +1415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", }); internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor, @@ -1360,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor, @@ -1368,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor, @@ -1376,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Names", }); internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor, @@ -1384,7 +1447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLinks", }); internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor, @@ -1392,7 +1455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor, @@ -1400,7 +1463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor, @@ -1408,7 +1471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor, @@ -1416,7 +1479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor, @@ -1424,7 +1487,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "NotifyNewUser", "UserLink", }); internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor, @@ -1432,7 +1495,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "NotifyNewUsers", "Requests", }); internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor, @@ -1440,7 +1503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLinks", }); internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor, @@ -1448,7 +1511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLink", }); internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor, @@ -1456,7 +1519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor, @@ -1464,7 +1527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLinks", }); internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor, @@ -1472,7 +1535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor, @@ -1480,7 +1543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, @@ -1488,7 +1551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirebaseLink", }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -1496,7 +1559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -1504,7 +1567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -1512,7 +1575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -1520,7 +1583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -1528,7 +1591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -1536,7 +1599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -1544,7 +1607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -1552,7 +1615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -1560,7 +1623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -1568,7 +1631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -1576,7 +1639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, @@ -1584,7 +1647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountSummaries", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, @@ -1592,13 +1655,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "Acknowledgement", }); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor, new java.lang.String[] {}); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, @@ -1614,7 +1677,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageToken", }); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, @@ -1622,7 +1685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeHistoryEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, @@ -1630,7 +1693,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, @@ -1638,7 +1701,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MeasurementProtocolSecret", }); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, @@ -1646,7 +1709,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, @@ -1654,7 +1717,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecret", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, @@ -1662,7 +1725,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, @@ -1670,7 +1733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecrets", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, @@ -1678,7 +1741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, @@ -1686,7 +1749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleSignalsSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, @@ -1694,7 +1757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvent", "Parent", }); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, @@ -1702,7 +1765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, @@ -1710,7 +1773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, @@ -1718,7 +1781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, @@ -1726,7 +1789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(60); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -1734,7 +1797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(61); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, @@ -1742,7 +1805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(62); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, @@ -1750,7 +1813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(63); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -1758,7 +1821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DisplayVideo360AdvertiserLink", }); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(64); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -1766,7 +1829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(65); internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -1774,7 +1837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(66); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -1782,7 +1845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(67); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, @@ -1790,7 +1853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(68); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, @@ -1798,7 +1861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(69); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -1806,7 +1869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DisplayVideo360AdvertiserLinkProposal", }); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(70); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -1814,7 +1877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(71); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -1822,7 +1885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(72); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, @@ -1830,7 +1893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLink", }); internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(73); internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -1838,7 +1901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(74); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, @@ -1846,7 +1909,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomDimension", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(75); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, @@ -1854,7 +1917,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimension", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(76); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, @@ -1862,7 +1925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(77); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, @@ -1870,7 +1933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimensions", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(78); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, @@ -1878,7 +1941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(79); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, @@ -1886,7 +1949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(80); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, @@ -1894,7 +1957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomMetric", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(81); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, @@ -1902,7 +1965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetric", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(82); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, @@ -1910,7 +1973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(83); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, @@ -1918,7 +1981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetrics", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(84); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, @@ -1926,7 +1989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(85); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, @@ -1934,7 +1997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(86); internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, @@ -1942,7 +2005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(87); internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, @@ -1950,7 +2013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataRetentionSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(88); internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, @@ -1958,7 +2021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DataStream", }); internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(89); internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, @@ -1966,7 +2029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(90); internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, @@ -1974,7 +2037,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStream", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(91); internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, @@ -1982,7 +2045,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(92); internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, @@ -1990,7 +2053,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(93); internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, @@ -1998,7 +2061,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(94); internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor, @@ -2006,7 +2069,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(95); internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor, @@ -2014,7 +2077,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(96); internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor, @@ -2022,7 +2085,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audiences", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(97); internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor, @@ -2030,7 +2093,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Audience", }); internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(98); internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor, @@ -2038,7 +2101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audience", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(99); internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor, @@ -2046,7 +2109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(100); internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor, @@ -2054,7 +2117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(101); internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor, @@ -2071,6 +2134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(); com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java new file mode 100644 index 000000000000..62678e6b0f6d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java @@ -0,0 +1,806 @@ +/* + * 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/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * To represent a number.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} + */ +public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.NumericValue) + NumericValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericValue.newBuilder() to construct. + private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NumericValue( + 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 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.NumericValue.class, + com.google.analytics.admin.v1alpha.NumericValue.Builder.class); + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT64_VALUE(1), + DOUBLE_VALUE(2), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return INT64_VALUE; + case 2: + return DOUBLE_VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int INT64_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + + 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 (oneValueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneValueCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) oneValue_)); + } + 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.NumericValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.NumericValue other = + (com.google.analytics.admin.v1alpha.NumericValue) obj; + + if (!getOneValueCase().equals(other.getOneValueCase())) return false; + switch (oneValueCase_) { + case 1: + if (getInt64Value() != other.getInt64Value()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (oneValueCase_) { + case 1: + hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.NumericValue 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.NumericValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.NumericValue 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.NumericValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.NumericValue 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.NumericValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.NumericValue 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.NumericValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.NumericValue 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.NumericValue 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.NumericValue 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.NumericValue 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; + } + /** + * + * + *
+   * To represent a number.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.NumericValue) + com.google.analytics.admin.v1alpha.NumericValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.NumericValue.class, + com.google.analytics.admin.v1alpha.NumericValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.NumericValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + oneValueCase_ = 0; + oneValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue build() { + com.google.analytics.admin.v1alpha.NumericValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue buildPartial() { + com.google.analytics.admin.v1alpha.NumericValue result = + new com.google.analytics.admin.v1alpha.NumericValue(this); + if (oneValueCase_ == 1) { + result.oneValue_ = oneValue_; + } + if (oneValueCase_ == 2) { + result.oneValue_ = oneValue_; + } + result.oneValueCase_ = oneValueCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.NumericValue) { + return mergeFrom((com.google.analytics.admin.v1alpha.NumericValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.NumericValue other) { + if (other == com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) + return this; + switch (other.getOneValueCase()) { + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case ONEVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.NumericValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.NumericValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public Builder clearOneValue() { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + return this; + } + + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + oneValueCase_ = 1; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (oneValueCase_ == 1) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + oneValueCase_ = 2; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (oneValueCase_ == 2) { + oneValueCase_ = 0; + oneValue_ = null; + 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.NumericValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.NumericValue) + private static final com.google.analytics.admin.v1alpha.NumericValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.NumericValue(); + } + + public static com.google.analytics.admin.v1alpha.NumericValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NumericValue(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java new file mode 100644 index 000000000000..c2e942f112d5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface NumericValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.NumericValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + long getInt64Value(); + + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + public com.google.analytics.admin.v1alpha.NumericValue.OneValueCase getOneValueCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java new file mode 100644 index 000000000000..5b4b2ce54386 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java @@ -0,0 +1,3968 @@ +/* + * 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; + +/** + * + * + *
+ * The request for a Data Access Record Report.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} + */ +public final class RunAccessReportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) + RunAccessReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAccessReportRequest.newBuilder() to construct. + private RunAccessReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAccessReportRequest() { + entity_ = ""; + dimensions_ = java.util.Collections.emptyList(); + metrics_ = java.util.Collections.emptyList(); + dateRanges_ = java.util.Collections.emptyList(); + timeZone_ = ""; + orderBys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAccessReportRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunAccessReportRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + entity_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dimensions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dimensions_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDimension.parser(), + extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metrics_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + metrics_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessMetric.parser(), extensionRegistry)); + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + dateRanges_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + dateRanges_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDateRange.parser(), + extensionRegistry)); + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder subBuilder = null; + if (dimensionFilter_ != null) { + subBuilder = dimensionFilter_.toBuilder(); + } + dimensionFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dimensionFilter_); + dimensionFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder subBuilder = null; + if (metricFilter_ != null) { + subBuilder = metricFilter_.toBuilder(); + } + metricFilter_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metricFilter_); + metricFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + offset_ = input.readInt64(); + break; + } + case 64: + { + limit_ = input.readInt64(); + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + timeZone_ = s; + break; + } + case 82: + { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { + orderBys_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + orderBys_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessOrderBy.parser(), + extensionRegistry)); + break; + } + case 88: + { + returnEntityQuota_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + } + if (((mutable_bitField0_ & 0x00000008) != 0)) { + orderBys_ = java.util.Collections.unmodifiableList(orderBys_); + } + 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_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, + com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); + } + + public static final int ENTITY_FIELD_NUMBER = 1; + private volatile java.lang.Object entity_; + /** + * + * + *
+   * The Data Access Report is requested for this property.
+   * For example if "123" is your GA4 property ID, then entity should be
+   * "properties/123".
+   * 
+ * + * string entity = 1; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + 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(); + entity_ = s; + return s; + } + } + /** + * + * + *
+   * The Data Access Report is requested for this property.
+   * For example if "123" is your GA4 property ID, then entity should be
+   * "properties/123".
+   * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONS_FIELD_NUMBER = 2; + private java.util.List dimensions_; + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public java.util.List getDimensionsList() { + return dimensions_; + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public java.util.List + getDimensionsOrBuilderList() { + return dimensions_; + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public int getDimensionsCount() { + return dimensions_.size(); + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { + return dimensions_.get(index); + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( + int index) { + return dimensions_.get(index); + } + + public static final int METRICS_FIELD_NUMBER = 3; + private java.util.List metrics_; + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int DATE_RANGES_FIELD_NUMBER = 4; + private java.util.List dateRanges_; + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public java.util.List getDateRangesList() { + return dateRanges_; + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public java.util.List + getDateRangesOrBuilderList() { + return dateRanges_; + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public int getDateRangesCount() { + return dateRanges_.size(); + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { + return dateRanges_.get(index); + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( + int index) { + return dateRanges_.get(index); + } + + public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; + /** + * + * + *
+   * Dimension filters allow you to restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionFilter() { + return dimensionFilter_ != null; + } + /** + * + * + *
+   * Dimension filters allow you to restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + /** + * + * + *
+   * Dimension filters allow you to restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + return getDimensionFilter(); + } + + public static final int METRIC_FILTER_FIELD_NUMBER = 6; + private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + @java.lang.Override + public boolean hasMetricFilter() { + return metricFilter_ != null; + } + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getMetricFilterOrBuilder() { + return getMetricFilter(); + } + + public static final int OFFSET_FIELD_NUMBER = 7; + private long offset_; + /** + * + * + *
+   * The row count of the start row. The first row is counted as row 0. If
+   * offset is unspecified, it is treated as 0. If offset is zero, then this
+   * method will return the first page of results with `limit` entries.
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int LIMIT_FIELD_NUMBER = 8; + private long limit_; + /** + * + * + *
+   * The number of rows to return. If unspecified, 10,000 rows are returned. The
+   * API returns a maximum of 100,000 rows per request, no matter how many you
+   * ask for. `limit` must be positive.
+   * The API may return fewer rows than the requested `limit`, if there aren't
+   * as many remaining rows as the `limit`. For instance, there are fewer than
+   * 300 possible values for the dimension `country`, so when reporting on only
+   * `country`, you can't get more than 300 rows, even if you set `limit` to a
+   * higher value.
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 9; + private volatile java.lang.Object timeZone_; + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + 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(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BYS_FIELD_NUMBER = 10; + private java.util.List orderBys_; + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public java.util.List getOrderBysList() { + return orderBys_; + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public java.util.List + getOrderBysOrBuilderList() { + return orderBys_; + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public int getOrderBysCount() { + return orderBys_.size(); + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { + return orderBys_.get(index); + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder(int index) { + return orderBys_.get(index); + } + + public static final int RETURN_ENTITY_QUOTA_FIELD_NUMBER = 11; + private boolean returnEntityQuota_; + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [AccessQuota](#AccessQuota).
+   * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + @java.lang.Override + public boolean getReturnEntityQuota() { + return returnEntityQuota_; + } + + 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(entity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); + } + for (int i = 0; i < dimensions_.size(); i++) { + output.writeMessage(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + output.writeMessage(4, dateRanges_.get(i)); + } + if (dimensionFilter_ != null) { + output.writeMessage(5, getDimensionFilter()); + } + if (metricFilter_ != null) { + output.writeMessage(6, getMetricFilter()); + } + if (offset_ != 0L) { + output.writeInt64(7, offset_); + } + if (limit_ != 0L) { + output.writeInt64(8, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeZone_); + } + for (int i = 0; i < orderBys_.size(); i++) { + output.writeMessage(10, orderBys_.get(i)); + } + if (returnEntityQuota_ != false) { + output.writeBool(11, returnEntityQuota_); + } + 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(entity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_); + } + for (int i = 0; i < dimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dateRanges_.get(i)); + } + if (dimensionFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDimensionFilter()); + } + if (metricFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetricFilter()); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, offset_); + } + if (limit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timeZone_); + } + for (int i = 0; i < orderBys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); + } + if (returnEntityQuota_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnEntityQuota_); + } + 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.RunAccessReportRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.RunAccessReportRequest other = + (com.google.analytics.admin.v1alpha.RunAccessReportRequest) obj; + + if (!getEntity().equals(other.getEntity())) return false; + if (!getDimensionsList().equals(other.getDimensionsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getDateRangesList().equals(other.getDateRangesList())) return false; + if (hasDimensionFilter() != other.hasDimensionFilter()) return false; + if (hasDimensionFilter()) { + if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; + } + if (hasMetricFilter() != other.hasMetricFilter()) return false; + if (hasMetricFilter()) { + if (!getMetricFilter().equals(other.getMetricFilter())) return false; + } + if (getOffset() != other.getOffset()) return false; + if (getLimit() != other.getLimit()) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getOrderBysList().equals(other.getOrderBysList())) return false; + if (getReturnEntityQuota() != other.getReturnEntityQuota()) 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) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + if (getDimensionsCount() > 0) { + hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionsList().hashCode(); + } + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getDateRangesCount() > 0) { + hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDateRangesList().hashCode(); + } + if (hasDimensionFilter()) { + hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilter().hashCode(); + } + if (hasMetricFilter()) { + hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getMetricFilter().hashCode(); + } + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (getOrderBysCount() > 0) { + hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; + hash = (53 * hash) + getOrderBysList().hashCode(); + } + hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEntityQuota()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest 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.RunAccessReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest 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.RunAccessReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest 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.RunAccessReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest 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.RunAccessReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest 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.RunAccessReportRequest 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.RunAccessReportRequest 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.RunAccessReportRequest 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; + } + /** + * + * + *
+   * The request for a Data Access Record Report.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) + com.google.analytics.admin.v1alpha.RunAccessReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, + com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.RunAccessReportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDimensionsFieldBuilder(); + getMetricsFieldBuilder(); + getDateRangesFieldBuilder(); + getOrderBysFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + entity_ = ""; + + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dimensionsBuilder_.clear(); + } + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + metricsBuilder_.clear(); + } + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + dateRangesBuilder_.clear(); + } + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = null; + } else { + dimensionFilter_ = null; + dimensionFilterBuilder_ = null; + } + if (metricFilterBuilder_ == null) { + metricFilter_ = null; + } else { + metricFilter_ = null; + metricFilterBuilder_ = null; + } + offset_ = 0L; + + limit_ = 0L; + + timeZone_ = ""; + + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + orderBysBuilder_.clear(); + } + returnEntityQuota_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest build() { + com.google.analytics.admin.v1alpha.RunAccessReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest buildPartial() { + com.google.analytics.admin.v1alpha.RunAccessReportRequest result = + new com.google.analytics.admin.v1alpha.RunAccessReportRequest(this); + int from_bitField0_ = bitField0_; + result.entity_ = entity_; + if (dimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensions_ = dimensions_; + } else { + result.dimensions_ = dimensionsBuilder_.build(); + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (dateRangesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.dateRanges_ = dateRanges_; + } else { + result.dateRanges_ = dateRangesBuilder_.build(); + } + if (dimensionFilterBuilder_ == null) { + result.dimensionFilter_ = dimensionFilter_; + } else { + result.dimensionFilter_ = dimensionFilterBuilder_.build(); + } + if (metricFilterBuilder_ == null) { + result.metricFilter_ = metricFilter_; + } else { + result.metricFilter_ = metricFilterBuilder_.build(); + } + result.offset_ = offset_; + result.limit_ = limit_; + result.timeZone_ = timeZone_; + if (orderBysBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + orderBys_ = java.util.Collections.unmodifiableList(orderBys_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.orderBys_ = orderBys_; + } else { + result.orderBys_ = orderBysBuilder_.build(); + } + result.returnEntityQuota_ = returnEntityQuota_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportRequest other) { + if (other == com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance()) + return this; + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + onChanged(); + } + if (dimensionsBuilder_ == null) { + if (!other.dimensions_.isEmpty()) { + if (dimensions_.isEmpty()) { + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionsIsMutable(); + dimensions_.addAll(other.dimensions_); + } + onChanged(); + } + } else { + if (!other.dimensions_.isEmpty()) { + if (dimensionsBuilder_.isEmpty()) { + dimensionsBuilder_.dispose(); + dimensionsBuilder_ = null; + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionsFieldBuilder() + : null; + } else { + dimensionsBuilder_.addAllMessages(other.dimensions_); + } + } + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000002); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (dateRangesBuilder_ == null) { + if (!other.dateRanges_.isEmpty()) { + if (dateRanges_.isEmpty()) { + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDateRangesIsMutable(); + dateRanges_.addAll(other.dateRanges_); + } + onChanged(); + } + } else { + if (!other.dateRanges_.isEmpty()) { + if (dateRangesBuilder_.isEmpty()) { + dateRangesBuilder_.dispose(); + dateRangesBuilder_ = null; + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000004); + dateRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDateRangesFieldBuilder() + : null; + } else { + dateRangesBuilder_.addAllMessages(other.dateRanges_); + } + } + } + if (other.hasDimensionFilter()) { + mergeDimensionFilter(other.getDimensionFilter()); + } + if (other.hasMetricFilter()) { + mergeMetricFilter(other.getMetricFilter()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getLimit() != 0L) { + setLimit(other.getLimit()); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + onChanged(); + } + if (orderBysBuilder_ == null) { + if (!other.orderBys_.isEmpty()) { + if (orderBys_.isEmpty()) { + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureOrderBysIsMutable(); + orderBys_.addAll(other.orderBys_); + } + onChanged(); + } + } else { + if (!other.orderBys_.isEmpty()) { + if (orderBysBuilder_.isEmpty()) { + orderBysBuilder_.dispose(); + orderBysBuilder_ = null; + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000008); + orderBysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrderBysFieldBuilder() + : null; + } else { + orderBysBuilder_.addAllMessages(other.orderBys_); + } + } + } + if (other.getReturnEntityQuota() != false) { + setReturnEntityQuota(other.getReturnEntityQuota()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.RunAccessReportRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.RunAccessReportRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object entity_ = ""; + /** + * + * + *
+     * The Data Access Report is requested for this property.
+     * For example if "123" is your GA4 property ID, then entity should be
+     * "properties/123".
+     * 
+ * + * string entity = 1; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Data Access Report is requested for this property.
+     * For example if "123" is your GA4 property ID, then entity should be
+     * "properties/123".
+     * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Data Access Report is requested for this property.
+     * For example if "123" is your GA4 property ID, then entity should be
+     * "properties/123".
+     * 
+ * + * string entity = 1; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + entity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The Data Access Report is requested for this property.
+     * For example if "123" is your GA4 property ID, then entity should be
+     * "properties/123".
+     * 
+ * + * string entity = 1; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + + entity_ = getDefaultInstance().getEntity(); + onChanged(); + return this; + } + /** + * + * + *
+     * The Data Access Report is requested for this property.
+     * For example if "123" is your GA4 property ID, then entity should be
+     * "properties/123".
+     * 
+ * + * string entity = 1; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + entity_ = value; + onChanged(); + return this; + } + + private java.util.List dimensions_ = + java.util.Collections.emptyList(); + + private void ensureDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensions_ = + new java.util.ArrayList( + dimensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimension, + com.google.analytics.admin.v1alpha.AccessDimension.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> + dimensionsBuilder_; + + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public java.util.List getDimensionsList() { + if (dimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensions_); + } else { + return dimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public int getDimensionsCount() { + if (dimensionsBuilder_ == null) { + return dimensions_.size(); + } else { + return dimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.set(index, value); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions(com.google.analytics.admin.v1alpha.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(index, value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addAllDimensions( + java.lang.Iterable values) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); + onChanged(); + } else { + dimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder clearDimensions() { + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder removeDimensions(int index) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.remove(index); + onChanged(); + } else { + dimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension.Builder getDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( + int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public java.util.List + getDimensionsOrBuilderList() { + if (dimensionsBuilder_ != null) { + return dimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensions_); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder() { + return getDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public java.util.List + getDimensionsBuilderList() { + return getDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimension, + com.google.analytics.admin.v1alpha.AccessDimension.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> + getDimensionsFieldBuilder() { + if (dimensionsBuilder_ == null) { + dimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimension, + com.google.analytics.admin.v1alpha.AccessDimension.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder>( + dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dimensions_ = null; + } + return dimensionsBuilder_; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetric, + com.google.analytics.admin.v1alpha.AccessMetric.Builder, + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder setMetrics(int index, com.google.analytics.admin.v1alpha.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics(com.google.analytics.admin.v1alpha.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics(int index, com.google.analytics.admin.v1alpha.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics( + com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric.Builder getMetricsBuilder(int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetric, + com.google.analytics.admin.v1alpha.AccessMetric.Builder, + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetric, + com.google.analytics.admin.v1alpha.AccessMetric.Builder, + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List dateRanges_ = + java.util.Collections.emptyList(); + + private void ensureDateRangesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + dateRanges_ = + new java.util.ArrayList( + dateRanges_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDateRange, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder, + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> + dateRangesBuilder_; + + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public java.util.List getDateRangesList() { + if (dateRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dateRanges_); + } else { + return dateRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public int getDateRangesCount() { + if (dateRangesBuilder_ == null) { + return dateRanges_.size(); + } else { + return dateRangesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder setDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.set(index, value); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder setDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges(com.google.analytics.admin.v1alpha.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(index, value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addAllDateRanges( + java.lang.Iterable values) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); + onChanged(); + } else { + dateRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder clearDateRanges() { + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + dateRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder removeDateRanges(int index) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.remove(index); + onChanged(); + } else { + dateRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange.Builder getDateRangesBuilder( + int index) { + return getDateRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( + int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public java.util.List + getDateRangesOrBuilderList() { + if (dateRangesBuilder_ != null) { + return dateRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dateRanges_); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder() { + return getDateRangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder( + int index) { + return getDateRangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public java.util.List + getDateRangesBuilderList() { + return getDateRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDateRange, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder, + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> + getDateRangesFieldBuilder() { + if (dateRangesBuilder_ == null) { + dateRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDateRange, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder, + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder>( + dateRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + dateRanges_ = null; + } + return dateRangesBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + dimensionFilterBuilder_; + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + public boolean hasDimensionFilter() { + return dimensionFilterBuilder_ != null || dimensionFilter_ != null; + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } else { + return dimensionFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder setDimensionFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dimensionFilter_ = value; + onChanged(); + } else { + dimensionFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder setDimensionFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = builderForValue.build(); + onChanged(); + } else { + dimensionFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder mergeDimensionFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (dimensionFilter_ != null) { + dimensionFilter_ = + com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder(dimensionFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + dimensionFilter_ = value; + } + onChanged(); + } else { + dimensionFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder clearDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = null; + onChanged(); + } else { + dimensionFilter_ = null; + dimensionFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + getDimensionFilterBuilder() { + + onChanged(); + return getDimensionFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + if (dimensionFilterBuilder_ != null) { + return dimensionFilterBuilder_.getMessageOrBuilder(); + } else { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + } + /** + * + * + *
+     * Dimension filters allow you to restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getDimensionFilterFieldBuilder() { + if (dimensionFilterBuilder_ == null) { + dimensionFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + getDimensionFilter(), getParentForChildren(), isClean()); + dimensionFilter_ = null; + } + return dimensionFilterBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + metricFilterBuilder_; + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + public boolean hasMetricFilter() { + return metricFilterBuilder_ != null || metricFilter_ != null; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { + if (metricFilterBuilder_ == null) { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } else { + return metricFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder setMetricFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (metricFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricFilter_ = value; + onChanged(); + } else { + metricFilterBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder setMetricFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (metricFilterBuilder_ == null) { + metricFilter_ = builderForValue.build(); + onChanged(); + } else { + metricFilterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder mergeMetricFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (metricFilterBuilder_ == null) { + if (metricFilter_ != null) { + metricFilter_ = + com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder(metricFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + metricFilter_ = value; + } + onChanged(); + } else { + metricFilterBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder clearMetricFilter() { + if (metricFilterBuilder_ == null) { + metricFilter_ = null; + onChanged(); + } else { + metricFilter_ = null; + metricFilterBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + getMetricFilterBuilder() { + + onChanged(); + return getMetricFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getMetricFilterOrBuilder() { + if (metricFilterBuilder_ != null) { + return metricFilterBuilder_.getMessageOrBuilder(); + } else { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getMetricFilterFieldBuilder() { + if (metricFilterBuilder_ == null) { + metricFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + getMetricFilter(), getParentForChildren(), isClean()); + metricFilter_ = null; + } + return metricFilterBuilder_; + } + + private long offset_; + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + + offset_ = 0L; + onChanged(); + return this; + } + + private long limit_; + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + + limit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + + limit_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + timeZone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + + timeZone_ = getDefaultInstance().getTimeZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + timeZone_ = value; + onChanged(); + return this; + } + + private java.util.List orderBys_ = + java.util.Collections.emptyList(); + + private void ensureOrderBysIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + orderBys_ = + new java.util.ArrayList(orderBys_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> + orderBysBuilder_; + + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public java.util.List getOrderBysList() { + if (orderBysBuilder_ == null) { + return java.util.Collections.unmodifiableList(orderBys_); + } else { + return orderBysBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public int getOrderBysCount() { + if (orderBysBuilder_ == null) { + return orderBys_.size(); + } else { + return orderBysBuilder_.getCount(); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder setOrderBys(int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.set(index, value); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder setOrderBys( + int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.set(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys(com.google.analytics.admin.v1alpha.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(value); + onChanged(); + } else { + orderBysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys(int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(index, value); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys( + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys( + int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addAllOrderBys( + java.lang.Iterable values) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); + onChanged(); + } else { + orderBysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder clearOrderBys() { + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + orderBysBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder removeOrderBys(int index) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.remove(index); + onChanged(); + } else { + orderBysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder getOrderBysBuilder(int index) { + return getOrderBysFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder( + int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public java.util.List + getOrderBysOrBuilderList() { + if (orderBysBuilder_ != null) { + return orderBysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orderBys_); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder() { + return getOrderBysFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder(int index) { + return getOrderBysFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public java.util.List + getOrderBysBuilderList() { + return getOrderBysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> + getOrderBysFieldBuilder() { + if (orderBysBuilder_ == null) { + orderBysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder>( + orderBys_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + orderBys_ = null; + } + return orderBysBuilder_; + } + + private boolean returnEntityQuota_; + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota).
+     * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + @java.lang.Override + public boolean getReturnEntityQuota() { + return returnEntityQuota_; + } + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota).
+     * 
+ * + * bool return_entity_quota = 11; + * + * @param value The returnEntityQuota to set. + * @return This builder for chaining. + */ + public Builder setReturnEntityQuota(boolean value) { + + returnEntityQuota_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota).
+     * 
+ * + * bool return_entity_quota = 11; + * + * @return This builder for chaining. + */ + public Builder clearReturnEntityQuota() { + + returnEntityQuota_ = false; + 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.RunAccessReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) + private static final com.google.analytics.admin.v1alpha.RunAccessReportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportRequest(); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAccessReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAccessReportRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java new file mode 100644 index 000000000000..a5181e0abd9b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java @@ -0,0 +1,471 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface RunAccessReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Data Access Report is requested for this property.
+   * For example if "123" is your GA4 property ID, then entity should be
+   * "properties/123".
+   * 
+ * + * string entity = 1; + * + * @return The entity. + */ + java.lang.String getEntity(); + /** + * + * + *
+   * The Data Access Report is requested for this property.
+   * For example if "123" is your GA4 property ID, then entity should be
+   * "properties/123".
+   * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); + + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + java.util.List getDimensionsList(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + int getDimensionsCount(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + java.util.List + getDimensionsOrBuilderList(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder(int index); + + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + int getMetricsCount(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + java.util.List getDateRangesList(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + int getDateRangesCount(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + java.util.List + getDateRangesOrBuilderList(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder(int index); + + /** + * + * + *
+   * Dimension filters allow you to restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + boolean hasDimensionFilter(); + /** + * + * + *
+   * Dimension filters allow you to restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter(); + /** + * + * + *
+   * Dimension filters allow you to restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder(); + + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + boolean hasMetricFilter(); + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter(); + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder(); + + /** + * + * + *
+   * The row count of the start row. The first row is counted as row 0. If
+   * offset is unspecified, it is treated as 0. If offset is zero, then this
+   * method will return the first page of results with `limit` entries.
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
+   * The number of rows to return. If unspecified, 10,000 rows are returned. The
+   * API returns a maximum of 100,000 rows per request, no matter how many you
+   * ask for. `limit` must be positive.
+   * The API may return fewer rows than the requested `limit`, if there aren't
+   * as many remaining rows as the `limit`. For instance, there are fewer than
+   * 300 possible values for the dimension `country`, so when reporting on only
+   * `country`, you can't get more than 300 rows, even if you set `limit` to a
+   * higher value.
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + long getLimit(); + + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + java.util.List getOrderBysList(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + int getOrderBysCount(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + java.util.List + getOrderBysOrBuilderList(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder(int index); + + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [AccessQuota](#AccessQuota).
+   * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + boolean getReturnEntityQuota(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java new file mode 100644 index 000000000000..359cddaac9ed --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java @@ -0,0 +1,2478 @@ +/* + * 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; + +/** + * + * + *
+ * The customized Data Access Record Report response.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} + */ +public final class RunAccessReportResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) + RunAccessReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAccessReportResponse.newBuilder() to construct. + private RunAccessReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAccessReportResponse() { + dimensionHeaders_ = java.util.Collections.emptyList(); + metricHeaders_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAccessReportResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunAccessReportResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AccessDimensionHeader>(); + mutable_bitField0_ |= 0x00000001; + } + dimensionHeaders_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AccessMetricHeader>(); + mutable_bitField0_ |= 0x00000002; + } + metricHeaders_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessMetricHeader.parser(), + extensionRegistry)); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + rows_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + rows_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.AccessRow.parser(), extensionRegistry)); + break; + } + case 32: + { + rowCount_ = input.readInt32(); + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.AccessQuota.Builder subBuilder = null; + if (quota_ != null) { + subBuilder = quota_.toBuilder(); + } + quota_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessQuota.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(quota_); + quota_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + } + 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_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, + com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); + } + + public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; + private java.util.List + dimensionHeaders_; + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionHeadersList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionHeadersOrBuilderList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public int getDimensionHeadersCount() { + return dimensionHeaders_.size(); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { + return dimensionHeaders_.get(index); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder + getDimensionHeadersOrBuilder(int index) { + return dimensionHeaders_.get(index); + } + + public static final int METRIC_HEADERS_FIELD_NUMBER = 2; + private java.util.List metricHeaders_; + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersList() { + return metricHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersOrBuilderList() { + return metricHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public int getMetricHeadersCount() { + return metricHeaders_.size(); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { + return metricHeaders_.get(index); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + return metricHeaders_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 3; + private java.util.List rows_; + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { + return rows_.get(index); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 4; + private int rowCount_; + /** + * + * + *
+   * The total number of rows in the query result. `rowCount` is independent of
+   * the number of rows returned in the response, the `limit` request
+   * parameter, and the `offset` request parameter. For example if a query
+   * returns 175 rows and includes `limit` of 50 in the API request, the
+   * response will contain `rowCount` of 175 but only 50 rows.
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + + public static final int QUOTA_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1alpha.AccessQuota quota_; + /** + * + * + *
+   * The quota state for this Analytics property including this request.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + @java.lang.Override + public boolean hasQuota() { + return quota_ != null; + } + /** + * + * + *
+   * The quota state for this Analytics property including this request.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return The quota. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } + /** + * + * + *
+   * The quota state for this Analytics property including this request.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { + return getQuota(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionHeaders_.size(); i++) { + output.writeMessage(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + output.writeMessage(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(3, rows_.get(i)); + } + if (rowCount_ != 0) { + output.writeInt32(4, rowCount_); + } + if (quota_ != null) { + output.writeMessage(5, getQuota()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensionHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); + } + if (rowCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, rowCount_); + } + if (quota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuota()); + } + 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.RunAccessReportResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.RunAccessReportResponse other = + (com.google.analytics.admin.v1alpha.RunAccessReportResponse) obj; + + if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; + if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (getRowCount() != other.getRowCount()) return false; + if (hasQuota() != other.hasQuota()) return false; + if (hasQuota()) { + if (!getQuota().equals(other.getQuota())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDimensionHeadersCount() > 0) { + hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionHeadersList().hashCode(); + } + if (getMetricHeadersCount() > 0) { + hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getMetricHeadersList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRowCount(); + if (hasQuota()) { + hash = (37 * hash) + QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getQuota().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse 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.RunAccessReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse 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.RunAccessReportResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse 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.RunAccessReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse 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.RunAccessReportResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse 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.RunAccessReportResponse 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.RunAccessReportResponse 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.RunAccessReportResponse 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; + } + /** + * + * + *
+   * The customized Data Access Record Report response.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) + com.google.analytics.admin.v1alpha.RunAccessReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, + com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.RunAccessReportResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDimensionHeadersFieldBuilder(); + getMetricHeadersFieldBuilder(); + getRowsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dimensionHeadersBuilder_.clear(); + } + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + metricHeadersBuilder_.clear(); + } + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + rowsBuilder_.clear(); + } + rowCount_ = 0; + + if (quotaBuilder_ == null) { + quota_ = null; + } else { + quota_ = null; + quotaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse build() { + com.google.analytics.admin.v1alpha.RunAccessReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse buildPartial() { + com.google.analytics.admin.v1alpha.RunAccessReportResponse result = + new com.google.analytics.admin.v1alpha.RunAccessReportResponse(this); + int from_bitField0_ = bitField0_; + if (dimensionHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionHeaders_ = dimensionHeaders_; + } else { + result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); + } + if (metricHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricHeaders_ = metricHeaders_; + } else { + result.metricHeaders_ = metricHeadersBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + result.rowCount_ = rowCount_; + if (quotaBuilder_ == null) { + result.quota_ = quota_; + } else { + result.quota_ = quotaBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportResponse other) { + if (other == com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance()) + return this; + if (dimensionHeadersBuilder_ == null) { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeaders_.isEmpty()) { + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.addAll(other.dimensionHeaders_); + } + onChanged(); + } + } else { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeadersBuilder_.isEmpty()) { + dimensionHeadersBuilder_.dispose(); + dimensionHeadersBuilder_ = null; + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionHeadersFieldBuilder() + : null; + } else { + dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); + } + } + } + if (metricHeadersBuilder_ == null) { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeaders_.isEmpty()) { + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricHeadersIsMutable(); + metricHeaders_.addAll(other.metricHeaders_); + } + onChanged(); + } + } else { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeadersBuilder_.isEmpty()) { + metricHeadersBuilder_.dispose(); + metricHeadersBuilder_ = null; + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + metricHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricHeadersFieldBuilder() + : null; + } else { + metricHeadersBuilder_.addAllMessages(other.metricHeaders_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (other.getRowCount() != 0) { + setRowCount(other.getRowCount()); + } + if (other.hasQuota()) { + mergeQuota(other.getQuota()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.RunAccessReportResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.RunAccessReportResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + dimensionHeaders_ = java.util.Collections.emptyList(); + + private void ensureDimensionHeadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = + new java.util.ArrayList( + dimensionHeaders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionHeader, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> + dimensionHeadersBuilder_; + + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List + getDimensionHeadersList() { + if (dimensionHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } else { + return dimensionHeadersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public int getDimensionHeadersCount() { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.size(); + } else { + return dimensionHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder setDimensionHeaders( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addAllDimensionHeaders( + java.lang.Iterable + values) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); + onChanged(); + } else { + dimensionHeadersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder clearDimensionHeaders() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionHeadersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder removeDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.remove(index); + onChanged(); + } else { + dimensionHeadersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder + getDimensionHeadersBuilder(int index) { + return getDimensionHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder + getDimensionHeadersOrBuilder(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> + getDimensionHeadersOrBuilderList() { + if (dimensionHeadersBuilder_ != null) { + return dimensionHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder + addDimensionHeadersBuilder() { + return getDimensionHeadersFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder + addDimensionHeadersBuilder(int index) { + return getDimensionHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List + getDimensionHeadersBuilderList() { + return getDimensionHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionHeader, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> + getDimensionHeadersFieldBuilder() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionHeader, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder>( + dimensionHeaders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionHeaders_ = null; + } + return dimensionHeadersBuilder_; + } + + private java.util.List metricHeaders_ = + java.util.Collections.emptyList(); + + private void ensureMetricHeadersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = + new java.util.ArrayList( + metricHeaders_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricHeader, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder> + metricHeadersBuilder_; + + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersList() { + if (metricHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricHeaders_); + } else { + return metricHeadersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public int getMetricHeadersCount() { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.size(); + } else { + return metricHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, value); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders(com.google.analytics.admin.v1alpha.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addAllMetricHeaders( + java.lang.Iterable + values) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); + onChanged(); + } else { + metricHeadersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder clearMetricHeaders() { + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricHeadersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder removeMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.remove(index); + onChanged(); + } else { + metricHeadersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder getMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersOrBuilderList() { + if (metricHeadersBuilder_ != null) { + return metricHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricHeaders_); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder addMetricHeadersBuilder() { + return getMetricHeadersFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder addMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersBuilderList() { + return getMetricHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricHeader, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder> + getMetricHeadersFieldBuilder() { + if (metricHeadersBuilder_ == null) { + metricHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricHeader, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder>( + metricHeaders_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + metricHeaders_ = null; + } + return metricHeadersBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessRow, + com.google.analytics.admin.v1alpha.AccessRow.Builder, + com.google.analytics.admin.v1alpha.AccessRowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder setRows(int index, com.google.analytics.admin.v1alpha.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder setRows( + int index, com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows(com.google.analytics.admin.v1alpha.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows(int index, com.google.analytics.admin.v1alpha.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows(com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows( + int index, com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow.Builder getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow.Builder addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessRow, + com.google.analytics.admin.v1alpha.AccessRow.Builder, + com.google.analytics.admin.v1alpha.AccessRowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessRow, + com.google.analytics.admin.v1alpha.AccessRow.Builder, + com.google.analytics.admin.v1alpha.AccessRowOrBuilder>( + rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private int rowCount_; + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(int value) { + + rowCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + + rowCount_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AccessQuota quota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuota, + com.google.analytics.admin.v1alpha.AccessQuota.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> + quotaBuilder_; + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + public boolean hasQuota() { + return quotaBuilder_ != null || quota_ != null; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return The quota. + */ + public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { + if (quotaBuilder_ == null) { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } else { + return quotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder setQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { + if (quotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quota_ = value; + onChanged(); + } else { + quotaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder setQuota( + com.google.analytics.admin.v1alpha.AccessQuota.Builder builderForValue) { + if (quotaBuilder_ == null) { + quota_ = builderForValue.build(); + onChanged(); + } else { + quotaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder mergeQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { + if (quotaBuilder_ == null) { + if (quota_ != null) { + quota_ = + com.google.analytics.admin.v1alpha.AccessQuota.newBuilder(quota_) + .mergeFrom(value) + .buildPartial(); + } else { + quota_ = value; + } + onChanged(); + } else { + quotaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder clearQuota() { + if (quotaBuilder_ == null) { + quota_ = null; + onChanged(); + } else { + quota_ = null; + quotaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public com.google.analytics.admin.v1alpha.AccessQuota.Builder getQuotaBuilder() { + + onChanged(); + return getQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { + if (quotaBuilder_ != null) { + return quotaBuilder_.getMessageOrBuilder(); + } else { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } + } + /** + * + * + *
+     * The quota state for this Analytics property including this request.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuota, + com.google.analytics.admin.v1alpha.AccessQuota.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> + getQuotaFieldBuilder() { + if (quotaBuilder_ == null) { + quotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuota, + com.google.analytics.admin.v1alpha.AccessQuota.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder>( + getQuota(), getParentForChildren(), isClean()); + quota_ = null; + } + return quotaBuilder_; + } + + @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.RunAccessReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) + private static final com.google.analytics.admin.v1alpha.RunAccessReportResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportResponse(); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAccessReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunAccessReportResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java new file mode 100644 index 000000000000..e066a602861a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java @@ -0,0 +1,263 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface RunAccessReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + java.util.List + getDimensionHeadersList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + int getDimensionHeadersCount(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + java.util.List + getDimensionHeadersOrBuilderList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index); + + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + java.util.List getMetricHeadersList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + int getMetricHeadersCount(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + java.util.List + getMetricHeadersOrBuilderList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + java.util.List getRowsList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + com.google.analytics.admin.v1alpha.AccessRow getRows(int index); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + int getRowsCount(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + java.util.List + getRowsOrBuilderList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index); + + /** + * + * + *
+   * The total number of rows in the query result. `rowCount` is independent of
+   * the number of rows returned in the response, the `limit` request
+   * parameter, and the `offset` request parameter. For example if a query
+   * returns 175 rows and includes `limit` of 50 in the API request, the
+   * response will contain `rowCount` of 175 but only 50 rows.
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + int getRowCount(); + + /** + * + * + *
+   * The quota state for this Analytics property including this request.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + boolean hasQuota(); + /** + * + * + *
+   * The quota state for this Analytics property including this request.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return The quota. + */ + com.google.analytics.admin.v1alpha.AccessQuota getQuota(); + /** + * + * + *
+   * The quota state for this Analytics property including this request.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto new file mode 100644 index 000000000000..ce6a8aa154f6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto @@ -0,0 +1,328 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; +option java_multiple_files = true; +option java_outer_classname = "AccessReportProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// Dimensions are attributes of your data. For example, the dimension +// `userEmail` indicates the email of the user that accessed reporting data. +// Dimension values in report responses are strings. +message AccessDimension { + // The API name of the dimension. See [Data Access + // Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + // for the list of dimensions supported in this API. + // + // Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + string dimension_name = 1; +} + +// The quantitative measurements of a report. For example, the metric +// `accessCount` is the total number of data access records. +message AccessMetric { + // The API name of the metric. See [Data Access + // Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + // for the list of metrics supported in this API. + // + // Metrics are referenced by name in `metricFilter` & `orderBys`. + string metric_name = 1; +} + +// A contiguous range of days: startDate, startDate + 1, ..., endDate. +message AccessDateRange { + // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + // be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + // accepted, and in that case, the date is inferred based on the current time + // in the request's time zone. + string start_date = 1; + + // The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + // be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + // also accepted, and in that case, the date is inferred based on the current + // time in the request's time zone. + string end_date = 2; +} + +// Expresses dimension or metric filters. The fields in the same expression need +// to be either all dimensions or all metrics. +message AccessFilterExpression { + // Specify one type of filter expression for `FilterExpression`. + oneof one_expression { + // Each of the FilterExpressions in the and_group has an AND relationship. + AccessFilterExpressionList and_group = 1; + + // Each of the FilterExpressions in the or_group has an OR relationship. + AccessFilterExpressionList or_group = 2; + + // The FilterExpression is NOT of not_expression. + AccessFilterExpression not_expression = 3; + + // A primitive filter. In the same FilterExpression, all of the filter's + // field names need to be either all dimensions or all metrics. + AccessFilter access_filter = 4; + } +} + +// A list of filter expressions. +message AccessFilterExpressionList { + // A list of filter expressions. + repeated AccessFilterExpression expressions = 1; +} + +// An expression to filter dimension or metric values. +message AccessFilter { + // Specify one type of filter for `Filter`. + oneof one_filter { + // Strings related filter. + AccessStringFilter string_filter = 2; + + // A filter for in list values. + AccessInListFilter in_list_filter = 3; + + // A filter for numeric or date values. + AccessNumericFilter numeric_filter = 4; + + // A filter for two values. + AccessBetweenFilter between_filter = 5; + } + + // The dimension name or metric name. + string field_name = 1; +} + +// The filter for strings. +message AccessStringFilter { + // The match type of a string filter. + enum MatchType { + // Unspecified + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Begins with the string value. + BEGINS_WITH = 2; + + // Ends with the string value. + ENDS_WITH = 3; + + // Contains the string value. + CONTAINS = 4; + + // Full match for the regular expression with the string value. + FULL_REGEXP = 5; + + // Partial match for the regular expression with the string value. + PARTIAL_REGEXP = 6; + } + + // The match type for this filter. + MatchType match_type = 1; + + // The string value used for the matching. + string value = 2; + + // If true, the string value is case sensitive. + bool case_sensitive = 3; +} + +// The result needs to be in a list of string values. +message AccessInListFilter { + // The list of string values. Must be non-empty. + repeated string values = 1; + + // If true, the string value is case sensitive. + bool case_sensitive = 2; +} + +// Filters for numeric or date values. +message AccessNumericFilter { + // The operation applied to a numeric filter. + enum Operation { + // Unspecified. + OPERATION_UNSPECIFIED = 0; + + // Equal + EQUAL = 1; + + // Less than + LESS_THAN = 2; + + // Less than or equal + LESS_THAN_OR_EQUAL = 3; + + // Greater than + GREATER_THAN = 4; + + // Greater than or equal + GREATER_THAN_OR_EQUAL = 5; + } + + // The operation type for this filter. + Operation operation = 1; + + // A numeric value or a date value. + NumericValue value = 2; +} + +// To express that the result needs to be between two numbers (inclusive). +message AccessBetweenFilter { + // Begins with this number. + NumericValue from_value = 1; + + // Ends with this number. + NumericValue to_value = 2; +} + +// To represent a number. +message NumericValue { + // One of a numeric value + oneof one_value { + // Integer value + int64 int64_value = 1; + + // Double value + double double_value = 2; + } +} + +// Order bys define how rows will be sorted in the response. For example, +// ordering rows by descending access count is one ordering, and ordering rows +// by the country string is a different ordering. +message AccessOrderBy { + // Sorts by metric values. + message MetricOrderBy { + // A metric name in the request to order by. + string metric_name = 1; + } + + // Sorts by dimension values. + message DimensionOrderBy { + // Rule to order the string dimension values by. + enum OrderType { + // Unspecified. + ORDER_TYPE_UNSPECIFIED = 0; + + // Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + // "b" < "z". + ALPHANUMERIC = 1; + + // Case insensitive alphanumeric sort by lower case Unicode code point. + // For example, "2" < "A" < "b" < "X" < "z". + CASE_INSENSITIVE_ALPHANUMERIC = 2; + + // Dimension values are converted to numbers before sorting. For example + // in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + // "25". Non-numeric dimension values all have equal ordering value below + // all numeric values. + NUMERIC = 3; + } + + // A dimension name in the request to order by. + string dimension_name = 1; + + // Controls the rule for dimension value ordering. + OrderType order_type = 2; + } + + // Specify one type of order by for `OrderBy`. + oneof one_order_by { + // Sorts results by a metric's values. + MetricOrderBy metric = 1; + + // Sorts results by a dimension's values. + DimensionOrderBy dimension = 2; + } + + // If true, sorts by descending order. If false or unspecified, sorts in + // ascending order. + bool desc = 3; +} + +// Describes a dimension column in the report. Dimensions requested in a report +// produce column entries within rows and DimensionHeaders. However, dimensions +// used exclusively within filters or expressions do not produce columns in a +// report; correspondingly, those dimensions do not produce headers. +message AccessDimensionHeader { + // The dimension's name; for example 'userEmail'. + string dimension_name = 1; +} + +// Describes a metric column in the report. Visible metrics requested in a +// report produce column entries within rows and MetricHeaders. However, +// metrics used exclusively within filters or expressions do not produce columns +// in a report; correspondingly, those metrics do not produce headers. +message AccessMetricHeader { + // The metric's name; for example 'accessCount'. + string metric_name = 1; +} + +// Access report data for each row. +message AccessRow { + // List of dimension values. These values are in the same order as specified + // in the request. + repeated AccessDimensionValue dimension_values = 1; + + // List of metric values. These values are in the same order as specified + // in the request. + repeated AccessMetricValue metric_values = 2; +} + +// The value of a dimension. +message AccessDimensionValue { + // The dimension value. For example, this value may be 'France' for the + // 'country' dimension. + string value = 1; +} + +// The value of a metric. +message AccessMetricValue { + // The measurement value. For example, this value may be '13'. + string value = 1; +} + +// Current state of all quotas for this Analytics property. If any quota for a +// property is exhausted, all requests to that property will return Resource +// Exhausted errors. +message AccessQuota { + // Properties can use 250,000 tokens per day. Most requests consume fewer than + // 10 tokens. + AccessQuotaStatus tokens_per_day = 1; + + // Properties can use 50,000 tokens per hour. An API request consumes a single + // number of tokens, and that number is deducted from both the hourly and + // daily quotas. + AccessQuotaStatus tokens_per_hour = 2; + + // Properties can use up to 50 concurrent requests. + AccessQuotaStatus concurrent_requests = 3; + + // Properties and cloud project pairs can have up to 50 server errors per + // hour. + AccessQuotaStatus server_errors_per_project_per_hour = 4; +} + +// Current state for a particular quota group. +message AccessQuotaStatus { + // Quota consumed by this request. + int32 consumed = 1; + + // Quota remaining after this request. + int32 remaining = 2; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index b6e5cb4a6eea..926f91bb3355 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.analytics.admin.v1alpha; +import "google/analytics/admin/v1alpha/access_report.proto"; import "google/analytics/admin/v1alpha/audience.proto"; import "google/analytics/admin/v1alpha/resources.proto"; import "google/api/annotations.proto"; @@ -791,6 +792,129 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "attribution_settings,update_mask"; } + + // Returns a customized report of data access records. The report provides + // records of each time a user reads Google Analytics reporting data. Access + // records are retained for up to 2 years. + // + // Data Access Reports can be requested for a property. The property must be + // in Google Analytics 360. This method is only available to Administrators. + // + // These data access records include GA4 UI Reporting, GA4 UI Explorations, + // GA4 Data API, and other products like Firebase & Admob that can retrieve + // data from Google Analytics through a linkage. These records don't include + // property configuration changes like adding a stream or changing a + // property's time zone. For configuration change history, see + // [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + rpc RunAccessReport(RunAccessReportRequest) returns (RunAccessReportResponse) { + option (google.api.http) = { + post: "/v1alpha/{entity=properties/*}:runAccessReport" + body: "*" + }; + } +} + +// The request for a Data Access Record Report. +message RunAccessReportRequest { + // The Data Access Report is requested for this property. + // For example if "123" is your GA4 property ID, then entity should be + // "properties/123". + string entity = 1; + + // The dimensions requested and displayed in the response. Requests are + // allowed up to 9 dimensions. + repeated AccessDimension dimensions = 2; + + // The metrics requested and displayed in the response. Requests are allowed + // up to 10 metrics. + repeated AccessMetric metrics = 3; + + // Date ranges of access records to read. If multiple date ranges are + // requested, each response row will contain a zero based date range index. If + // two date ranges overlap, the access records for the overlapping days is + // included in the response rows for both date ranges. Requests are allowed up + // to 2 date ranges. + repeated AccessDateRange date_ranges = 4; + + // Dimension filters allow you to restrict report response to specific + // dimension values which match the filter. For example, filtering on access + // records of a single user. To learn more, see [Fundamentals of Dimension + // Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + // for examples. Metrics cannot be used in this filter. + AccessFilterExpression dimension_filter = 5; + + // Metric filters allow you to restrict report response to specific metric + // values which match the filter. Metric filters are applied after aggregating + // the report's rows, similar to SQL having-clause. Dimensions cannot be used + // in this filter. + AccessFilterExpression metric_filter = 6; + + // The row count of the start row. The first row is counted as row 0. If + // offset is unspecified, it is treated as 0. If offset is zero, then this + // method will return the first page of results with `limit` entries. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 offset = 7; + + // The number of rows to return. If unspecified, 10,000 rows are returned. The + // API returns a maximum of 100,000 rows per request, no matter how many you + // ask for. `limit` must be positive. + // + // The API may return fewer rows than the requested `limit`, if there aren't + // as many remaining rows as the `limit`. For instance, there are fewer than + // 300 possible values for the dimension `country`, so when reporting on only + // `country`, you can't get more than 300 rows, even if you set `limit` to a + // higher value. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 limit = 8; + + // This request's time zone if specified. If unspecified, the property's time + // zone is used. The request's time zone is used to interpret the start & end + // dates of the report. + // + // Formatted as strings from the IANA Time Zone database + // (https://www.iana.org/time-zones); for example "America/New_York" or + // "Asia/Tokyo". + string time_zone = 9; + + // Specifies how rows are ordered in the response. + repeated AccessOrderBy order_bys = 10; + + // Toggles whether to return the current state of this Analytics Property's + // quota. Quota is returned in [AccessQuota](#AccessQuota). + bool return_entity_quota = 11; +} + +// The customized Data Access Record Report response. +message RunAccessReportResponse { + // The header for a column in the report that corresponds to a specific + // dimension. The number of DimensionHeaders and ordering of DimensionHeaders + // matches the dimensions present in rows. + repeated AccessDimensionHeader dimension_headers = 1; + + // The header for a column in the report that corresponds to a specific + // metric. The number of MetricHeaders and ordering of MetricHeaders matches + // the metrics present in rows. + repeated AccessMetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated AccessRow rows = 3; + + // The total number of rows in the query result. `rowCount` is independent of + // the number of rows returned in the response, the `limit` request + // parameter, and the `offset` request parameter. For example if a query + // returns 175 rows and includes `limit` of 50 in the API request, the + // response will contain `rowCount` of 175 but only 50 rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int32 row_count = 4; + + // The quota state for this Analytics property including this request. + AccessQuota quota = 5; } // Request message for GetAccount RPC.