diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 263fb09c3856..336fa2a6f96a 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java index f54d83cf246d..dac49260b1c0 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java @@ -18,10 +18,22 @@ import com.google.analytics.data.v1beta.stub.BetaAnalyticsDataStub; import com.google.analytics.data.v1beta.stub.BetaAnalyticsDataStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; import java.io.IOException; +import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -139,6 +151,8 @@ public class BetaAnalyticsDataClient implements BackgroundResource { private final BetaAnalyticsDataSettings settings; private final BetaAnalyticsDataStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of BetaAnalyticsDataClient with default settings. */ public static final BetaAnalyticsDataClient create() throws IOException { @@ -170,11 +184,17 @@ public static final BetaAnalyticsDataClient create(BetaAnalyticsDataStub stub) { protected BetaAnalyticsDataClient(BetaAnalyticsDataSettings settings) throws IOException { this.settings = settings; this.stub = ((BetaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected BetaAnalyticsDataClient(BetaAnalyticsDataStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final BetaAnalyticsDataSettings getSettings() { @@ -185,6 +205,23 @@ public BetaAnalyticsDataStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a customized report of your Google Analytics event data. Reports contain statistics @@ -802,6 +839,793 @@ public final CheckCompatibilityResponse checkCompatibility(CheckCompatibilityReq return stub.checkCompatibilityCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audience export for later retrieval. This method quickly returns the audience + * export's resource name and initiates a long running asynchronous request to form an audience + * export. To export the users in an audience export, first create the audience export through + * this method and then send the audience resource name to the `QueryAudienceExport` method. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
An audience export is a snapshot of the users currently in the audience at the time of + * audience export creation. Creating audience exports for one audience on different days will + * return different results as users enter and exit the audience. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each + * audience. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * AudienceExport audienceExport = AudienceExport.newBuilder().build(); + * AudienceExport response = + * betaAnalyticsDataClient.createAudienceExportAsync(parent, audienceExport).get(); + * } + * }+ * + * @param parent Required. The parent resource where this audience export will be created. Format: + * `properties/{property}` + * @param audienceExport Required. The audience export to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
An audience export is a snapshot of the users currently in the audience at the time of + * audience export creation. Creating audience exports for one audience on different days will + * return different results as users enter and exit the audience. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each + * audience. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * String parent = PropertyName.of("[PROPERTY]").toString(); + * AudienceExport audienceExport = AudienceExport.newBuilder().build(); + * AudienceExport response = + * betaAnalyticsDataClient.createAudienceExportAsync(parent, audienceExport).get(); + * } + * }+ * + * @param parent Required. The parent resource where this audience export will be created. Format: + * `properties/{property}` + * @param audienceExport Required. The audience export to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
An audience export is a snapshot of the users currently in the audience at the time of + * audience export creation. Creating audience exports for one audience on different days will + * return different results as users enter and exit the audience. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each + * audience. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * CreateAudienceExportRequest request = + * CreateAudienceExportRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAudienceExport(AudienceExport.newBuilder().build()) + * .build(); + * AudienceExport response = betaAnalyticsDataClient.createAudienceExportAsync(request).get(); + * } + * }+ * + * @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 OperationFuture
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
An audience export is a snapshot of the users currently in the audience at the time of + * audience export creation. Creating audience exports for one audience on different days will + * return different results as users enter and exit the audience. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each + * audience. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * CreateAudienceExportRequest request = + * CreateAudienceExportRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAudienceExport(AudienceExport.newBuilder().build()) + * .build(); + * OperationFuture+ */ + public final OperationCallable< + CreateAudienceExportRequest, AudienceExport, AudienceExportMetadata> + createAudienceExportOperationCallable() { + return stub.createAudienceExportOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an audience export for later retrieval. This method quickly returns the audience + * export's resource name and initiates a long running asynchronous request to form an audience + * export. To export the users in an audience export, first create the audience export through + * this method and then send the audience resource name to the `QueryAudienceExport` method. + * + *future = + * betaAnalyticsDataClient.createAudienceExportOperationCallable().futureCall(request); + * // Do something. + * AudienceExport response = future.get(); + * } + * }
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
An audience export is a snapshot of the users currently in the audience at the time of + * audience export creation. Creating audience exports for one audience on different days will + * return different results as users enter and exit the audience. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each + * audience. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * CreateAudienceExportRequest request = + * CreateAudienceExportRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAudienceExport(AudienceExport.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * betaAnalyticsDataClient.createAudienceExportCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * String name = "name3373707"; + * QueryAudienceExportResponse response = betaAnalyticsDataClient.queryAudienceExport(name); + * } + * }+ * + * @param name Required. The name of the audience export to retrieve users from. Format: + * `properties/{property}/audienceExports/{audience_export}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryAudienceExportResponse queryAudienceExport(String name) { + QueryAudienceExportRequest request = + QueryAudienceExportRequest.newBuilder().setName(name).build(); + return queryAudienceExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an audience export of users. After creating an audience, the users are not + * immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to + * create an audience export of users, and then second, this method is used to retrieve the users + * in the audience export. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * QueryAudienceExportRequest request = + * QueryAudienceExportRequest.newBuilder() + * .setName("name3373707") + * .setOffset(-1019779949) + * .setLimit(102976443) + * .build(); + * QueryAudienceExportResponse response = betaAnalyticsDataClient.queryAudienceExport(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 QueryAudienceExportResponse queryAudienceExport(QueryAudienceExportRequest request) { + return queryAudienceExportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an audience export of users. After creating an audience, the users are not + * immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to + * create an audience export of users, and then second, this method is used to retrieve the users + * in the audience export. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audiences in Google Analytics 4 allow you to segment your users in the ways that are + * important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * QueryAudienceExportRequest request = + * QueryAudienceExportRequest.newBuilder() + * .setName("name3373707") + * .setOffset(-1019779949) + * .setLimit(102976443) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * betaAnalyticsDataClient.queryAudienceExportCallable().futureCall(request); + * // Do something. + * QueryAudienceExportResponse response = future.get(); + * } + * }
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * AudienceExportName name = AudienceExportName.of("[PROPERTY]", "[AUDIENCE_EXPORT]"); + * AudienceExport response = betaAnalyticsDataClient.getAudienceExport(name); + * } + * }+ * + * @param name Required. The audience export resource name. Format: + * `properties/{property}/audienceExports/{audience_export}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AudienceExport getAudienceExport(AudienceExportName name) { + GetAudienceExportRequest request = + GetAudienceExportRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAudienceExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets configuration metadata about a specific audience export. This method can be used to + * understand an audience export after it has been created. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * String name = AudienceExportName.of("[PROPERTY]", "[AUDIENCE_EXPORT]").toString(); + * AudienceExport response = betaAnalyticsDataClient.getAudienceExport(name); + * } + * }+ * + * @param name Required. The audience export resource name. Format: + * `properties/{property}/audienceExports/{audience_export}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AudienceExport getAudienceExport(String name) { + GetAudienceExportRequest request = GetAudienceExportRequest.newBuilder().setName(name).build(); + return getAudienceExport(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets configuration metadata about a specific audience export. This method can be used to + * understand an audience export after it has been created. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * GetAudienceExportRequest request = + * GetAudienceExportRequest.newBuilder() + * .setName(AudienceExportName.of("[PROPERTY]", "[AUDIENCE_EXPORT]").toString()) + * .build(); + * AudienceExport response = betaAnalyticsDataClient.getAudienceExport(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 AudienceExport getAudienceExport(GetAudienceExportRequest request) { + return getAudienceExportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets configuration metadata about a specific audience export. This method can be used to + * understand an audience export after it has been created. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * GetAudienceExportRequest request = + * GetAudienceExportRequest.newBuilder() + * .setName(AudienceExportName.of("[PROPERTY]", "[AUDIENCE_EXPORT]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * betaAnalyticsDataClient.getAudienceExportCallable().futureCall(request); + * // Do something. + * AudienceExport response = future.get(); + * } + * }
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (AudienceExport element : + * betaAnalyticsDataClient.listAudienceExports(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. All audience exports for this property will be listed in the response. + * Format: `properties/{property}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAudienceExportsPagedResponse listAudienceExports(PropertyName parent) { + ListAudienceExportsRequest request = + ListAudienceExportsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAudienceExports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all audience exports for a property. This method can be used for you to find and reuse + * existing audience exports rather than creating unnecessary new audience exports. The same + * audience can have multiple audience exports that represent the export of users that were in an + * audience on different days. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (AudienceExport element : + * betaAnalyticsDataClient.listAudienceExports(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. All audience exports for this property will be listed in the response. + * Format: `properties/{property}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAudienceExportsPagedResponse listAudienceExports(String parent) { + ListAudienceExportsRequest request = + ListAudienceExportsRequest.newBuilder().setParent(parent).build(); + return listAudienceExports(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all audience exports for a property. This method can be used for you to find and reuse + * existing audience exports rather than creating unnecessary new audience exports. The same + * audience can have multiple audience exports that represent the export of users that were in an + * audience on different days. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * ListAudienceExportsRequest request = + * ListAudienceExportsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (AudienceExport element : + * betaAnalyticsDataClient.listAudienceExports(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAudienceExportsPagedResponse listAudienceExports( + ListAudienceExportsRequest request) { + return listAudienceExportsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all audience exports for a property. This method can be used for you to find and reuse + * existing audience exports rather than creating unnecessary new audience exports. The same + * audience can have multiple audience exports that represent the export of users that were in an + * audience on different days. + * + *
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * ListAudienceExportsRequest request = + * ListAudienceExportsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * betaAnalyticsDataClient.listAudienceExportsPagedCallable().futureCall(request); + * // Do something. + * for (AudienceExport element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * + *
Audience Export APIs have some methods at alpha and other methods at beta stability. The + * intention is to advance methods to beta stability after some feedback and adoption. To give + * your feedback on this API, complete the [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) { + * ListAudienceExportsRequest request = + * ListAudienceExportsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListAudienceExportsResponse response = + * betaAnalyticsDataClient.listAudienceExportsCallable().call(request); + * for (AudienceExport element : response.getAudienceExportsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
+ * Creates an audience export for later retrieval. This method quickly returns + * the audience export's resource name and initiates a long running + * asynchronous request to form an audience export. To export the users in an + * audience export, first create the audience export through this method and + * then send the audience resource name to the `QueryAudienceExport` method. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * An audience export is a snapshot of the users currently in the audience at + * the time of audience export creation. Creating audience exports for one + * audience on different days will return different results as users enter and + * exit the audience. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports + * contain the users in each audience. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + default void createAudienceExport( + com.google.analytics.data.v1beta.CreateAudienceExportRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves an audience export of users. After creating an audience, the + * users are not immediately available for exporting. First, a request to + * `CreateAudienceExport` is necessary to create an audience export of users, + * and then second, this method is used to retrieve the users in the audience + * export. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + default void queryAudienceExport( + com.google.analytics.data.v1beta.QueryAudienceExportRequest request, + io.grpc.stub.StreamObserver
+ * Gets configuration metadata about a specific audience export. This method + * can be used to understand an audience export after it has been created. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + default void getAudienceExport( + com.google.analytics.data.v1beta.GetAudienceExportRequest request, + io.grpc.stub.StreamObserver
+ * Lists all audience exports for a property. This method can be used for you + * to find and reuse existing audience exports rather than creating + * unnecessary new audience exports. The same audience can have multiple + * audience exports that represent the export of users that were in an + * audience on different days. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + default void listAudienceExports( + com.google.analytics.data.v1beta.ListAudienceExportsRequest request, + io.grpc.stub.StreamObserver
+ * Creates an audience export for later retrieval. This method quickly returns + * the audience export's resource name and initiates a long running + * asynchronous request to form an audience export. To export the users in an + * audience export, first create the audience export through this method and + * then send the audience resource name to the `QueryAudienceExport` method. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * An audience export is a snapshot of the users currently in the audience at + * the time of audience export creation. Creating audience exports for one + * audience on different days will return different results as users enter and + * exit the audience. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports + * contain the users in each audience. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public void createAudienceExport( + com.google.analytics.data.v1beta.CreateAudienceExportRequest request, + io.grpc.stub.StreamObserver
+ * Retrieves an audience export of users. After creating an audience, the + * users are not immediately available for exporting. First, a request to + * `CreateAudienceExport` is necessary to create an audience export of users, + * and then second, this method is used to retrieve the users in the audience + * export. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public void queryAudienceExport( + com.google.analytics.data.v1beta.QueryAudienceExportRequest request, + io.grpc.stub.StreamObserver
+ * Gets configuration metadata about a specific audience export. This method + * can be used to understand an audience export after it has been created. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public void getAudienceExport( + com.google.analytics.data.v1beta.GetAudienceExportRequest request, + io.grpc.stub.StreamObserver
+ * Lists all audience exports for a property. This method can be used for you + * to find and reuse existing audience exports rather than creating + * unnecessary new audience exports. The same audience can have multiple + * audience exports that represent the export of users that were in an + * audience on different days. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public void listAudienceExports( + com.google.analytics.data.v1beta.ListAudienceExportsRequest request, + io.grpc.stub.StreamObserver
+ * Creates an audience export for later retrieval. This method quickly returns + * the audience export's resource name and initiates a long running + * asynchronous request to form an audience export. To export the users in an + * audience export, first create the audience export through this method and + * then send the audience resource name to the `QueryAudienceExport` method. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * An audience export is a snapshot of the users currently in the audience at + * the time of audience export creation. Creating audience exports for one + * audience on different days will return different results as users enter and + * exit the audience. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports + * contain the users in each audience. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.longrunning.Operation createAudienceExport( + com.google.analytics.data.v1beta.CreateAudienceExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAudienceExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Retrieves an audience export of users. After creating an audience, the + * users are not immediately available for exporting. First, a request to + * `CreateAudienceExport` is necessary to create an audience export of users, + * and then second, this method is used to retrieve the users in the audience + * export. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.analytics.data.v1beta.QueryAudienceExportResponse queryAudienceExport( + com.google.analytics.data.v1beta.QueryAudienceExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryAudienceExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets configuration metadata about a specific audience export. This method + * can be used to understand an audience export after it has been created. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.analytics.data.v1beta.AudienceExport getAudienceExport( + com.google.analytics.data.v1beta.GetAudienceExportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAudienceExportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists all audience exports for a property. This method can be used for you + * to find and reuse existing audience exports rather than creating + * unnecessary new audience exports. The same audience can have multiple + * audience exports that represent the export of users that were in an + * audience on different days. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.analytics.data.v1beta.ListAudienceExportsResponse listAudienceExports( + com.google.analytics.data.v1beta.ListAudienceExportsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAudienceExportsMethod(), getCallOptions(), request); + } } /** @@ -1051,6 +1593,117 @@ protected BetaAnalyticsDataFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCheckCompatibilityMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Creates an audience export for later retrieval. This method quickly returns + * the audience export's resource name and initiates a long running + * asynchronous request to form an audience export. To export the users in an + * audience export, first create the audience export through this method and + * then send the audience resource name to the `QueryAudienceExport` method. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * An audience export is a snapshot of the users currently in the audience at + * the time of audience export creation. Creating audience exports for one + * audience on different days will return different results as users enter and + * exit the audience. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. Audience exports + * contain the users in each audience. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Retrieves an audience export of users. After creating an audience, the + * users are not immediately available for exporting. First, a request to + * `CreateAudienceExport` is necessary to create an audience export of users, + * and then second, this method is used to retrieve the users in the audience + * export. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audiences in Google Analytics 4 allow you to segment your users in the ways + * that are important to your business. To learn more, see + * https://support.google.com/analytics/answer/9267572. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1beta.QueryAudienceExportResponse> + queryAudienceExport(com.google.analytics.data.v1beta.QueryAudienceExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryAudienceExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets configuration metadata about a specific audience export. This method + * can be used to understand an audience export after it has been created. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1beta.AudienceExport> + getAudienceExport(com.google.analytics.data.v1beta.GetAudienceExportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAudienceExportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Lists all audience exports for a property. This method can be used for you + * to find and reuse existing audience exports rather than creating + * unnecessary new audience exports. The same audience can have multiple + * audience exports that represent the export of users that were in an + * audience on different days. + * See [Creating an Audience + * Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) + * for an introduction to Audience Exports with examples. + * Audience Export APIs have some methods at alpha and other methods at beta + * stability. The intention is to advance methods to beta stability after some + * feedback and adoption. To give your feedback on this API, complete the + * [Google Analytics Audience Export API + * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1beta.ListAudienceExportsResponse> + listAudienceExports(com.google.analytics.data.v1beta.ListAudienceExportsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAudienceExportsMethod(), getCallOptions()), request); + } } private static final int METHODID_RUN_REPORT = 0; @@ -1060,6 +1713,10 @@ protected BetaAnalyticsDataFutureStub build( private static final int METHODID_GET_METADATA = 4; private static final int METHODID_RUN_REALTIME_REPORT = 5; private static final int METHODID_CHECK_COMPATIBILITY = 6; + private static final int METHODID_CREATE_AUDIENCE_EXPORT = 7; + private static final int METHODID_QUERY_AUDIENCE_EXPORT = 8; + private static final int METHODID_GET_AUDIENCE_EXPORT = 9; + private static final int METHODID_LIST_AUDIENCE_EXPORTS = 10; private static final class MethodHandlers
+ * An audience dimension is a user attribute. Specific user attributed are + * requested and then later returned in the `QueryAudienceExportResponse`. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceDimension} + */ +public final class AudienceDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.AudienceDimension) + AudienceDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceDimension.newBuilder() to construct. + private AudienceDimension(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AudienceDimension() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceDimension(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.AudienceDimension.class, + com.google.analytics.data.v1beta.AudienceDimension.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+ * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1beta.AudienceDimension)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1beta.AudienceDimension other =
+ (com.google.analytics.data.v1beta.AudienceDimension) obj;
+
+ if (!getDimensionName().equals(other.getDimensionName())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionName().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension 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.data.v1beta.AudienceDimension parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension 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.data.v1beta.AudienceDimension parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension 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.data.v1beta.AudienceDimension parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension 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.data.v1beta.AudienceDimension parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension 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.data.v1beta.AudienceDimension 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 audience dimension is a user attribute. Specific user attributed are + * requested and then later returned in the `QueryAudienceExportResponse`. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDimensionName() {
+ dimensionName_ = getDefaultInstance().getDimensionName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @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;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.analytics.data.v1beta.AudienceDimension)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.AudienceDimension)
+ private static final com.google.analytics.data.v1beta.AudienceDimension DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.AudienceDimension();
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimension getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The dimensionName.
+ */
+ java.lang.String getDimensionName();
+ /**
+ *
+ *
+ * + * Optional. The API name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-api-schema#dimensions) + * for the list of dimension names. + *+ * + *
string dimension_name = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for dimensionName.
+ */
+ com.google.protobuf.ByteString getDimensionNameBytes();
+}
diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceDimensionValue.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceDimensionValue.java
new file mode 100644
index 000000000000..5c22b676a3a6
--- /dev/null
+++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceDimensionValue.java
@@ -0,0 +1,757 @@
+/*
+ * Copyright 2023 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/data/v1beta/analytics_data_api.proto
+
+package com.google.analytics.data.v1beta;
+
+/**
+ *
+ *
+ * + * The value of a dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceDimensionValue} + */ +public final class AudienceDimensionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.AudienceDimensionValue) + AudienceDimensionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceDimensionValue.newBuilder() to construct. + private AudienceDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AudienceDimensionValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceDimensionValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.AudienceDimensionValue.class, + com.google.analytics.data.v1beta.AudienceDimensionValue.Builder.class); + } + + private int oneValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE(1), + 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 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 VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+ * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return oneValueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (oneValueCase_ == 1) {
+ oneValue_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneValueCase_ == 1) {
+ oneValue_ = 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 (oneValueCase_ == 1) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneValue_);
+ }
+ getUnknownFields().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.GeneratedMessageV3.computeStringSize(1, oneValue_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1beta.AudienceDimensionValue)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1beta.AudienceDimensionValue other =
+ (com.google.analytics.data.v1beta.AudienceDimensionValue) obj;
+
+ if (!getOneValueCase().equals(other.getOneValueCase())) return false;
+ switch (oneValueCase_) {
+ case 1:
+ if (!getValue().equals(other.getValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (oneValueCase_) {
+ case 1:
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue 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.data.v1beta.AudienceDimensionValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue 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.data.v1beta.AudienceDimensionValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue 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.data.v1beta.AudienceDimensionValue parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue 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.data.v1beta.AudienceDimensionValue parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue 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.data.v1beta.AudienceDimensionValue 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.data.v1beta.AudienceDimensionValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return oneValueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (oneValueCase_ == 1) {
+ oneValue_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneValueCase_ == 1) {
+ oneValue_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
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();
+ }
+ oneValueCase_ = 1;
+ oneValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ if (oneValueCase_ == 1) {
+ oneValueCase_ = 0;
+ oneValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
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);
+ oneValueCase_ = 1;
+ oneValue_ = 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.data.v1beta.AudienceDimensionValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.AudienceDimensionValue)
+ private static final com.google.analytics.data.v1beta.AudienceDimensionValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.AudienceDimensionValue();
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceDimensionValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+
+ com.google.analytics.data.v1beta.AudienceDimensionValue.OneValueCase getOneValueCase();
+}
diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExport.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExport.java
new file mode 100644
index 000000000000..ebd37915bc21
--- /dev/null
+++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceExport.java
@@ -0,0 +1,2933 @@
+/*
+ * Copyright 2023 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/data/v1beta/analytics_data_api.proto
+
+package com.google.analytics.data.v1beta;
+
+/**
+ *
+ *
+ * + * An audience export is a list of users in an audience at the time of the + * list's creation. One audience may have multiple audience exports created for + * different days. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceExport} + */ +public final class AudienceExport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.AudienceExport) + AudienceExportOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceExport.newBuilder() to construct. + private AudienceExport(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AudienceExport() { + name_ = ""; + audience_ = ""; + audienceDisplayName_ = ""; + dimensions_ = java.util.Collections.emptyList(); + state_ = 0; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceExport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceExport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceExport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.AudienceExport.class, + com.google.analytics.data.v1beta.AudienceExport.Builder.class); + } + + /** + * + * + *
+ * The AudienceExport currently exists in this state. + *+ * + * Protobuf enum {@code google.analytics.data.v1beta.AudienceExport.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified state will never be used. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * The AudienceExport is currently creating and will be available in the + * future. Creating occurs immediately after the CreateAudienceExport call. + *+ * + *
CREATING = 1;
+ */
+ CREATING(1),
+ /**
+ *
+ *
+ * + * The AudienceExport is fully created and ready for querying. An + * AudienceExport is updated to active asynchronously from a request; this + * occurs some time (for example 15 minutes) after the initial create call. + *+ * + *
ACTIVE = 2;
+ */
+ ACTIVE(2),
+ /**
+ *
+ *
+ * + * The AudienceExport failed to be created. It is possible that + * re-requesting this audience export will succeed. + *+ * + *
FAILED = 3;
+ */
+ FAILED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified state will never be used. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * The AudienceExport is currently creating and will be available in the + * future. Creating occurs immediately after the CreateAudienceExport call. + *+ * + *
CREATING = 1;
+ */
+ public static final int CREATING_VALUE = 1;
+ /**
+ *
+ *
+ * + * The AudienceExport is fully created and ready for querying. An + * AudienceExport is updated to active asynchronously from a request; this + * occurs some time (for example 15 minutes) after the initial create call. + *+ * + *
ACTIVE = 2;
+ */
+ public static final int ACTIVE_VALUE = 2;
+ /**
+ *
+ *
+ * + * The AudienceExport failed to be created. It is possible that + * re-requesting this audience export will succeed. + *+ * + *
FAILED = 3;
+ */
+ public static final int FAILED_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 State 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 State forNumber(int value) {
+ switch (value) {
+ case 0:
+ return STATE_UNSPECIFIED;
+ case 1:
+ return CREATING;
+ case 2:
+ return ACTIVE;
+ case 3:
+ return FAILED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AUDIENCE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object audience_ = "";
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The audience.
+ */
+ @java.lang.Override
+ public java.lang.String getAudience() {
+ java.lang.Object ref = audience_;
+ 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();
+ audience_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for audience.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAudienceBytes() {
+ java.lang.Object ref = audience_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ audience_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AUDIENCE_DISPLAY_NAME_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object audienceDisplayName_ = "";
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The audienceDisplayName.
+ */
+ @java.lang.Override
+ public java.lang.String getAudienceDisplayName() {
+ java.lang.Object ref = audienceDisplayName_;
+ 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();
+ audienceDisplayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for audienceDisplayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAudienceDisplayNameBytes() {
+ java.lang.Object ref = audienceDisplayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ audienceDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DIMENSIONS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1beta.AudienceDimensionOrBuilder>
+ getDimensionsOrBuilderList() {
+ return dimensions_;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public int getDimensionsCount() {
+ return dimensions_.size();
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1beta.AudienceDimension getDimensions(int index) {
+ return dimensions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1beta.AudienceDimensionOrBuilder getDimensionsOrBuilder(
+ int index) {
+ return dimensions_.get(index);
+ }
+
+ public static final int STATE_FIELD_NUMBER = 5;
+ private int state_ = 0;
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the state field is set.
+ */
+ @java.lang.Override
+ public boolean hasState() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1beta.AudienceExport.State getState() {
+ com.google.analytics.data.v1beta.AudienceExport.State result =
+ com.google.analytics.data.v1beta.AudienceExport.State.forNumber(state_);
+ return result == null
+ ? com.google.analytics.data.v1beta.AudienceExport.State.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int BEGIN_CREATING_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp beginCreatingTime_;
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the beginCreatingTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasBeginCreatingTime() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The beginCreatingTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getBeginCreatingTime() {
+ return beginCreatingTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : beginCreatingTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getBeginCreatingTimeOrBuilder() {
+ return beginCreatingTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : beginCreatingTime_;
+ }
+
+ public static final int CREATION_QUOTA_TOKENS_CHARGED_FIELD_NUMBER = 7;
+ private int creationQuotaTokensCharged_ = 0;
+ /**
+ *
+ *
+ * + * Output only. The total quota tokens charged during creation of the + * AudienceExport. Because this token count is based on activity from the + * `CREATING` state, this tokens charged will be fixed once an AudienceExport + * enters the `ACTIVE` or `FAILED` states. + *+ * + *
int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The creationQuotaTokensCharged.
+ */
+ @java.lang.Override
+ public int getCreationQuotaTokensCharged() {
+ return creationQuotaTokensCharged_;
+ }
+
+ public static final int ROW_COUNT_FIELD_NUMBER = 8;
+ private int rowCount_ = 0;
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the rowCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasRowCount() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The rowCount.
+ */
+ @java.lang.Override
+ public int getRowCount() {
+ return rowCount_;
+ }
+
+ public static final int ERROR_MESSAGE_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object errorMessage_ = "";
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the errorMessage field is set.
+ */
+ @java.lang.Override
+ public boolean hasErrorMessage() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The errorMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ 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();
+ errorMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for errorMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PERCENTAGE_COMPLETED_FIELD_NUMBER = 10;
+ private double percentageCompleted_ = 0D;
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the percentageCompleted field is set.
+ */
+ @java.lang.Override
+ public boolean hasPercentageCompleted() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The percentageCompleted.
+ */
+ @java.lang.Override
+ public double getPercentageCompleted() {
+ return percentageCompleted_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audienceDisplayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, audienceDisplayName_);
+ }
+ for (int i = 0; i < dimensions_.size(); i++) {
+ output.writeMessage(4, dimensions_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(5, state_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(6, getBeginCreatingTime());
+ }
+ if (creationQuotaTokensCharged_ != 0) {
+ output.writeInt32(7, creationQuotaTokensCharged_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeInt32(8, rowCount_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, errorMessage_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeDouble(10, percentageCompleted_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audienceDisplayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, audienceDisplayName_);
+ }
+ for (int i = 0; i < dimensions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dimensions_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBeginCreatingTime());
+ }
+ if (creationQuotaTokensCharged_ != 0) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt32Size(7, creationQuotaTokensCharged_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, rowCount_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, errorMessage_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeDoubleSize(10, percentageCompleted_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1beta.AudienceExport)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1beta.AudienceExport other =
+ (com.google.analytics.data.v1beta.AudienceExport) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getAudience().equals(other.getAudience())) return false;
+ if (!getAudienceDisplayName().equals(other.getAudienceDisplayName())) return false;
+ if (!getDimensionsList().equals(other.getDimensionsList())) return false;
+ if (hasState() != other.hasState()) return false;
+ if (hasState()) {
+ if (state_ != other.state_) return false;
+ }
+ if (hasBeginCreatingTime() != other.hasBeginCreatingTime()) return false;
+ if (hasBeginCreatingTime()) {
+ if (!getBeginCreatingTime().equals(other.getBeginCreatingTime())) return false;
+ }
+ if (getCreationQuotaTokensCharged() != other.getCreationQuotaTokensCharged()) return false;
+ if (hasRowCount() != other.hasRowCount()) return false;
+ if (hasRowCount()) {
+ if (getRowCount() != other.getRowCount()) return false;
+ }
+ if (hasErrorMessage() != other.hasErrorMessage()) return false;
+ if (hasErrorMessage()) {
+ if (!getErrorMessage().equals(other.getErrorMessage())) return false;
+ }
+ if (hasPercentageCompleted() != other.hasPercentageCompleted()) return false;
+ if (hasPercentageCompleted()) {
+ if (java.lang.Double.doubleToLongBits(getPercentageCompleted())
+ != java.lang.Double.doubleToLongBits(other.getPercentageCompleted())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + AUDIENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getAudience().hashCode();
+ hash = (37 * hash) + AUDIENCE_DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getAudienceDisplayName().hashCode();
+ if (getDimensionsCount() > 0) {
+ hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionsList().hashCode();
+ }
+ if (hasState()) {
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ }
+ if (hasBeginCreatingTime()) {
+ hash = (37 * hash) + BEGIN_CREATING_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getBeginCreatingTime().hashCode();
+ }
+ hash = (37 * hash) + CREATION_QUOTA_TOKENS_CHARGED_FIELD_NUMBER;
+ hash = (53 * hash) + getCreationQuotaTokensCharged();
+ if (hasRowCount()) {
+ hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getRowCount();
+ }
+ if (hasErrorMessage()) {
+ hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorMessage().hashCode();
+ }
+ if (hasPercentageCompleted()) {
+ hash = (37 * hash) + PERCENTAGE_COMPLETED_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getPercentageCompleted()));
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport 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.data.v1beta.AudienceExport parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport 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.data.v1beta.AudienceExport parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport 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.data.v1beta.AudienceExport parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport 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.data.v1beta.AudienceExport parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport 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.data.v1beta.AudienceExport 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 audience export is a list of users in an audience at the time of the + * list's creation. One audience may have multiple audience exports created for + * different days. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceExport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object audience_ = "";
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The audience.
+ */
+ public java.lang.String getAudience() {
+ java.lang.Object ref = audience_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ audience_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for audience.
+ */
+ public com.google.protobuf.ByteString getAudienceBytes() {
+ java.lang.Object ref = audience_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ audience_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The audience to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudience(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ audience_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudience() {
+ audience_ = getDefaultInstance().getAudience();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for audience to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudienceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ audience_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object audienceDisplayName_ = "";
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The audienceDisplayName.
+ */
+ public java.lang.String getAudienceDisplayName() {
+ java.lang.Object ref = audienceDisplayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ audienceDisplayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for audienceDisplayName.
+ */
+ public com.google.protobuf.ByteString getAudienceDisplayNameBytes() {
+ java.lang.Object ref = audienceDisplayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ audienceDisplayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The audienceDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudienceDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ audienceDisplayName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAudienceDisplayName() {
+ audienceDisplayName_ = getDefaultInstance().getAudienceDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for audienceDisplayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAudienceDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ audienceDisplayName_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public int getDimensionsCount() {
+ if (dimensionsBuilder_ == null) {
+ return dimensions_.size();
+ } else {
+ return dimensionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.analytics.data.v1beta.AudienceDimension getDimensions(int index) {
+ if (dimensionsBuilder_ == null) {
+ return dimensions_.get(index);
+ } else {
+ return dimensionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setDimensions(
+ int index, com.google.analytics.data.v1beta.AudienceDimension value) {
+ if (dimensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionsIsMutable();
+ dimensions_.set(index, value);
+ onChanged();
+ } else {
+ dimensionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder setDimensions(
+ int index, com.google.analytics.data.v1beta.AudienceDimension.Builder builderForValue) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addDimensions(com.google.analytics.data.v1beta.AudienceDimension value) {
+ if (dimensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionsIsMutable();
+ dimensions_.add(value);
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addDimensions(
+ int index, com.google.analytics.data.v1beta.AudienceDimension value) {
+ if (dimensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionsIsMutable();
+ dimensions_.add(index, value);
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addDimensions(
+ com.google.analytics.data.v1beta.AudienceDimension.Builder builderForValue) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addDimensions(
+ int index, com.google.analytics.data.v1beta.AudienceDimension.Builder builderForValue) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder addAllDimensions(
+ java.lang.Iterable extends com.google.analytics.data.v1beta.AudienceDimension> values) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_);
+ onChanged();
+ } else {
+ dimensionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder clearDimensions() {
+ if (dimensionsBuilder_ == null) {
+ dimensions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ dimensionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public Builder removeDimensions(int index) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.remove(index);
+ onChanged();
+ } else {
+ dimensionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.analytics.data.v1beta.AudienceDimension.Builder getDimensionsBuilder(
+ int index) {
+ return getDimensionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.analytics.data.v1beta.AudienceDimensionOrBuilder getDimensionsOrBuilder(
+ int index) {
+ if (dimensionsBuilder_ == null) {
+ return dimensions_.get(index);
+ } else {
+ return dimensionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List extends com.google.analytics.data.v1beta.AudienceDimensionOrBuilder>
+ getDimensionsOrBuilderList() {
+ if (dimensionsBuilder_ != null) {
+ return dimensionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dimensions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.analytics.data.v1beta.AudienceDimension.Builder addDimensionsBuilder() {
+ return getDimensionsFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1beta.AudienceDimension.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public com.google.analytics.data.v1beta.AudienceDimension.Builder addDimensionsBuilder(
+ int index) {
+ return getDimensionsFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1beta.AudienceDimension.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ public java.util.List+ * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the state field is set.
+ */
+ @java.lang.Override
+ public boolean hasState() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1beta.AudienceExport.State getState() {
+ com.google.analytics.data.v1beta.AudienceExport.State result =
+ com.google.analytics.data.v1beta.AudienceExport.State.forNumber(state_);
+ return result == null
+ ? com.google.analytics.data.v1beta.AudienceExport.State.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.google.analytics.data.v1beta.AudienceExport.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp beginCreatingTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ beginCreatingTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the beginCreatingTime field is set.
+ */
+ public boolean hasBeginCreatingTime() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The beginCreatingTime.
+ */
+ public com.google.protobuf.Timestamp getBeginCreatingTime() {
+ if (beginCreatingTimeBuilder_ == null) {
+ return beginCreatingTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : beginCreatingTime_;
+ } else {
+ return beginCreatingTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBeginCreatingTime(com.google.protobuf.Timestamp value) {
+ if (beginCreatingTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ beginCreatingTime_ = value;
+ } else {
+ beginCreatingTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBeginCreatingTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (beginCreatingTimeBuilder_ == null) {
+ beginCreatingTime_ = builderForValue.build();
+ } else {
+ beginCreatingTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeBeginCreatingTime(com.google.protobuf.Timestamp value) {
+ if (beginCreatingTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && beginCreatingTime_ != null
+ && beginCreatingTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getBeginCreatingTimeBuilder().mergeFrom(value);
+ } else {
+ beginCreatingTime_ = value;
+ }
+ } else {
+ beginCreatingTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearBeginCreatingTime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ beginCreatingTime_ = null;
+ if (beginCreatingTimeBuilder_ != null) {
+ beginCreatingTimeBuilder_.dispose();
+ beginCreatingTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getBeginCreatingTimeBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getBeginCreatingTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getBeginCreatingTimeOrBuilder() {
+ if (beginCreatingTimeBuilder_ != null) {
+ return beginCreatingTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return beginCreatingTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : beginCreatingTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getBeginCreatingTimeFieldBuilder() {
+ if (beginCreatingTimeBuilder_ == null) {
+ beginCreatingTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getBeginCreatingTime(), getParentForChildren(), isClean());
+ beginCreatingTime_ = null;
+ }
+ return beginCreatingTimeBuilder_;
+ }
+
+ private int creationQuotaTokensCharged_;
+ /**
+ *
+ *
+ * + * Output only. The total quota tokens charged during creation of the + * AudienceExport. Because this token count is based on activity from the + * `CREATING` state, this tokens charged will be fixed once an AudienceExport + * enters the `ACTIVE` or `FAILED` states. + *+ * + *
int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The creationQuotaTokensCharged.
+ */
+ @java.lang.Override
+ public int getCreationQuotaTokensCharged() {
+ return creationQuotaTokensCharged_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The total quota tokens charged during creation of the + * AudienceExport. Because this token count is based on activity from the + * `CREATING` state, this tokens charged will be fixed once an AudienceExport + * enters the `ACTIVE` or `FAILED` states. + *+ * + *
int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The creationQuotaTokensCharged to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreationQuotaTokensCharged(int value) {
+
+ creationQuotaTokensCharged_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The total quota tokens charged during creation of the + * AudienceExport. Because this token count is based on activity from the + * `CREATING` state, this tokens charged will be fixed once an AudienceExport + * enters the `ACTIVE` or `FAILED` states. + *+ * + *
int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCreationQuotaTokensCharged() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ creationQuotaTokensCharged_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int rowCount_;
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the rowCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasRowCount() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The rowCount.
+ */
+ @java.lang.Override
+ public int getRowCount() {
+ return rowCount_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The rowCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRowCount(int value) {
+
+ rowCount_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRowCount() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ rowCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object errorMessage_ = "";
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the errorMessage field is set.
+ */
+ public boolean hasErrorMessage() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The errorMessage.
+ */
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ errorMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for errorMessage.
+ */
+ public com.google.protobuf.ByteString getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ errorMessage_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearErrorMessage() {
+ errorMessage_ = getDefaultInstance().getErrorMessage();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ errorMessage_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private double percentageCompleted_;
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the percentageCompleted field is set.
+ */
+ @java.lang.Override
+ public boolean hasPercentageCompleted() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The percentageCompleted.
+ */
+ @java.lang.Override
+ public double getPercentageCompleted() {
+ return percentageCompleted_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The percentageCompleted to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPercentageCompleted(double value) {
+
+ percentageCompleted_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPercentageCompleted() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ percentageCompleted_ = 0D;
+ 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.data.v1beta.AudienceExport)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1beta.AudienceExport)
+ private static final com.google.analytics.data.v1beta.AudienceExport DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1beta.AudienceExport();
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceExport getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * This metadata is currently blank. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceExportMetadata} + */ +public final class AudienceExportMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.AudienceExportMetadata) + AudienceExportMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceExportMetadata.newBuilder() to construct. + private AudienceExportMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AudienceExportMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceExportMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceExportMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceExportMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.AudienceExportMetadata.class, + com.google.analytics.data.v1beta.AudienceExportMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1beta.AudienceExportMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1beta.AudienceExportMetadata other = + (com.google.analytics.data.v1beta.AudienceExportMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata 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.data.v1beta.AudienceExportMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata 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.data.v1beta.AudienceExportMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata 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.data.v1beta.AudienceExportMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata 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.data.v1beta.AudienceExportMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1beta.AudienceExportMetadata 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.data.v1beta.AudienceExportMetadata 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; + } + /** + * + * + *
+ * This metadata is currently blank. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceExportMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Output only. Identifier. The audience export resource name assigned during + * creation. This resource name identifies this `AudienceExport`. + * + * Format: `properties/{property}/audienceExports/{audience_export}` + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The audience.
+ */
+ java.lang.String getAudience();
+ /**
+ *
+ *
+ * + * Required. The audience resource name. This resource name identifies the + * audience being listed and is shared between the Analytics Data & Admin + * APIs. + * + * Format: `properties/{property}/audiences/{audience}` + *+ * + *
string audience = 2 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for audience.
+ */
+ com.google.protobuf.ByteString getAudienceBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The audienceDisplayName.
+ */
+ java.lang.String getAudienceDisplayName();
+ /**
+ *
+ *
+ * + * Output only. The descriptive display name for this audience. For example, + * "Purchasers". + *+ * + *
string audience_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for audienceDisplayName.
+ */
+ com.google.protobuf.ByteString getAudienceDisplayNameBytes();
+
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List+ * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.analytics.data.v1beta.AudienceDimension getDimensions(int index);
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ int getDimensionsCount();
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ java.util.List extends com.google.analytics.data.v1beta.AudienceDimensionOrBuilder>
+ getDimensionsOrBuilderList();
+ /**
+ *
+ *
+ * + * Required. The dimensions requested and displayed in the query response. + *+ * + *
+ * repeated .google.analytics.data.v1beta.AudienceDimension dimensions = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ */
+ com.google.analytics.data.v1beta.AudienceDimensionOrBuilder getDimensionsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the state field is set.
+ */
+ boolean hasState();
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ * + * Output only. The current state for this AudienceExport. + *+ * + *
+ * optional .google.analytics.data.v1beta.AudienceExport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
+ */
+ com.google.analytics.data.v1beta.AudienceExport.State getState();
+
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the beginCreatingTime field is set.
+ */
+ boolean hasBeginCreatingTime();
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The beginCreatingTime.
+ */
+ com.google.protobuf.Timestamp getBeginCreatingTime();
+ /**
+ *
+ *
+ * + * Output only. The time when CreateAudienceExport was called and the + * AudienceExport began the `CREATING` state. + *+ * + *
+ * optional .google.protobuf.Timestamp begin_creating_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getBeginCreatingTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Output only. The total quota tokens charged during creation of the + * AudienceExport. Because this token count is based on activity from the + * `CREATING` state, this tokens charged will be fixed once an AudienceExport + * enters the `ACTIVE` or `FAILED` states. + *+ * + *
int32 creation_quota_tokens_charged = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The creationQuotaTokensCharged.
+ */
+ int getCreationQuotaTokensCharged();
+
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the rowCount field is set.
+ */
+ boolean hasRowCount();
+ /**
+ *
+ *
+ * + * Output only. The total number of rows in the AudienceExport result. + *+ * + *
optional int32 row_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The rowCount.
+ */
+ int getRowCount();
+
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the errorMessage field is set.
+ */
+ boolean hasErrorMessage();
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The errorMessage.
+ */
+ java.lang.String getErrorMessage();
+ /**
+ *
+ *
+ * + * Output only. Error message is populated when an audience export fails + * during creation. A common reason for such a failure is quota exhaustion. + *+ * + *
optional string error_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for errorMessage.
+ */
+ com.google.protobuf.ByteString getErrorMessageBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the percentageCompleted field is set.
+ */
+ boolean hasPercentageCompleted();
+ /**
+ *
+ *
+ * + * Output only. The percentage completed for this audience export ranging + * between 0 to 100. + *+ * + *
optional double percentage_completed = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The percentageCompleted.
+ */
+ double getPercentageCompleted();
+}
diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceRow.java b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceRow.java
new file mode 100644
index 000000000000..81b78cd13012
--- /dev/null
+++ b/java-analytics-data/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AudienceRow.java
@@ -0,0 +1,1001 @@
+/*
+ * Copyright 2023 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/data/v1beta/analytics_data_api.proto
+
+package com.google.analytics.data.v1beta;
+
+/**
+ *
+ *
+ * + * Dimension value attributes for the audience user row. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceRow} + */ +public final class AudienceRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1beta.AudienceRow) + AudienceRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceRow.newBuilder() to construct. + private AudienceRow(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AudienceRow() { + dimensionValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceRow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1beta.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1beta_AudienceRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1beta.AudienceRow.class, + com.google.analytics.data.v1beta.AudienceRow.Builder.class); + } + + public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * Each dimension value attribute for an audience user. One dimension value + * will be added for each dimension column requested. + *+ * + *
repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * Each dimension value attribute for an audience user. One dimension value + * will be added for each dimension column requested. + *+ * + *
repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1beta.AudienceDimensionValueOrBuilder>
+ getDimensionValuesOrBuilderList() {
+ return dimensionValues_;
+ }
+ /**
+ *
+ *
+ * + * Each dimension value attribute for an audience user. One dimension value + * will be added for each dimension column requested. + *+ * + *
repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1;
+ *
+ */
+ @java.lang.Override
+ public int getDimensionValuesCount() {
+ return dimensionValues_.size();
+ }
+ /**
+ *
+ *
+ * + * Each dimension value attribute for an audience user. One dimension value + * will be added for each dimension column requested. + *+ * + *
repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1beta.AudienceDimensionValue getDimensionValues(int index) {
+ return dimensionValues_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Each dimension value attribute for an audience user. One dimension value + * will be added for each dimension column requested. + *+ * + *
repeated .google.analytics.data.v1beta.AudienceDimensionValue dimension_values = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1beta.AudienceDimensionValueOrBuilder
+ getDimensionValuesOrBuilder(int index) {
+ return dimensionValues_.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));
+ }
+ getUnknownFields().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));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1beta.AudienceRow)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1beta.AudienceRow other =
+ (com.google.analytics.data.v1beta.AudienceRow) obj;
+
+ if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDimensionValuesCount() > 0) {
+ hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionValuesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow 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.data.v1beta.AudienceRow parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow 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.data.v1beta.AudienceRow parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow 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.data.v1beta.AudienceRow parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow 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.data.v1beta.AudienceRow parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1beta.AudienceRow 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.data.v1beta.AudienceRow 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;
+ }
+ /**
+ *
+ *
+ * + * Dimension value attributes for the audience user row. + *+ * + * Protobuf type {@code google.analytics.data.v1beta.AudienceRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder